commands

package
v0.0.0-...-b1d5767 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	Region    string `long:"aws-region" env:"AWS_DEFAULT_REGION" description:"defaults to"`
	AccessKey string `long:"aws-access-key" env:"AWS_ACCESS_KEY_ID" description:"defaults to"`
	SecretKey string `long:"aws-secret-key" env:"AWS_SECRET_ACCESS_KEY" description:"defaults to"`

	EndpointOverrides string        `long:"endpoint-overrides" env:"TUBES_AWS_ENDPOINTS" description:"JSON hash of AWS endpoint URLs.  Override for testing."`
	StackWaitTimeout  time.Duration `long:"stack-wait-timeout" default:"7m" description:"maximum time to wait for CloudFormation stack changes"`
}

type CLIOptions

type CLIOptions struct {
	Name      string    `short:"n" long:"name"  description:"Name of environment to manipulate"`
	AWSConfig AWSConfig `group:"aws"`
	StateDir  string    `` /* 210-byte string literal not displayed */

	BoshIOURL string `long:"bosh-io-url" default:"https://bosh.io" env:"TUBES_BOSH_IO_URL" description:"URL of BOSH hub.  Override for testing."`

	Up   Up   `command:"up" description:"Boot a new environment with the given name"`
	Down Down `command:"down" description:"Tear down the named environment"`
	Show Show `command:"show" description:"Show information about the named environment"`
}

func New

func New() *CLIOptions

func (*CLIOptions) InitApp

func (options *CLIOptions) InitApp(args []string) (*application.Application, error)

type Down

type Down struct {
	*CLIOptions `no-flag:"true"`
}

func (*Down) Execute

func (c *Down) Execute(args []string) error

type Show

type Show struct {
	*CLIOptions `no-flag:"true"`

	SSHKey          bool `long:"ssh" description:"print the SSH key needed to login to the VMs instances"`
	BoshIP          bool `long:"bosh-ip" description:"print the IP address of the BOSH director"`
	BoshPassword    bool `long:"bosh-password" description:"print the admin password for the BOSH director"`
	BoshEnvironment bool `long:"bosh-environment" description:"print the BOSH environment variables, suitable for sourcing in bash"`
}

func (*Show) Execute

func (c *Show) Execute(args []string) error

type Up

type Up struct {
	*CLIOptions `no-flag:"true"`
}

func (*Up) Execute

func (c *Up) Execute(args []string) error

Jump to

Keyboard shortcuts

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