package listener

import "github.com/edgexfoundry/go-mod-secrets/pkg/listener"

Index

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.

Source Files

poll.go types.go

Version
v0.0.33 (latest)
Published
Jan 19, 2021
Platform
linux/amd64
Imports
5 packages
Last checked
5 days ago

Tools for package owners.