Documentation ¶
Index ¶
- func NewClient(thelmaConfig config.Config, creds credentials.Credentials, ...) (*vaultapi.Client, error)
- func NewVaultTokenStore() stores.Store
- func TokenProvider(thelmaConfig config.Config, creds credentials.Credentials, ...) (credentials.TokenProvider, error)
- type ClientOption
- type ClientOptions
- type MaskingRoundTripper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(thelmaConfig config.Config, creds credentials.Credentials, clientOptions ...ClientOption) (*vaultapi.Client, error)
NewClient returns a new authenticated vault client
func NewVaultTokenStore ¶
NewVaultTokenStore returns a token store that reads and writes values to the current user's ~/.vault-token file. (Note that token keys are ignored.)
func TokenProvider ¶
func TokenProvider(thelmaConfig config.Config, creds credentials.Credentials, clientOptions ...ClientOption) (credentials.TokenProvider, error)
TokenProvider returns a new credentials.TokenProvider that provides a Vault token
Types ¶
type ClientOption ¶ added in v0.0.31
type ClientOption func(*ClientOptions)
type ClientOptions ¶ added in v0.0.31
type ClientOptions struct { CredentialStore stores.Store VaultClientOptions []func(*vaultapi.Config) }
func (*ClientOptions) ConfigureVaultClient ¶ added in v0.0.31
func (c *ClientOptions) ConfigureVaultClient(configureFn func(*vaultapi.Config))
type MaskingRoundTripper ¶ added in v0.0.53
type MaskingRoundTripper struct {
// contains filtered or unexported fields
}
MaskingRoundTripper implements the http.RoundTripper interface, automatically masking any secrets returned from the Vault API
Click to show internal directories.
Click to hide internal directories.