1
0
mirror of https://github.com/zitadel/zitadel.git synced 2024-12-18 13:57:32 +00:00

20 lines
332 B
Go
Raw Permalink Normal View History

package domain
type PolicyState int32
const (
PolicyStateUnspecified PolicyState = iota
PolicyStateActive
PolicyStateRemoved
policyStateCount
)
func (f PolicyState) Valid() bool {
return f >= 0 && f < policyStateCount
}
func (s PolicyState) Exists() bool {
return s != PolicyStateUnspecified && s != PolicyStateRemoved
}