Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultSessionTtlSec = 900 DefaultMfaSource = "prompt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mixin ¶
type Mixin struct {
Ctx context.Context
CacheDir string
CacheSkip bool `usage:"Skip reading from cache (but still write after success)"`
MfaSerial string `usage:"MFA serial ARN"`
MfaSource string `usage:"MFA source (to read from an environment variable, provide the variable's name)"`
// Normally this would live in the cli/handler/mixin/aws/auth/role mixin, but it's
// needed earlier than the Provider.Get call for the cache read (key).
RoleChain string `usage:"Comma-separated aliases, e.g. \"instance\" or ARNs (role auth mode only)"`
SessionTtlSec int `usage:"Session length in seconds"`
// RoleChainFlag is the CLI flag for the RoleChain field.
//
// It defaults to "role".
RoleChainFlag string
}
func (*Mixin) BindCobraFlags ¶
Implements cage/cli/handler.Mixin
func (*Mixin) Credentials ¶
func (m *Mixin) Credentials(provider Provider) (*credentials.Credentials, error)
type Provider ¶
type Provider interface {
Get(ProviderInput) (*credentials.Credentials, error)
}
Click to show internal directories.
Click to hide internal directories.