awsconfig

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AWSHomeDir = func() string {
	var home string
	if runtime.GOOS == "windows" {
		home = os.Getenv("USERPROFILE")
	} else {
		home = os.Getenv("HOME")
	}
	return filepath.Join(home, ".aws")
}
View Source
var ErrPromptAborted = errors.New("prompt aborted")

ErrPromptAborted means the user ended an interactive prompt with Ctrl-C or EOF, or that stdin was never interactive. Callers should treat it as a deliberate abort and stop rather than re-prompt: a non-interactive stdin returns EOF immediately, so retrying spins.

Functions

func AllProfiles

func AllProfiles() (profiles []string)

func IsValidProfile

func IsValidProfile(given string) bool

func IsValidRegion

func IsValidRegion(given string) bool

func ParseInstanceType

func ParseInstanceType(i string) (any, error)

func ParseRegion

func ParseRegion(i string) (any, error)

func StdinInstanceTypeSelector

func StdinInstanceTypeSelector() (string, error)

func StdinRegionSelector

func StdinRegionSelector() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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