secret

package
v0.99.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptySecretService

type EmptySecretService struct {
}

Secret service that always reports no secrets exist

func (EmptySecretService) LoadSecret

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