-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathintegration_checkpoint_enum.go
More file actions
49 lines (41 loc) · 1.78 KB
/
integration_checkpoint_enum.go
File metadata and controls
49 lines (41 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by go-enum DO NOT EDIT.
// Version:
// Revision:
// Build Date:
// Built By:
package malak
import (
"errors"
"fmt"
)
const (
// IntegrationSyncCheckpointStatusFailed is a IntegrationSyncCheckpointStatus of type failed.
IntegrationSyncCheckpointStatusFailed IntegrationSyncCheckpointStatus = "failed"
// IntegrationSyncCheckpointStatusPending is a IntegrationSyncCheckpointStatus of type pending.
IntegrationSyncCheckpointStatusPending IntegrationSyncCheckpointStatus = "pending"
// IntegrationSyncCheckpointStatusSuccess is a IntegrationSyncCheckpointStatus of type success.
IntegrationSyncCheckpointStatusSuccess IntegrationSyncCheckpointStatus = "success"
)
var ErrInvalidIntegrationSyncCheckpointStatus = errors.New("not a valid IntegrationSyncCheckpointStatus")
// String implements the Stringer interface.
func (x IntegrationSyncCheckpointStatus) String() string {
return string(x)
}
// IsValid provides a quick way to determine if the typed value is
// part of the allowed enumerated values
func (x IntegrationSyncCheckpointStatus) IsValid() bool {
_, err := ParseIntegrationSyncCheckpointStatus(string(x))
return err == nil
}
var _IntegrationSyncCheckpointStatusValue = map[string]IntegrationSyncCheckpointStatus{
"failed": IntegrationSyncCheckpointStatusFailed,
"pending": IntegrationSyncCheckpointStatusPending,
"success": IntegrationSyncCheckpointStatusSuccess,
}
// ParseIntegrationSyncCheckpointStatus attempts to convert a string to a IntegrationSyncCheckpointStatus.
func ParseIntegrationSyncCheckpointStatus(name string) (IntegrationSyncCheckpointStatus, error) {
if x, ok := _IntegrationSyncCheckpointStatusValue[name]; ok {
return x, nil
}
return IntegrationSyncCheckpointStatus(""), fmt.Errorf("%s is %w", name, ErrInvalidIntegrationSyncCheckpointStatus)
}