Documentation ¶
Overview ¶
Package secrets helps manage application runtime secrets.
Index ¶
Constants ¶
View Source
const ( SourceTypeEnv = "env" SourceTypeGCP = "gcp" )
The set of source types.
Variables ¶
View Source
var ErrNotFound = errors.New("secret not found")
ErrNotFound is used when a secret cannot be found by its name.
Functions ¶
Types ¶
type EnvSource ¶
type EnvSource struct{}
EnvSource provides secrets via environment variables.
func (*EnvSource) Type ¶
func (src *EnvSource) Type() SourceType
Type returns the type of this source (environment).
type GCPSource ¶
type GCPSource struct {
// contains filtered or unexported fields
}
GCPSource provides secrets via GCP secrets.
func NewGCPSource ¶
NewGCPSource returns a new GCP secret source that derives its information from the given context.
func (*GCPSource) Type ¶
func (g *GCPSource) Type() SourceType
Type returns the type of this source (gcp).
Click to show internal directories.
Click to hide internal directories.