Versions in this module Expand all Collapse all v1 v1.1.0 Jan 11, 2021 v1.0.0 Jan 5, 2021 Changes in this version + const FlagAuthMethod + const FlagBatch + const FlagDescAuthMethod + const FlagDescOktaAppURL + const FlagDescOktaURL + const FlagDescPassword + const FlagDescRole + const FlagDescSessionTime + const FlagDescSetAuthMethod + const FlagDescSetInteractive + const FlagDescSetOktaAppURL + const FlagDescSetOktaURL + const FlagDescSetProfileName + const FlagDescSetRole + const FlagDescSetSessionTime + const FlagDescSetUser + const FlagDescSetVerbose + const FlagDescUser + const FlagInteractive + const FlagNoConfig + const FlagOktaAppURL + const FlagOktaURL + const FlagPassword + const FlagProfile + const FlagQuiet + const FlagRole + const FlagSessionTime + const FlagSetAuthMethod + const FlagSetInteractive + const FlagSetOktaAppURL + const FlagSetOktaURL + const FlagSetProfile + const FlagSetRole + const FlagSetSessionTime + const FlagSetUser + const FlagSetVerbose + const FlagUser + const FlagVerbose + func AssumeAwsRole(session *LoginSession, samlResponse *string, samlAwsRole *samlAwsRole) (*credentials.Credentials, error) + func DeleteProfileSettings(profileName string) error + func DisplayGlobalFlags() + func Information(format string, args ...interface{}) + func LoadConfig() error + func OktaLogin(session *LoginSession) (*string, error) + func OktaSamlSession(session *LoginSession, sessionToken string) (samlResponse *string, err error) + func SelectAwsRoleFromSaml(session *LoginSession, saml *string) (*samlAwsRole, error) + func SetGlobalFlags(flags *pflag.FlagSet) + func StoreDefaultSettings(globalSettings *DefaultSettings) error + func StoreProfileSettings(profileSettings *ProfileSettings) error + func WriteAwsCredentials(session *LoginSession, cred *credentials.Credentials) error + type DefaultSettings struct + Interactive *bool + Profile ProfileSettings + Verbose *bool + func CreateDefaultSettings(flags *pflag.FlagSet) (*DefaultSettings, error) + func ListProfiles() (*DefaultSettings, map[string]*ProfileSettings) + func (g *DefaultSettings) Display() + type KeychainPassword struct + Password *string + URL *url.URL + User string + func NewKeychainPassword(flags *pflag.FlagSet, promptForPassword bool) (*KeychainPassword, error) + func (p *KeychainPassword) Delete() error + func (p *KeychainPassword) Update() error + type LoginSession struct + AwsRole *string + AwsSessionTime *int64 + OktaAppURL *url.URL + OktaAuthMethod *string + OktaURL *url.URL + Password *string + ProfileName string + User string + func CreateLoginSession(flags *pflag.FlagSet) (*LoginSession, error) + type ProfileSettings struct + AwsRole *string + AwsSessionTime *int64 + OktaAppURL *string + OktaAuthMethod *string + OktaURL *string + OktaUser *string + ProfileName *string + func CreateProfileSettings(flags *pflag.FlagSet, rootProfileName *string, defaultSettings ProfileSettings) (*ProfileSettings, error) + func NewProfileName(flags *pflag.FlagSet) (*ProfileSettings, error) + func SelectProfile(flags *pflag.FlagSet) *ProfileSettings + func (p *ProfileSettings) Display(profileName *string) + type StoreConfigProvider struct Other modules containing this package github.com/hgschmie/ofa/v3