zitadel/internal/domain/instance.go

20 lines
271 B
Go
Raw Normal View History

package domain
const (
IAMID = "IAM"
)
type InstanceState int32
const (
InstanceStateUnspecified InstanceState = iota
InstanceStateActive
InstanceStateRemoved
instanceStateCount
)
func (f InstanceState) Valid() bool {
return f >= 0 && f < instanceStateCount
}