Documentation
¶
Index ¶
- Constants
- type AuthCommand
- type Credentials
- type ExpiredCredentialsErr
- type InitCommand
- type Keys
- type LimitedAccessCredentials
- func (c *LimitedAccessCredentials) Exist() (bool, error)
- func (c *LimitedAccessCredentials) Initialise(keys *Keys) error
- func (c *LimitedAccessCredentials) IsTemporaryCredentialsExpired(now time.Time) (bool, error)
- func (c *LimitedAccessCredentials) NewSession() (*session.Session, error)
- func (c *LimitedAccessCredentials) RecordExpiry(expiresAt time.Time) error
- type ReadCommand
- type StdioTokenReader
- type TemporaryCredentials
- type TokenReader
- type WhoAmI
Constants ¶
View Source
const ExpiresKey = "temp_credentials_expire"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCommand ¶
type AuthCommand struct { Expiry time.Duration OutputAsEnvVariable bool Profile string TokenReader TokenReader }
func DefaultAuthCommand ¶
func DefaultAuthCommand() *AuthCommand
creates an auth command suitable for reading from stdin with a prompt
func (*AuthCommand) Execute ¶
func (cmd *AuthCommand) Execute() error
type Credentials ¶
func (*Credentials) String ¶
func (c *Credentials) String() string
type ExpiredCredentialsErr ¶
type ExpiredCredentialsErr string
func (ExpiredCredentialsErr) Error ¶
func (e ExpiredCredentialsErr) Error() string
type InitCommand ¶
type InitCommand struct {
Profile string
}
func (*InitCommand) Execute ¶
func (cmd *InitCommand) Execute() error
type LimitedAccessCredentials ¶
type LimitedAccessCredentials struct {
// contains filtered or unexported fields
}
these are the credentials used by the program to request credentials through STS and retrieve user info through IAM etc.
func DefaultLimitedAccessCredentials ¶
func DefaultLimitedAccessCredentials(profile string) (*LimitedAccessCredentials, error)
func (*LimitedAccessCredentials) Exist ¶
func (c *LimitedAccessCredentials) Exist() (bool, error)
func (*LimitedAccessCredentials) Initialise ¶
func (c *LimitedAccessCredentials) Initialise(keys *Keys) error
func (*LimitedAccessCredentials) IsTemporaryCredentialsExpired ¶
func (c *LimitedAccessCredentials) IsTemporaryCredentialsExpired(now time.Time) (bool, error)
func (*LimitedAccessCredentials) NewSession ¶
func (c *LimitedAccessCredentials) NewSession() (*session.Session, error)
func (*LimitedAccessCredentials) RecordExpiry ¶
func (c *LimitedAccessCredentials) RecordExpiry(expiresAt time.Time) error
type ReadCommand ¶
func (*ReadCommand) Execute ¶
func (cmd *ReadCommand) Execute() error
type StdioTokenReader ¶
type StdioTokenReader struct { }
func (*StdioTokenReader) Read ¶
func (f *StdioTokenReader) Read() (string, error)
type TemporaryCredentials ¶
type TemporaryCredentials struct {
// contains filtered or unexported fields
}
credentials managed by stscreds that are requested through STS
func DefaultTemporaryCredentials ¶
func DefaultTemporaryCredentials(profile string) (*TemporaryCredentials, error)
func (*TemporaryCredentials) Read ¶
func (c *TemporaryCredentials) Read(key string) (interface{}, error)
func (*TemporaryCredentials) Save ¶
func (c *TemporaryCredentials) Save() error
func (*TemporaryCredentials) UpdateCredentials ¶
func (c *TemporaryCredentials) UpdateCredentials(credentials *Credentials)
type TokenReader ¶
interface to allow other things to provide tokens
Click to show internal directories.
Click to hide internal directories.