Documentation ¶
Index ¶
- func ConfigureProfiles(ctx context.Context) error
- func CopyFile(src, dst string) error
- func GetCredentials(ctx context.Context, profile string, ask bool) (*aws.Credentials, error)
- func Init(parser *flags.Parser)
- func LoadSsoProfiles() (map[string]AwsProfile, error)
- func NewAwsConfig(ctx context.Context, creds *aws.Credentials, ...) (aws.Config, error)
- func NewSsoProfiles() map[string]AwsProfile
- func PrintCredentials(creds *aws.Credentials)
- func WriteSsoProfiles(profiles map[string]AwsProfile) error
- type AwsProfile
- type ConfigureCommand
- type LoginCommand
- type RoleCredentials
- type SsoDeviceCredentials
- type SsoSessionCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureProfiles ¶
func GetCredentials ¶
func LoadSsoProfiles ¶
func LoadSsoProfiles() (map[string]AwsProfile, error)
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 PrintCredentials ¶
func PrintCredentials(creds *aws.Credentials)
func WriteSsoProfiles ¶
func WriteSsoProfiles(profiles map[string]AwsProfile) error
Types ¶
type AwsProfile ¶
type AwsProfile struct { StartUrl string `ini:"sso_start_url"` Region string `ini:"sso_region"` AccountId string `ini:"sso_account_id"` Role string `ini:"sso_role_name"` }
func GetAccount ¶
func GetAccount(account string) (*string, *AwsProfile, error)
type ConfigureCommand ¶
type ConfigureCommand struct{}
func (*ConfigureCommand) Execute ¶
func (p *ConfigureCommand) Execute(args []string) error
type LoginCommand ¶
type LoginCommand struct { Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"` Ask bool `long:"ask" env:"AWSFUZZY_ASK" description:"Ask before continuing"` }
func (*LoginCommand) Execute ¶
func (p *LoginCommand) Execute(args []string) error
type RoleCredentials ¶
type SsoDeviceCredentials ¶
type SsoSessionCredentials ¶
type SsoSessionCredentials struct { StartUrl *string `json:"startUrl"` Region string `json:"region"` AccessToken *string `json:"accessToken"` ExpiresAt rfc3339 `json:"expiresAt"` }
func NewSsoCredentials ¶
Click to show internal directories.
Click to hide internal directories.