clients

package
v0.0.0-...-daa1dba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 GetIDPortenDefaultScopes

func GetIDPortenDefaultScopes(integrationType string) []string

func GetInstanceType

func GetInstanceType(instance Instance) string

func GetIntegrationType

func GetIntegrationType(instance Instance) types.IntegrationType

func GetSecretClientIDKey

func GetSecretClientIDKey(instance Instance) string

TODO: use this as an alternative fallback for getting a client ID?

func GetSecretJwkKey

func GetSecretJwkKey(instance Instance) string

func GetSecretName

func GetSecretName(instance Instance) string

func IsUpToDate

func IsUpToDate(instance Instance) bool

func MakeLabels

func MakeLabels(instance Instance) map[string]string

func NeedsSecretRotation

func NeedsSecretRotation(instance Instance) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL