secret

package
v0.0.0-...-2f3eae6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ErrSecretNotFound = merr.Code("secret_not_found")

Variables

This section is empty.

Functions

func ContextWithProvider

func ContextWithProvider(ctx context.Context, val Provider) context.Context

func Get

func Get(ctx context.Context, secretID string) (string, error)

Types

type Provider

type Provider interface {
	Get(ctx context.Context, secretID string) (string, error)
}

type Wrapper

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

func NewWrapper

func NewWrapper(ctx context.Context, secretID string) (w *Wrapper, err error)

func (*Wrapper) Get

func (w *Wrapper) Get(ctx context.Context) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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