awsconfig

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

func AwsConfigFile(cfile string) string

AwsConfigFile determines the correct location for the AWS config file

func PrintAwsConfig added in v1.13.0

func PrintAwsConfig(s *sso.Settings, action url.Action) error

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

func UpdateAwsConfig(s *sso.Settings, action url.Action, cfile string, diff, force bool) error

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

type ProfileCredentials added in v1.16.0

type ProfileCredentials struct {
	Profile         string
	AccessKeyId     string
	SecretAccessKey string
	SessionToken    string
	Expires         string
}

Jump to

Keyboard shortcuts

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