mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:47:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
33
apps/api/internal/domain/secret_generator.go
Normal file
33
apps/api/internal/domain/secret_generator.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package domain
|
||||
|
||||
//go:generate enumer -type SecretGeneratorType -transform snake -trimprefix SecretGeneratorType
|
||||
type SecretGeneratorType int32
|
||||
|
||||
const (
|
||||
SecretGeneratorTypeUnspecified SecretGeneratorType = iota
|
||||
SecretGeneratorTypeInitCode
|
||||
SecretGeneratorTypeVerifyEmailCode
|
||||
SecretGeneratorTypeVerifyPhoneCode
|
||||
SecretGeneratorTypeVerifyDomain
|
||||
SecretGeneratorTypePasswordResetCode
|
||||
SecretGeneratorTypePasswordlessInitCode
|
||||
SecretGeneratorTypeAppSecret
|
||||
SecretGeneratorTypeOTPSMS
|
||||
SecretGeneratorTypeOTPEmail
|
||||
SecretGeneratorTypeInviteCode
|
||||
SecretGeneratorTypeSigningKey
|
||||
|
||||
secretGeneratorTypeCount
|
||||
)
|
||||
|
||||
func (t SecretGeneratorType) Valid() bool {
|
||||
return t > SecretGeneratorTypeUnspecified && t < secretGeneratorTypeCount
|
||||
}
|
||||
|
||||
type SecretGeneratorState int32
|
||||
|
||||
const (
|
||||
SecretGeneratorStateUnspecified SecretGeneratorState = iota
|
||||
SecretGeneratorStateActive
|
||||
SecretGeneratorStateRemoved
|
||||
)
|
Reference in New Issue
Block a user