Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserAgentRequestCallback ¶ added in v0.10.0
func UserAgentRequestCallback(agentFunc func(request *api.Request) string) api.RequestCallback
UserAgentRequestCallback takes a function that returns a user agent string and will invoke that function to set the user agent string on the request.
Types ¶
type Client ¶
type Client struct { Name string Version string VaultClient *api.Client VaultConfig *api.Config // contains filtered or unexported fields }
Client holds api.Client and handles state required to renew tokens and re-auth as required.
func NewClient ¶
func NewClient(name, version string, logger hclog.Logger, vaultConfig *api.Config, authConfig config.AuthConfig, awsSes *session.Session) (*Client, error)
NewClient uses the AWS IAM auth method configured in a Vault cluster to authenticate the execution role and create a Vault API client.
Click to show internal directories.
Click to hide internal directories.