Documentation ¶
Index ¶
- func Command() *cli.Command
- func CopyFile(src, dst string) error
- func NewAwsConfig(ctx context.Context, creds *aws.Credentials, ...) (aws.Config, error)
- func NewSsoProfiles() map[string]AwsProfile
- func WriteSsoProfiles(profiles map[string]AwsProfile) error
- type AwsProfile
- type Browser
- type Configure
- type Console
- type CredentialProcess
- type Login
- func (p *Login) AskAuth() bool
- func (p *Login) AssumeRoleWithCreds(ctx context.Context, parentcreds *aws.Credentials) (aws.Credentials, error)
- func (p *Login) Execute(ctx context.Context) error
- func (p *Login) GetCredentials(ctx context.Context) (*aws.Credentials, error)
- func (p *Login) GetProfile(profile string) (*awsprofile.Profile, error)
- func (p *Login) GetProfileFromID(id string) (*awsprofile.Profile, error)
- func (p *Login) LoadProfiles()
- func (p *Login) LoginMFA(ctx context.Context) (aws.Credentials, error)
- func (p *Login) PrintCredentials(creds *aws.Credentials)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAwsConfig ¶
func NewAwsConfig(ctx context.Context, creds *aws.Credentials, opts ...func(*config.LoadOptions) error) (aws.Config, error)
func NewSsoProfiles ¶
func NewSsoProfiles() map[string]AwsProfile
func WriteSsoProfiles ¶
func WriteSsoProfiles(profiles map[string]AwsProfile) error
Types ¶
type AwsProfile ¶
type Browser ¶ added in v0.12.0
func NewBrowser ¶ added in v0.20.0
type Configure ¶ added in v0.12.0
type Configure struct {
Verbose bool
}
func NewConfigure ¶ added in v0.20.0
func (*Configure) ConfigureProfiles ¶ added in v0.12.0
func (*Configure) GetAccountAccess ¶ added in v0.12.0
type Console ¶ added in v0.12.0
type Console struct { Profile string Region string Service string Url bool Verbose bool NoCache bool }
func NewConsole ¶ added in v0.20.0
type CredentialProcess ¶ added in v0.16.0
func NewCredentialProcess ¶ added in v0.20.0
func NewCredentialProcess(profile, token string, verbose bool) *CredentialProcess
type Login ¶ added in v0.12.0
type Login struct { Profile string Ask bool MFATOTP string Verbose bool Url bool NoCache bool // contains filtered or unexported fields }
func (*Login) AssumeRoleWithCreds ¶ added in v0.15.0
func (p *Login) AssumeRoleWithCreds(ctx context.Context, parentcreds *aws.Credentials) (aws.Credentials, error)
func (*Login) GetCredentials ¶ added in v0.12.0
func (*Login) GetProfile ¶ added in v0.12.0
func (p *Login) GetProfile(profile string) (*awsprofile.Profile, error)
func (*Login) GetProfileFromID ¶ added in v0.12.0
func (p *Login) GetProfileFromID(id string) (*awsprofile.Profile, error)
func (*Login) LoadProfiles ¶ added in v0.12.0
func (p *Login) LoadProfiles()
func (*Login) PrintCredentials ¶ added in v0.12.0
func (p *Login) PrintCredentials(creds *aws.Credentials)
Click to show internal directories.
Click to hide internal directories.