Help us shape the future of Go! Take the 2026 Go Developer Survey

secret

package
v0.201.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 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