Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Credentials ¶
type Credentials struct {
AccessKeyId string `env:"AWS_ACCESS_KEY_ID"`
SecretAccessKey string `env:"AWS_SECRET_ACCESS_KEY"`
SessionToken string `env:"AWS_SESSION_TOKEN"`
}
func NewCredsFromRoleCreds ¶
func NewCredsFromRoleCreds(roleCreds *types.RoleCredentials) *Credentials
type Options ¶
type Options struct {
Command Command `arg:"" required:"" help:"Command and arguments."`
AWSProfile string `required:"" env:"AWS_PROFILE" help:"AWS CLI profile."`
AWSConfigFile string `default:"~/.aws/config" env:"AWS_CONFIG_FILE" help:"AWS CLI config file location."`
AWSSSOCacheDir string `default:"~/.aws/sso/cache" env:"AWS_SSO_CACHE_DIR" help:"AWS SSO token cache dir location."`
// contains filtered or unexported fields
}
func (*Options) AfterApply ¶
type SSO ¶
type SSO struct {
*Options
// contains filtered or unexported fields
}
func (*SSO) GetCredentials ¶
func (ssoClient *SSO) GetCredentials(ctx context.Context) (*Credentials, error)
type SSOCache ¶
func NewSSOCache ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.