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"`
}
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"`
}
Click to show internal directories.
Click to hide internal directories.