Documentation
¶
Index ¶
- Constants
- func Apply(profileName string)
- func CheckCredentials(credentials []Credential)
- func Clean(credentials []Credential)
- func DeleteConfigByProfile(profileName, filePath string) error
- func DeleteCredentialByProfile(profileName, filePath string) error
- func GenerateHelpMenu() string
- func IsValidProfile(profileName string) (err error)
- func PrintHelpTo(w io.Writer, s string)
- func PrintTo(w io.Writer, credentials []Credential)
- type Credential
Constants ¶
View Source
const ( AWS_CREDENTIALS = "$HOME/.aws/credentials" AWS_CONFIG = "$HOME/.aws/config" HELP_PRINT = "print - Display all the credentials found in '.aws/credentials`." HELP_CHECK = "check - Checks and displays if the credentials found in '.aws/credentials` are valid or not." HELP_CLEAN = "clean - Removes any invalid credentials found from both '.aws/credentials` and '.aws/config`." HELP_APPLY = "" /* 133-byte string literal not displayed */ HELP_HELP = "help - Display a menu of the commands available and their descriptions. \n" )
Variables ¶
This section is empty.
Functions ¶
func CheckCredentials ¶
func CheckCredentials(credentials []Credential)
func Clean ¶
func Clean(credentials []Credential)
func DeleteConfigByProfile ¶
func GenerateHelpMenu ¶
func GenerateHelpMenu() string
func IsValidProfile ¶
func PrintHelpTo ¶
func PrintTo ¶
func PrintTo(w io.Writer, credentials []Credential)
Types ¶
type Credential ¶
func Parse ¶
func Parse(filePath string) ([]Credential, error)
func (Credential) String ¶
func (c Credential) String() string
Click to show internal directories.
Click to hide internal directories.