secrets

package
v0.0.0-...-b3f5cd1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilSecretPayload ...
	ErrNilSecretPayload = errors.New("nil secret payload")

	// ErrNilSecretChecksum ...
	ErrNilSecretChecksum = errors.New("nil secret checksum")

	// ErrNilSecretLabels ...
	ErrNilSecretLabels = errors.New("nil secret labels")

	// ErrSecretNumBytesMissing ...
	ErrSecretNumBytesMissing = errors.New("secret label 'num-bytes' is not present")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	Read(ctx context.Context, id string) ([]byte, error)
	Rotate(ctx context.Context, id string) error
	Close()
}

Service ...

func NewService

func NewService(ctx context.Context) (Service, error)

NewService ...

Jump to

Keyboard shortcuts

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