Documentation ¶
Index ¶
- Constants
- func GetIDPortenDefaultScopes(integrationType string) []string
- func GetInstanceType(instance Instance) string
- func GetIntegrationType(instance Instance) types.IntegrationType
- func GetSecretClientIDKey(instance Instance) string
- func GetSecretJwkKey(instance Instance) string
- func GetSecretName(instance Instance) string
- func IsUpToDate(instance Instance) bool
- func MakeLabels(instance Instance) map[string]string
- func NeedsSecretRotation(instance Instance) bool
- func SetIDportenClientDefaultValues(in *naisiov1.IDPortenClient, cfg *config.Config)
- func ToClientRegistration(instance Instance, cfg *config.Config) types.ClientRegistration
- func ToScopeRegistration(instance Instance, scope naisiov1.ExposedScope, cfg *config.Config) types.ScopeRegistration
- type Instance
Constants ¶
View Source
const ( AnnotationResynchronize = "digdir.nais.io/resync" AnnotationRotate = "digdir.nais.io/rotate" MaskinportenDefaultAllowedIntegrationType = "maskinporten" MaskinportenDefaultAtAgeMax = 30 MaskinportenDefaultAuthorizationMaxLifetime = 0 StaleSyncThresholdDuration = 7 * 24 * time.Hour )
View Source
const ( AppLabelKey string = "app" TypeLabelKey string = "type" IDPortenTypeLabelValue string = "digdirator.nais.io" MaskinportenTypeLabelValue string = "maskinporten.digdirator.nais.io" )
Variables ¶
This section is empty.
Functions ¶
func GetInstanceType ¶
func GetIntegrationType ¶
func GetIntegrationType(instance Instance) types.IntegrationType
func GetSecretClientIDKey ¶
TODO: use this as an alternative fallback for getting a client ID?
func GetSecretJwkKey ¶
func GetSecretName ¶
func IsUpToDate ¶
func MakeLabels ¶
func NeedsSecretRotation ¶
func SetIDportenClientDefaultValues ¶
func SetIDportenClientDefaultValues(in *naisiov1.IDPortenClient, cfg *config.Config)
func ToClientRegistration ¶
func ToClientRegistration(instance Instance, cfg *config.Config) types.ClientRegistration
func ToScopeRegistration ¶
func ToScopeRegistration(instance Instance, scope naisiov1.ExposedScope, cfg *config.Config) types.ScopeRegistration
Types ¶
type Instance ¶
type Instance interface { metav1.Object runtime.Object schema.ObjectKind Hash() (string, error) GetStatus() *naisiov1.DigdiratorStatus SetStatus(status naisiov1.DigdiratorStatus) }
+kubebuilder:object:generate=false
Click to show internal directories.
Click to hide internal directories.