Documentation
¶
Overview ¶
Package secrets defines provider-neutral secret naming and management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("secret operation unsupported")
ErrUnsupported identifies an operation unavailable from a provider.
Functions ¶
Types ¶
type Manager ¶
type Manager interface {
Create(context.Context, string, []byte) error
Update(context.Context, string, []byte) error
List(context.Context, string) ([]string, error)
Archive(context.Context, string) error
Restore(context.Context, string) error
Destroy(context.Context, string) error
}
Manager manages scoped secret values.
type Provider ¶
type Provider string
Provider identifies a secret storage provider.
func ParseProvider ¶
ParseProvider validates and returns a provider.
Click to show internal directories.
Click to hide internal directories.