config

package
v0.0.0-...-145e272 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AWSHomeDir = func() string {
	var home string
	home = os.Getenv("HOME")
	return filepath.Join(home, ".aws")
}

AWSHomeDir get aws config directory.

Functions

func ExistingProfiles

func ExistingProfiles() (profiles []string)

ExistingProfiles returns all profiles in aws config.

func IsValidProfile

func IsValidProfile(profile string) bool

IsValidProfile validate given profile.

func IsValidRegion

func IsValidRegion(i string) bool

IsValidRegion validates given region

func ParseRegion

func ParseRegion(i string) (interface{}, error)

ParseRegion parses region.

Types

type Config

type Config struct {
	Image       string
	Owner       string
	Asgname     string
	Clustername string
	Dryrun      bool
	Debug       bool
	Generation  int
}

Config represents command configuration.

func SetConfig

func SetConfig(ctx *cli.Context) *Config

SetConfig set current args to config

Jump to

Keyboard shortcuts

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