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
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)
Click to show internal directories.
Click to hide internal directories.