mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
24 lines
380 B
Go
24 lines
380 B
Go
package domain
|
|
|
|
const (
|
|
IAMID = "IAM"
|
|
)
|
|
|
|
type InstanceState int32
|
|
|
|
const (
|
|
InstanceStateUnspecified InstanceState = iota
|
|
InstanceStateActive
|
|
InstanceStateRemoved
|
|
|
|
instanceStateCount
|
|
)
|
|
|
|
func (s InstanceState) Valid() bool {
|
|
return s >= 0 && s < instanceStateCount
|
|
}
|
|
|
|
func (s InstanceState) Exists() bool {
|
|
return s != InstanceStateUnspecified && s != InstanceStateRemoved
|
|
}
|