mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-14 05:33:16 +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"`
|
||
|
|
}
|