awsvaultcredsprovider

package module
v0.0.0-...-f417e85 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PROVIDER_NAME                  = "VaultCredsProvider"
	DefaultTempCredentialsDuration = 900
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredential

type AWSCredential struct {
	AccessKeyId string

	MFASerialNumber string

	Expiration time.Time
	TTL        int64
	// contains filtered or unexported fields
}

func (*AWSCredential) GetMFASecret

func (c *AWSCredential) GetMFASecret() string

func (*AWSCredential) GetSecretAccessKey

func (c *AWSCredential) GetSecretAccessKey() string

func (*AWSCredential) GetSessionToken

func (c *AWSCredential) GetSessionToken() string

type VaultCredsProvider

type VaultCredsProvider struct {
	VaultClient *vaultclient.Client
	Name        string
	Arn         string
	Credential  AWSCredential
	// contains filtered or unexported fields
}

func NewVaultCredsProvider

func NewVaultCredsProvider(arn string, conf vaultclient.Config, creds vaultclient.Credentials) (*VaultCredsProvider, error)

func (*VaultCredsProvider) Delete

func (p *VaultCredsProvider) Delete() error

func (*VaultCredsProvider) IsExpired

func (p *VaultCredsProvider) IsExpired() bool

func (*VaultCredsProvider) Read

func (p *VaultCredsProvider) Read() error

func (*VaultCredsProvider) Retrieve

func (p *VaultCredsProvider) Retrieve() (credentials.Value, error)

func (*VaultCredsProvider) SetAccessKey

func (p *VaultCredsProvider) SetAccessKey(s string) *VaultCredsProvider

func (*VaultCredsProvider) SetExpiration

func (p *VaultCredsProvider) SetExpiration(t time.Time) *VaultCredsProvider

func (*VaultCredsProvider) SetSecretAccessKey

func (p *VaultCredsProvider) SetSecretAccessKey(s string) *VaultCredsProvider

func (*VaultCredsProvider) SetSessionToken

func (p *VaultCredsProvider) SetSessionToken(s string) *VaultCredsProvider

func (*VaultCredsProvider) SetTTL

func (*VaultCredsProvider) Store

func (p *VaultCredsProvider) Store() error

func (*VaultCredsProvider) WithMFA

func (p *VaultCredsProvider) WithMFA(serial, secret string) *VaultCredsProvider

Jump to

Keyboard shortcuts

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