package
0.0.0-20200423184530-e047a6308a51
Repository: https://github.com/sjanota/kyma.git
Documentation: pkg.go.dev

# Functions

NewAuthReqHolder returns new CancelableAuthReqestHolder instance.
NewCancelableAuthReqestReloader creates a new instance of CancelableAuthReqestReloader.It requires a constructor to re-create the internal instance once Reload() is invoked.
NewTLSCertHolder returns new TLSCertHolder instance.
NewTLSCertReloader creates a new instance of TLSCertReloader.
NewWatcher creates a new watcher instance name is used in logging filePaths parameter is a list of file paths to watch notifyFunc is a function that is invoked after watcher detects changes to monitored files.

# Structs

CancelableAuthReqestHolder keeps an authenticator.Request instance.It allows for Get/Set operations in a thread-safe way.
CancelableAuthReqestReloader enables to create and re-create an instance of authn.CancelableAuthRequest in a thread-safe way.It implements authenticator.Request interface so it can be easily plugged in instead of a "real" instance.
TLSCertHolder keeps a tls.Certificate instance and allows for Get/Set operations in a thread-safe way.
TLSCertReloader enables to create and re-create an instance of tls.Certificate in a thread-safe way.It's GetCertificateFunc conforms to tls.Config.GetCertificate function type.

# Interfaces

Watcher is designed to provide notifications about changes to files mounted inside kubernetes Pod, like Secrets or ConfigMaps Because file watches breaks in kubernetes when mounts are updated, we watch for directories instead.

# Type aliases

AuthReqConstructor knows how to construct an authn.CancelableAuthRequest instance.
TLSCertConstructor knows how to construct a tls.Certificate instance.