vault

package
v0.0.0-...-77d27c5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ec2Meta

type Ec2Meta struct {
	*ec2metadata.EC2Metadata
}

func (Ec2Meta) GetAwsCreds

func (c Ec2Meta) GetAwsCreds(role string) (map[string]interface{}, error)

type Vault

type Vault struct {
	*api.Client
}

func Client

func Client(vaultUrl, role string) (*Vault, error)

Client gets an authenticated vault instance authenticates using aws-ec2 vault mount can oerride aws authentication with an environment variable VAULT_TOKEN

func (Vault) Ec2Auth

func (c Vault) Ec2Auth(options map[string]interface{}) error

func (Vault) GetSecret

func (c Vault) GetSecret(role, path, key string) (string, error)

Jump to

Keyboard shortcuts

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