Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConfigFile string `mapstructure:"config-file"` Console *Console `mapstructure:"-"` Duration time.Duration `mapstructure:"duration"` Generator string `mapstructure:"generator"` Grace time.Duration `mapstructure:"grace"` MFASerial string `mapstructure:"mfa-serial"` NoCache bool `mapstructure:"no-cache"` Profile string `mapstructure:"profile"` Profiles Profiles `mapstructure:"-"` Register *Register `mapstructure:"-"` Verbose bool `mapstructure:"verbose"` }
Config is the central configuration struct of awsu
type Console ¶
type Console struct {
Open bool
}
Console is the console command configuration for awsu
type Profile ¶
type Profile struct { AccessKeyID string `ini:"aws_access_key_id"` ExternalID string `ini:"external_id"` MFASerial string `ini:"mfa_serial"` Name string RoleARN string `ini:"role_arn"` SecretAccessKey string `ini:"aws_secret_access_key"` SourceProfile string `ini:"source_profile"` }
Profile is a long- or short-time credential profile managed in a shared config
func (*Profile) IsLongTerm ¶
IsLongTerm identifies a profile that does not assume a role using a source profile
func (*Profile) Value ¶
func (p *Profile) Value() credentials.Value
Value returns the credentials associated with the profile (if any) - only long term profiles have credentials
Click to show internal directories.
Click to hide internal directories.