commands

package
v0.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCommand

type AWSCommand struct {
	AccessKey    string `long:"accesskey" env:"AWS_ACCESSKEY" description:"aws access key" required:"true"`
	SecretKey    string `long:"secretkey" env:"AWS_SECRETKEY" description:"aws secret access key" required:"true"`
	Region       string `long:"region" default:"us-east-1" env:"AWS_REGION" description:"aws region" required:"true"`
	VPC          string `long:"vpc" env:"AWS_VPC" description:"aws VPC id" required:"true"`
	Name         string `long:"name" env:"AWS_NAME" description:"aws name tag for vm" required:"true"`
	AMI          string `long:"ami" env:"AWS_AMI" description:"aws ami to provision" required:"true"`
	InstanceType string `long:"instanceType" env:"AWS_INSTANCE_TYPE" description:"aws instance type to provision" required:"true"`
	ElasticIP    string `long:"elastic-ip" env:"AWS_ELASTIC_IP" description:"aws elastic ip to associate to provisioned VM" required:"true"`
}

func (*AWSCommand) Execute

func (c *AWSCommand) Execute([]string) error

type CliaasCommand

type CliaasCommand struct {
	Version VersionCommand `command:"version" description:"Print version information and exit"`
	AWS     AWSCommand     `command:"aws" description:"blue-green deployment of aws VM matching name pattern"`
}
var Cliaas CliaasCommand

Cliaas - the command structure

type VersionCommand

type VersionCommand struct {
}

func (*VersionCommand) Execute

func (c *VersionCommand) Execute([]string) error

Jump to

Keyboard shortcuts

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