Documentation
¶
Index ¶
- func CheckError(err error, msg string)
- func GetProfileChain(awsConfigFiles *ini.File, profileName string) ([]AwsProfile, AwsProfile)
- func OutputAwsCredentials(profileName string, creds AwsCredentials, format string)
- func ParseArgs() (string, int, *ini.File, string)
- func StartAssumeRoleMessage(profile AwsProfile)
- func SuccessAssumeRoleMessage(creds AwsCredentials)
- func Usage()
- type AwsCredentials
- type AwsProfile
- type SsoClientState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func GetProfileChain ¶
func GetProfileChain(awsConfigFiles *ini.File, profileName string) ([]AwsProfile, AwsProfile)
func OutputAwsCredentials ¶
func OutputAwsCredentials(profileName string, creds AwsCredentials, format string)
func StartAssumeRoleMessage ¶
func StartAssumeRoleMessage(profile AwsProfile)
func SuccessAssumeRoleMessage ¶
func SuccessAssumeRoleMessage(creds AwsCredentials)
Types ¶
type AwsCredentials ¶
type AwsCredentials struct { AccessKeyId string SecretAccessKey string ExpiresAt time.Time SessionToken string }
func AssumeBaseRoleSso ¶
func AssumeBaseRoleSso(profile AwsProfile) AwsCredentials
func AssumeBaseRoleSts ¶
func AssumeBaseRoleSts(profile AwsProfile, duration int) AwsCredentials
func AssumeRoleSts ¶
func AssumeRoleSts(profile AwsProfile, currentCreds AwsCredentials, duration int) AwsCredentials
type AwsProfile ¶
Click to show internal directories.
Click to hide internal directories.