Versions in this module Expand all Collapse all v0 v0.4.0 Nov 15, 2020 Changes in this version + var AccountCache map[string]*pkg.LoadedProfile + func AppHomePath() string + func ClearCache() + func ExitOnError(err error) + func ExitWithError(err string, code int) + func HomePath() string + func LoadCache() + func PanicOnError(err error) + type Credential struct + AccessKey string + Expiration time.Time + SecretKey string + Token string + type Credentials struct + Credentials map[string]*Credential + func NewCredentials(data *ini.File) Credentials + func ReadCredentials() *Credentials + func (c Credentials) Add(name string, credential *Credential) + func (c Credentials) Delete(name string) + func (c Credentials) Load(section *ini.Section) + func (c Credentials) Save() + type Profile struct + Account string + Profile string + Region string + Role string + RoleArn string + Roller bool + TTL string + func (p Profile) GenerateName() string + func (p Profile) ParseRoleArn() (string, string) + type Profiles struct + Profiles map[string]*Profile + func NewProfiles(data *ini.File) Profiles + func ReadProfiles() *Profiles + func (p Profiles) Add(name string, profile *Profile) + func (p Profiles) Delete(name string) + func (p Profiles) Load(section *ini.Section) + func (p Profiles) Save() + func (p Profiles) Update(name string, profile *Profile) + type SerialisedCache struct + Data *[]pkg.LoadedProfile + ValidUntil time.Time