Documentation ¶
Index ¶
- func Execute() error
- type AWSUtils
- func (a *AWSUtils) ActivateOldKeys(accessKeyId string, username string) error
- func (a *AWSUtils) DeactivateOldKeys(accessKeyId string, username string) error
- func (a AWSUtils) DeleteCredentials(accessKeyId, username string) error
- func (a *AWSUtils) GetCurrentUsername() (string, error)
- func (a *AWSUtils) GetNewKeys(username string) (IAMCredentials, error)
- type AwsCliConfig
- func (a *AwsCliConfig) GetAwsSharedCredentialFilePath() (string, error)
- func (a *AwsCliConfig) GetCurrentProfile() string
- func (a AwsCliConfig) GetIAMCredentials() IAMCredentials
- func (a *AwsCliConfig) ParseConfig() (*ini.File, error)
- func (a AwsCliConfig) SaveConfig() error
- func (a *AwsCliConfig) SetIAMCredentials(newCredentials IAMCredentials) (*ini.File, error)
- func (a *AwsCliConfig) StashOldCredentials() (*ini.File, string, error)
- type IAMCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSUtils ¶
type AWSUtils struct {
// contains filtered or unexported fields
}
func NewAWSUtils ¶
func (*AWSUtils) ActivateOldKeys ¶
func (*AWSUtils) DeactivateOldKeys ¶
func (AWSUtils) DeleteCredentials ¶
func (*AWSUtils) GetCurrentUsername ¶
func (*AWSUtils) GetNewKeys ¶
func (a *AWSUtils) GetNewKeys(username string) (IAMCredentials, error)
type AwsCliConfig ¶
type AwsCliConfig struct {
// contains filtered or unexported fields
}
func NewAwsCliConfig ¶
func NewAwsCliConfig() (*AwsCliConfig, error)
func (*AwsCliConfig) GetAwsSharedCredentialFilePath ¶
func (a *AwsCliConfig) GetAwsSharedCredentialFilePath() (string, error)
func (*AwsCliConfig) GetCurrentProfile ¶
func (a *AwsCliConfig) GetCurrentProfile() string
func (AwsCliConfig) GetIAMCredentials ¶
func (a AwsCliConfig) GetIAMCredentials() IAMCredentials
func (*AwsCliConfig) ParseConfig ¶
func (a *AwsCliConfig) ParseConfig() (*ini.File, error)
func (AwsCliConfig) SaveConfig ¶
func (a AwsCliConfig) SaveConfig() error
func (*AwsCliConfig) SetIAMCredentials ¶
func (a *AwsCliConfig) SetIAMCredentials(newCredentials IAMCredentials) (*ini.File, error)
func (*AwsCliConfig) StashOldCredentials ¶
func (a *AwsCliConfig) StashOldCredentials() (*ini.File, string, error)
StashOldCredentials Stash old credentials just in case we might needed it after de-activation
type IAMCredentials ¶
type IAMCredentials struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.