awsconfig

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// permission for user to read/write/execute.
	USER_READ_WRITE_PERM = 0700
)

Variables

This section is empty.

Functions

func GetAWSConfigPath

func GetAWSConfigPath() string

GetAWSConfigPath will return default AWS config file path unless $AWS_CONFIG_FILE environment variable is set

func Load

func Load() (*ini.File, string, error)

loadAWSConfigFile loads the `~/.aws/config` file, and creates it if it doesn't exist.

func Merge

func Merge(opts MergeOpts) error

Types

type MergeOpts

type MergeOpts struct {
	Config            *ini.File
	ProfileName       string
	ProfileAttributes []*awsv1alpha1.ProfileAttributes
}

Jump to

Keyboard shortcuts

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