Versions in this module Expand all Collapse all v0 v0.1.0 Jan 25, 2019 Changes in this version + const AliasFileEnv + const CommonRoleEnv + const CtlRole + const CtxVer + const DaemonEnv + const ErrCtlUpdate + const ErrNoAccess + const ErrNoCtl + const IAMPath + const IAMTmpPath + const MasterRoleEnv + const OktaAWSAppEnv + const OktaAWSRoleEnv + const OktaHostEnv + const OktaUserEnv + const ProfileEnv + const SecretFileEnv + func Run(c cmd) (interface{}, error) + func RunAndPrint(c printCmd) error + type Account struct + Ctl Ctl + Err error + IAM iamx.Client + ID string + Name string + func NewAccount(id, name string) *Account + func (ac *Account) CredsProvider() *creds.Provider + func (ac *Account) CtlUpdate(err error) error + type AccountSpec struct + func ParseAccountSpec(spec, user string) *AccountSpec + func (s *AccountSpec) Filter(acs Accounts) (Accounts, error) + func (s *AccountSpec) IsStatic(acs Accounts) bool + type Accounts []*Account + func (s Accounts) ClearErr() Accounts + func (s Accounts) CredsOrErr() Accounts + func (s Accounts) CtlOrErr() Accounts + func (s Accounts) EnsureCreds(d time.Duration) Accounts + func (s Accounts) Filter(fn func(ac *Account) bool) Accounts + func (s Accounts) InitCtl() Accounts + func (s Accounts) LoadCtl(reload bool) Accounts + func (s Accounts) Map(fn func(i int, ac *Account) error) Accounts + func (s Accounts) SortByID() Accounts + func (s Accounts) SortByName() Accounts + func (s Accounts) StoreCtl() Accounts + type AuthMode int + const IAM + const Okta + const STS + const Unknown + type Ctl struct + Desc string + Owner string + Tags Tags + func (ctl *Ctl) Decode(b64 string) error + func (ctl *Ctl) Encode() (string, error) + func (ctl *Ctl) Init(c iamx.Client) error + func (ctl *Ctl) Load(c iamx.Client) error + func (ctl *Ctl) Store(c iamx.Client) error + type Ctx struct + AliasFile string + CommonRole string + Daemon daemon.Addr + EnvCfg external.EnvConfig + MasterRole string + OktaAWSApp string + OktaAWSRole string + OktaHost string + OktaUser string + Profile string + SecretFile string + func EnvCtx() *Ctx + func NewCtx() *Ctx + func (c *Ctx) Accounts() Accounts + func (c *Ctx) AuthMode() AuthMode + func (c *Ctx) Cfg() aws.Config + func (c *Ctx) CredsProvider(accountID string) *creds.Provider + func (c *Ctx) Ident() creds.Ident + func (c *Ctx) Init(cfg *aws.Config) error + func (c *Ctx) MasterExternalID() *string + func (c *Ctx) Match(spec string) (Accounts, error) + func (c *Ctx) Okta() *okta.Client + func (c *Ctx) Org() account.Org + func (c *Ctx) Refresh() error + func (c *Ctx) Register(acs Accounts) Accounts + func (c *Ctx) Role() arn.ARN + func (c *Ctx) Save() *SavedCtx + type Error string + func (e Error) Error() string + type Flags uint32 + const CredsFlag + const CtlFlag + const LoadFlag + const OrgFlag + func (f *Flags) Clear(b Flags) + func (f *Flags) Set(b Flags) + func (f Flags) CredsValid() bool + func (f Flags) CtlValid() bool + func (f Flags) Test(b Flags) bool + type GetCtx struct + Sig string + type SavedCtx struct + Accounts []Account + Creds []savedCreds + Ctx Ctx + DirOrg account.Org + OktaCreds *aws.Credentials + OktaSess *okta.Session + ProxyIdent creds.Ident + ProxySessName string + Secret string + Sig string + func (sc *SavedCtx) Restore() (*Ctx, error) + type Tags []string + func ParseTags(s string) (set, clr Tags, err error) + func (t *Tags) Apply(set, clr Tags) + func (t Tags) Diff(u Tags) (set, clr Tags) + func (t Tags) Sort() Tags + func (t Tags) String() string + type Ver int + func (v Ver) Version() Ver