Documentation
¶
Index ¶
- Constants
- func AwsConfigFile(cfile string) string
- func PrintAwsConfig(s *sso.Settings, action url.Action) error
- func PrintProfileCredentials(creds []ProfileCredentials) error
- func UpdateAwsConfig(s *sso.Settings, action url.Action, cfile string, diff, force bool) error
- func WriteProfileCredentials(cfile string, flags int, creds []ProfileCredentials) error
- type ProfileCredentials
Constants ¶
View Source
const ( AWS_CONFIG_FILE = "~/.aws/config" CONFIG_TEMPLATE = `` /* 423-byte string literal not displayed */ )
View Source
const (
CREDENTIALS_TEMPLATE = `` /* 242-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func AwsConfigFile ¶ added in v1.13.0
AwsConfigFile determines the correct location for the AWS config file
func PrintAwsConfig ¶ added in v1.13.0
PrintAwsConfig just prints what our new AWS config file block would look like
func PrintProfileCredentials ¶ added in v1.16.0
func PrintProfileCredentials(creds []ProfileCredentials) error
func UpdateAwsConfig ¶ added in v1.13.0
UpdateAwsConfig updates our AWS config file, optionally presenting a diff for review or possibly making the change without prompting
func WriteProfileCredentials ¶ added in v1.16.0
func WriteProfileCredentials(cfile string, flags int, creds []ProfileCredentials) error
AwsCredentialsFile generates a new AWS credentials file or writes to STDOUT cfile is the path to the file to write to, or "" to write to stdout flags is the flags to pass to os.OpenFile creds is the list of credentials to write
Types ¶
Click to show internal directories.
Click to hide internal directories.