vault: github.com/hashicorp/vault/vendor/github.com/hashicorp/vault-plugin-auth-alicloud/tools Index | Files

package tools

import "github.com/hashicorp/vault/vendor/github.com/hashicorp/vault-plugin-auth-alicloud/tools"

Index

Package Files

tools.go

func GenerateLoginData Uses

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.

type RequestCapturer Uses

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 Uses

func (r *RequestCapturer) GetCapturedRequest() (*http.Request, error)

func (*RequestCapturer) Proxy Uses

func (r *RequestCapturer) Proxy(req *http.Request) (*url.URL, error)

Package tools imports 8 packages (graph). Updated 2018-09-25. Refresh now. Tools for package owners.