Documentation ¶
Index ¶
- func Code(r io.Reader, w io.Writer) (string, error)
- func CredName(p, r string) string
- func Expiry(env string) string
- func GetMFADevice(cfg aws.Config, device string) (string, error)
- func LoadLocalConfig(profile, region string) (aws.Config, error)
- func LookupRole(role string, roleData io.Reader) (string, error)
- type Creds
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMFADevice ¶
GetMFADevice ...
func LoadLocalConfig ¶
LoadLocalConfig ...
Types ¶
type Flags ¶
type Flags struct { Format string Profile string Region string Role string RoleFile string MFADevice string Duration int64 RoleIsARN bool Expiry bool Stdout bool Verbose bool }
Flags holds the config data.
func ParseConfig ¶
func ParseConfig(profile, region, roleName, roleFile, mfaDevice, sessDef string, args []string) Flags
ParseConfig returns the cmd line flags converted to a Flags struct.
Click to show internal directories.
Click to hide internal directories.