credentials

package
v0.0.0-...-34451c6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: AGPL-3.0, Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredentialsSecretTokenKey = "token"
	DefaultCredentialsKey     = ""
)

Variables

This section is empty.

Functions

func OnCredentialsChange

func OnCredentialsChange[T client.ObjectList](c client.Client, list T) handler.EventHandler

func SyncCredentialsInfo

func SyncCredentialsInfo(object client.Object, conditionSetter func(condition metav1.Condition), creds string, err error)

Types

type NamespaceCredentials

type NamespaceCredentials struct {
	// NamespaceCredentials resource name for this namespace.
	NamespaceCredentials string

	// Token that controllers should use when reconciling objects from this namespace.
	Token string

	// Err stores error that may occur while reading credentials for this namespace.
	Err error
}

type NamespaceCredentialsCache

type NamespaceCredentialsCache interface {
	Init() error
	Wipe()
	Reset() error
	AddNamespaceCredentials(nc *v1alpha1.NamespaceCredentials) (string, error)
	RemoveNamespaceCredentials(nc *v1alpha1.NamespaceCredentials)
	GetNamespaceCredentials(namespace string) NamespaceCredentials
}

func FakeNamespaceCredentialsCache

func FakeNamespaceCredentialsCache(client client.Client) NamespaceCredentialsCache

func NewNamespaceCredentialsCache

func NewNamespaceCredentialsCache(defaultConsoleToken string, scheme *runtime.Scheme) (NamespaceCredentialsCache, error)

Jump to

Keyboard shortcuts

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