cmd

package
v0.0.0-...-5bad065 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type AWSUtils

type AWSUtils struct {
	// contains filtered or unexported fields
}

func NewAWSUtils

func NewAWSUtils() (*AWSUtils, error)

func (*AWSUtils) ActivateOldKeys

func (a *AWSUtils) ActivateOldKeys(accessKeyId string, username string) error

func (*AWSUtils) DeactivateOldKeys

func (a *AWSUtils) DeactivateOldKeys(accessKeyId string, username string) error

func (AWSUtils) DeleteCredentials

func (a AWSUtils) DeleteCredentials(accessKeyId, username string) error

func (*AWSUtils) GetCurrentUsername

func (a *AWSUtils) GetCurrentUsername() (string, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL