Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrInvalidListenerState ¶
type ErrInvalidListenerState struct {
// contains filtered or unexported fields
}
ErrInvalidListenerState represents errors that are related to the state of the listener.
func (ErrInvalidListenerState) Error ¶
func (e ErrInvalidListenerState) Error() string
Error generates a message for the invalid state error.
type InMemoryCacheListener ¶
type InMemoryCacheListener struct {
// contains filtered or unexported fields
}
InMemoryCacheListener handles retrieving and storing secrets from a secret store and provides updates based on a specified interval.
func NewInMemoryCacheListener ¶
func NewInMemoryCacheListener(client secrets.SecretClient, updateChan chan map[string]string, errorChan chan error, backoffPattern []int, path string, keys []string) InMemoryCacheListener
NewInMemoryCacheListener creates a new InMemoryCacheListener
func (*InMemoryCacheListener) GetKeys ¶
func (c *InMemoryCacheListener) GetKeys() (map[string]string, error)
GetKeys retrieves the secrets via the secret client
func (*InMemoryCacheListener) SetSecrets ¶
func (c *InMemoryCacheListener) SetSecrets(secrets map[string]string) error
func (*InMemoryCacheListener) Start ¶
func (c *InMemoryCacheListener) Start() error
Start invokes the background process which will provide updates.
func (*InMemoryCacheListener) Stop ¶
func (c *InMemoryCacheListener) Stop() error
Stop terminates the background process which provides updates.
Click to show internal directories.
Click to hide internal directories.