Documentation
¶
Index ¶
- Variables
- func AllProfiles() (profiles []string)
- func IsValidProfile(given string) bool
- func IsValidRegion(given string) bool
- func ParseInstanceType(i string) (any, error)
- func ParseRegion(i string) (any, error)
- func StdinInstanceTypeSelector() (string, error)
- func StdinRegionSelector() (string, error)
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 IsValidRegion ¶
func ParseInstanceType ¶
func ParseRegion ¶
func StdinRegionSelector ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.