2022-02-16 15:49:17 +00:00
|
|
|
package domain
|
|
|
|
|
|
|
|
type SecretGeneratorType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
SecretGeneratorTypeUnspecified SecretGeneratorType = iota
|
|
|
|
SecretGeneratorTypeInitCode
|
|
|
|
SecretGeneratorTypeVerifyEmailCode
|
|
|
|
SecretGeneratorTypeVerifyPhoneCode
|
2022-04-12 14:20:17 +00:00
|
|
|
SecretGeneratorTypeVerifyDomain
|
2022-02-16 15:49:17 +00:00
|
|
|
SecretGeneratorTypePasswordResetCode
|
|
|
|
SecretGeneratorTypePasswordlessInitCode
|
|
|
|
SecretGeneratorTypeAppSecret
|
|
|
|
|
|
|
|
secretGeneratorTypeCount
|
|
|
|
)
|
|
|
|
|
2022-04-12 14:20:17 +00:00
|
|
|
func (t SecretGeneratorType) Valid() bool {
|
|
|
|
return t > SecretGeneratorTypeUnspecified && t < secretGeneratorTypeCount
|
|
|
|
}
|
|
|
|
|
2022-02-16 15:49:17 +00:00
|
|
|
type SecretGeneratorState int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
SecretGeneratorStateUnspecified SecretGeneratorState = iota
|
|
|
|
SecretGeneratorStateActive
|
|
|
|
SecretGeneratorStateRemoved
|
|
|
|
)
|