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