Versions in this module Expand all Collapse all v0 v0.1.2 Jul 6, 2020 Changes in this version + 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 struct + func GetToken(conf aws.Config, serial, token, role string, dur int64) (Creds, error) + func (c Creds) JSON() string + func (c Creds) Shell() string + func (c Creds) String() string + type Flags struct + Duration int64 + Expiry bool + Format string + MFADevice string + Profile string + Region string + Role string + RoleFile string + RoleIsARN bool + Stdout bool + Verbose bool + func ParseConfig(profile, region, roleName, roleFile, mfaDevice, sessDef string, args []string) Flags