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 ¶
func (Credentials) Environ ¶
func (c Credentials) Environ() []string
type KeyringSessionProvider ¶
type KeyringSessionProvider struct { SessionProvider Keyring keyring.Keyring CredsFunc func() (Credentials, error) }
func (*KeyringSessionProvider) Session ¶
func (ksp *KeyringSessionProvider) Session(conf SessionConfig) (SessionCredentials, error)
type Profile ¶
type ProfileConfig ¶
type ProfileConfig struct { File string // contains filtered or unexported fields }
func NewProfileConfig ¶
func NewProfileConfig(profiles ...*Profile) *ProfileConfig
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 ¶
func (sp *SessionProvider) Session(conf SessionConfig) (SessionCredentials, error)
type TokenAgent ¶
Click to show internal directories.
Click to hide internal directories.