vault

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.3.0

type Client struct {
	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(logger *log.Logger, vaultConfig *api.Config, authConfig config.AuthConfig) (*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.

func (*Client) Token added in v0.3.0

func (c *Client) Token(ctx context.Context) (string, error)

Token synchronously renews/re-auths as required and returns a Vault token.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL