modules

package
v0.0.0-...-2aeb782 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(vs []string, f func(string) bool) bool

func Any

func Any(vs []string, f func(string) bool) bool

func Connect

func Connect(inst Instance, user string, keyPath string)

func Filter

func Filter(vs []string, f func(string) bool) []string

func Include

func Include(vs []string, t string) bool

func Index

func Index(vs []string, t string) int

func Map

func Map(vs []string, f func(string) string) []string

Map map array of strings

func RemoveDuplicatesUnordered

func RemoveDuplicatesUnordered(elements []string) []*string

RemoveDuplicatesUnordered dedupe

Types

type Instance

type Instance struct {
	Id          string
	User        string
	Host        string
	PrivateIp   string
	Key         string
	Name        string
	Port        string
	State       string
	Type        string
	ImageId     string
	FullKeyPath string
	Tags        []Tag
}

Instance ec2 instance type

func (Instance) GetKey

func (i Instance) GetKey(key string) string

func (Instance) KeyPath

func (i Instance) KeyPath(basePath string) string

KeyPath get full key path for instance

type Instances

type Instances []Instance

Instances Instance Collection type

func GetInstances

func GetInstances(region string) Instances

GetInstances find by region

func (Instances) CollectString

func (instances Instances) CollectString(f func(Instance) string) []string

CollectString collects

func (Instances) CreateTable

func (instances Instances) CreateTable(writer io.Writer)

CreateTable creates a formated table of instances

func (Instances) Filter

func (instances Instances) Filter(f func(Instance) bool) Instances

func (Instances) FilterByName

func (instances Instances) FilterByName(name string) Instances

FilterByName filters collection by instance name

type Tag

type Tag struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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