Documentation
¶
Index ¶
Constants ¶
View Source
const ( KVv1 = "v1" KVv2 = "v2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
KVReader KVReader
}
Client thinly wraps a vault client. It provides a minimal subset of functionality required for interacting with KV stores.
type SecretSpec ¶ added in v1.0.0
type SecretSpec struct { Path string `mapstructure:"path"` Field string `mapstructure:"field"` B64 bool `mapstructure:"b64"` MountVersion string `mapstructure:"ver"` Transformations []string `mapstructure:"transform"` }
SecretSpec represents a single secret in a file to be patched.
func NewSecretSpec ¶ added in v1.0.0
func NewSecretSpec(s string) (*SecretSpec, error)
NewSecretSpec constructs and returns a new SecretSpec from a structured string s.
func (*SecretSpec) FormatSecret ¶ added in v1.0.0
func (spec *SecretSpec) FormatSecret(secret *api.KVSecret) (string, error)
FormatSecret returns a formatted secret value field from a vault KV secret, based on the spec's internally configured transformations.
Click to show internal directories.
Click to hide internal directories.