listener

package
v4.0.0-dev.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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