Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateLoginData ¶
func GenerateLoginData(role string, creds auth.Credential, region string) (map[string]interface{}, error)
Generates the necessary data to send to the Vault server for generating a token. This is useful for other API clients to use. If "" is passed in for accessKeyID, accessKeySecret, and securityToken, attempts to use credentials set as env vars or available through instance metadata.
Types ¶
type RequestCapturer ¶
type RequestCapturer struct {
// contains filtered or unexported fields
}
RequestCapturer fulfills the Proxy method of http.Transport, so can be used to replace the Proxy method on any transport method to simply capture the request. Its Proxy method always returns an error so the request won't actually be fired. This is useful for quickly finding out what final request a client is sending.
func (*RequestCapturer) GetCapturedRequest ¶
func (r *RequestCapturer) GetCapturedRequest() (*http.Request, error)
Click to show internal directories.
Click to hide internal directories.