commons

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_REGION = "ap-northeast-1"
	VERSION        = "1.1.1"
)

Variables

View Source
var Flags struct {
	VersionFlag bool   // --version -v
	Delimiter   string // --delimiter -d
	ImageId     string // --imageid
	Region      string // --region
	Type        string // --type
	Keyname     string // --key
	Force       bool   // --force -f
	GroupId     string // --group-id
	Address     string // --address
	Protocol    string // --protocol
	Port        string // --port
	Way         string // --way
	NoFailover  bool   // --no-failover
	SnapshotId  string // --snapshot-id
	FilePath    string // --file
}

Functions

func CheckAWSRegion

func CheckAWSRegion(region string) bool

Check valid AWS region

func Confirm

func Confirm() bool

Confirmation before dangerous operation

func GetAwsRegions

func GetAwsRegions() []string

Get AWS regions list

Types

type InstanceList

type InstanceList struct {
	Tags             string
	InstanceId       string
	State            string
	PublicIpAddress  string
	PrivateIpAddress string
	AvailabilityZone string
	Provider         string
}

Jump to

Keyboard shortcuts

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