2021-01-04 13:52:13 +00:00
|
|
|
package domain
|
|
|
|
|
|
|
|
type IdentityProviderType int8
|
|
|
|
|
|
|
|
const (
|
|
|
|
IdentityProviderTypeSystem IdentityProviderType = iota
|
|
|
|
IdentityProviderTypeOrg
|
|
|
|
|
|
|
|
identityProviderCount
|
|
|
|
)
|
|
|
|
|
|
|
|
func (f IdentityProviderType) Valid() bool {
|
|
|
|
return f >= 0 && f < identityProviderCount
|
|
|
|
}
|
2021-01-07 15:06:45 +00:00
|
|
|
|
|
|
|
type IdentityProviderState int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
IdentityProviderStateUnspecified IdentityProviderState = iota
|
|
|
|
IdentityProviderStateActive
|
|
|
|
IdentityProviderStateRemoved
|
|
|
|
|
|
|
|
idpProviderState
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s IdentityProviderState) Valid() bool {
|
|
|
|
return s >= 0 && s < idpProviderState
|
|
|
|
}
|