Documentation ¶
Index ¶
- func GetLoginAuthTTY() (*types.VaultAuth, error)
- func TryAuth(host string, vaultAuth *types.VaultAuth) error
- type FetchedVaultSecret
- func (fetched *FetchedVaultSecret) Format() int
- func (fetched *FetchedVaultSecret) IsMissingData() bool
- func (fetched *FetchedVaultSecret) UploadNew(value interface{}) (interface{}, error)
- func (fetched *FetchedVaultSecret) Value() interface{}
- func (fetched *FetchedVaultSecret) Version() interface{}
- type FromDataMapping
- type FromTextMapping
- type Mapping
- type SecretConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoginAuthTTY ¶ added in v1.1.1
Types ¶
type FetchedVaultSecret ¶
type FetchedVaultSecret struct {
// contains filtered or unexported fields
}
FetchedVaultSecret is an implementation of types.FetchedSecret specifically for a secret fetched from Vault
func (*FetchedVaultSecret) Format ¶
func (fetched *FetchedVaultSecret) Format() int
Format returns the configured format for this secret
func (*FetchedVaultSecret) IsMissingData ¶
func (fetched *FetchedVaultSecret) IsMissingData() bool
IsMissingData returns true if the remote secret existed but was incomplete
func (*FetchedVaultSecret) UploadNew ¶
func (fetched *FetchedVaultSecret) UploadNew(value interface{}) (interface{}, error)
UploadNew modifies the remote secret and replaces the value or sub-value with a new given value, and returns the new secret version
func (*FetchedVaultSecret) Value ¶
func (fetched *FetchedVaultSecret) Value() interface{}
Value returns the fetched secret value or sub-value
func (*FetchedVaultSecret) Version ¶
func (fetched *FetchedVaultSecret) Version() interface{}
Version returns the fetched secret's version
type FromDataMapping ¶ added in v1.1.1
type FromDataMapping struct { Format string `yaml:"format"` Path *[]interface{} `yaml:"path,omitempty"` }
FromDataMapping contains the settings for mapping a subset of the data of a Vault key/value secret document to file contents
type FromTextMapping ¶ added in v1.1.1
type FromTextMapping struct {
Path []interface{} `yaml:"path"`
}
FromTextMapping contains the settings for mapping a string value in the data of a Vault key/value secret document to file contents
type Mapping ¶
type Mapping struct { FromData *FromDataMapping `yaml:"fromData,omitempty"` FromText *FromTextMapping `yaml:"fromText,omitempty"` }
Mapping represents a data or text mapping of a Vault key/value secret document to file contents
type SecretConfig ¶
SecretConfig contains the Vault-specific configuration parameters for a secret in secrets.yaml
func (*SecretConfig) Fetch ¶
func (secretConfig *SecretConfig) Fetch() (types.FetchedSecret, error)
Fetch downloads this secret and returns an instance of FetchedVaultSecret
func (*SecretConfig) Prepare ¶
func (secretConfig *SecretConfig) Prepare() error
Prepare ensures that the Vault engine has all the required authentication parameters to fetch this secret