secret

package
v0.170.1-fips2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptySecretService added in v0.46.0

type EmptySecretService struct {
}

Secret service that always reports no secrets exist

func (EmptySecretService) LoadSecret added in v0.46.0

func (ess EmptySecretService) LoadSecret(ctx context.Context, k string) (string, error)

type EnvironmentSecretService

type EnvironmentSecretService struct {
}

Secret service that retrieve the system environment variables.

func (EnvironmentSecretService) LoadSecret

func (ess EnvironmentSecretService) LoadSecret(ctx context.Context, k string) (string, error)

type Service

type Service interface {
	// LoadSecret retrieves the secret value v found at key k given the calling context ctx.
	LoadSecret(ctx context.Context, k string) (string, error)
}

Service generalizes the process of looking up secrets based on a key.

Jump to

Keyboard shortcuts

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