secrets

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller interface {
	Do(req *http.Request) (*http.Response, error)
}

Caller interface used to abstract the implementation details for issuing an HTTP request. This allows for easier testing by the way of mocks.

type ErrSecretNameNotFound

type ErrSecretNameNotFound struct {
	// contains filtered or unexported fields
}

ErrSecretNameNotFound error when a secret secretName cannot be found.

func NewErrSecretNameNotFound

func NewErrSecretNameNotFound(description string) ErrSecretNameNotFound

NewErrSecretNameNotFound creates a new ErrSecretsNotFound error.

func (ErrSecretNameNotFound) Error

func (e ErrSecretNameNotFound) Error() string

type ErrSecretStore

type ErrSecretStore struct {
	// contains filtered or unexported fields
}

ErrSecretStore error for unexpected problems with the secret store.

func NewErrSecretStore

func NewErrSecretStore(description string) ErrSecretStore

NewErrSecretStore creates an ErrSecretStore error type.

func (ErrSecretStore) Error

func (e ErrSecretStore) Error() string

type ErrSecretsNotFound

type ErrSecretsNotFound struct {
	// contains filtered or unexported fields
}

ErrSecretsNotFound error when a secret cannot be found. This aids in differentiating between empty("") values and non-existent keys

func NewErrSecretsNotFound

func NewErrSecretsNotFound(keys []string) ErrSecretsNotFound

NewErrSecretsNotFound creates a new ErrSecretsNotFound error.

func (ErrSecretsNotFound) Error

func (scnf ErrSecretsNotFound) Error() string

type TokenExpiredCallback

type TokenExpiredCallback func(expiredToken string) (replacementToken string, retry bool)

TokenExpiredCallback is the callback function to handle the case when the secret store token has already expired

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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