mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 05:47:32 +00:00
31 lines
681 B
Go
31 lines
681 B
Go
|
package feature
|
||
|
|
||
|
//go:generate enumer -type Key -transform snake -trimprefix Key
|
||
|
type Key int
|
||
|
|
||
|
const (
|
||
|
KeyUnspecified Key = iota
|
||
|
KeyLoginDefaultOrg
|
||
|
KeyTriggerIntrospectionProjections
|
||
|
KeyLegacyIntrospection
|
||
|
)
|
||
|
|
||
|
//go:generate enumer -type Level -transform snake -trimprefix Level
|
||
|
type Level int
|
||
|
|
||
|
const (
|
||
|
LevelUnspecified Level = iota
|
||
|
LevelSystem
|
||
|
LevelInstance
|
||
|
LevelOrg
|
||
|
LevelProject
|
||
|
LevelApp
|
||
|
LevelUser
|
||
|
)
|
||
|
|
||
|
type Features struct {
|
||
|
LoginDefaultOrg bool `json:"login_default_org,omitempty"`
|
||
|
TriggerIntrospectionProjections bool `json:"trigger_introspection_projections,omitempty"`
|
||
|
LegacyIntrospection bool `json:"legacy_introspection,omitempty"`
|
||
|
}
|