aws

package
v0.0.0-...-f2f15b6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEVICE_NAME = []string{"b", "c", "d", "e", "f", "g", "h", "i"}
)
View Source
var (
	ErrFieldFromTag = fmt.Errorf("Unable to find field from tag")
)

Functions

func NewCommand

func NewCommand() cli.Command

func NewCreateCommand

func NewCreateCommand() cli.Command

Types

type AMIProfile

type AMIProfile struct {
	Arch *string `json:"arch"`
	Desc *string `json:"description"`
	Id   *string `json:"id"`
	Name *string `json:"name"`
}

type AWSProfile

type AWSProfile map[string]RegionProfile

func (AWSProfile) Dump

func (a AWSProfile) Dump() error

func (AWSProfile) Load

func (a AWSProfile) Load() error

type KeyPair

type KeyPair struct {
	Digest *string `json:"digest"`
	Name   *string `json:"name"`
}

type Profile

type Profile struct {
	Name    string       `json:"name"`
	Region  string       `json:"region"`
	AccntId string       `json:"account_id"`
	VPC     VPCProfile   `json:"vpc"`
	KeyPair []KeyPair    `json:"key_pair"`
	Ami     []AMIProfile `json:"ami"`
}

type RegionProfile

type RegionProfile map[string]*Profile

type SecurityGroup

type SecurityGroup struct {
	Id   *string `json:"id"`
	Desc *string `json:"description"`
	Name *string `json:"name"`
}

type SubnetProfile

type SubnetProfile struct {
	Az        *string `json:"availability_zone"`
	Cidr      *string `json:"cidr"`
	DefaultAz *bool   `json:"default_for_Az"`
	Id        *string `json:"id"`
	Public    *bool   `json:"public"`
}

type VPCProfile

type VPCProfile struct {
	Cidr          *string         `json:"cidr"`
	Id            *string         `json:"id"`
	Subnet        []SubnetProfile `json:"subnet"`
	SecurityGroup []SecurityGroup `json:"security_group"`
}

Jump to

Keyboard shortcuts

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