vault

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName        = "aws-vault"
	SessionServiceName = "aws-vault.sessions"
)

Variables

View Source
var DefaultProfileConfig = &ProfileConfig{}

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	AccessKeyId string
	SecretKey   string
}

func (Credentials) Environ

func (c Credentials) Environ() []string

type KeyringSessionProvider

type KeyringSessionProvider struct {
	SessionProvider
	Keyring   keyring.Keyring
	CredsFunc func() (Credentials, error)
}

func (*KeyringSessionProvider) Session

type Profile

type Profile struct {
	Name          string
	Region        string
	MFASerial     string
	RoleARN       string
	SourceProfile *Profile
}

func (*Profile) Keyring

func (p *Profile) Keyring(k keyring.Keyring) *ProfileKeyring

type ProfileConfig

type ProfileConfig struct {
	File string
	// contains filtered or unexported fields
}

func NewProfileConfig

func NewProfileConfig(profiles ...*Profile) *ProfileConfig

func (*ProfileConfig) Profile

func (c *ProfileConfig) Profile(name string) (*Profile, error)

type ProfileKeyring

type ProfileKeyring struct {
	// contains filtered or unexported fields
}

func (*ProfileKeyring) Read

func (pk *ProfileKeyring) Read() (Credentials, error)

func (*ProfileKeyring) ReadSession

func (pk *ProfileKeyring) ReadSession() (SessionCredentials, error)

func (*ProfileKeyring) Store

func (pk *ProfileKeyring) Store(c Credentials) error

func (*ProfileKeyring) StoreSession

func (pk *ProfileKeyring) StoreSession(c SessionCredentials) error

type SessionConfig

type SessionConfig struct {
	Profile     *Profile
	TokenAgent  TokenAgent
	Duration    time.Duration
	Credentials *Credentials
	Refresh     bool
}

type SessionCredentials

type SessionCredentials struct {
	*sts.Credentials
}

func (SessionCredentials) Environ

func (sc SessionCredentials) Environ() []string

type SessionProvider

type SessionProvider struct {
}

func (*SessionProvider) Session

type TokenAgent

type TokenAgent interface {
	GetToken(serial string) (string, error)
}

Jump to

Keyboard shortcuts

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