Documentation ¶
Index ¶
- Constants
- Variables
- type AWSLBs
- type BOSHDeploymentVars
- type CloudConfig
- type Command
- type CreateLBs
- type CreateLBsConfig
- type DeleteLBs
- type Destroy
- type GCPLBs
- type GlobalFlags
- type JumpboxDeploymentVars
- type LBArgsHandler
- type LBs
- type LBsCmd
- type LatestError
- type NetworkDeletionValidator
- type Plan
- func (p Plan) CheckFastFails(args []string, state storage.State) error
- func (p Plan) Execute(args []string, state storage.State) error
- func (p Plan) InitializePlan(config PlanConfig, state storage.State) (storage.State, error)
- func (p Plan) IsInitialized(state storage.State) bool
- func (p Plan) ParseArgs(args []string, state storage.State) (PlanConfig, error)
- func (Plan) Usage() string
- type PlanConfig
- type PrintEnv
- type Rotate
- type SSHKey
- type StateQuery
- type Up
- type Usage
- type Version
Constants ¶
View Source
const ( PlanCommandUsage = `` /* 1551-byte string literal not displayed */ UpCommandUsage = `` /* 1513-byte string literal not displayed */ DestroyCommandUsage = `Tears down BOSH director infrastructure [--no-confirm] Do not ask for confirmation (optional) [--skip-if-missing] Gracefully exit if there is no state file (optional)` + requiresCredentials CreateLBsCommandUsage = `Attaches load balancer(s) with a certificate, key, and optional chain --type Load balancer(s) type. Valid options: "concourse" or "cf" [--cert] Path to SSL certificate (conditionally required; refer to table below) [--key] Path to SSL certificate key (conditionally required; refer to table below) [--chain] Path to SSL certificate chain (optional; only supported on aws) [--domain] Creates a DNS zone and records for the given domain (supported when type="cf")` + requiresCredentials + certKeyRequirements DeleteLBsCommandUsage = `Deletes load balancer(s) [--skip-if-missing] Skips deleting load balancer(s) if it is not attached (optional)` + requiresCredentials LBsCommandUsage = "Prints attached load balancer(s)" VersionCommandUsage = "Prints version" UsageCommandUsage = "Prints helpful message for the given command" EnvIdCommandUsage = "Prints environment ID" SSHKeyCommandUsage = "Prints SSH private key for the jumpbox." DirectorSSHKeyCommandUsage = "Prints SSH private key for the director." RotateCommandUsage = "Rotates SSH key for the jumpbox user." + requiresCredentials JumpboxAddressCommandUsage = "Prints BOSH jumpbox address" DirectorUsernameCommandUsage = "Prints BOSH director username" DirectorPasswordCommandUsage = "Prints BOSH director password" DirectorAddressCommandUsage = "Prints BOSH director address" DirectorCACertCommandUsage = "Prints BOSH director CA certificate" PrintEnvCommandUsage = "Prints required BOSH environment variables" LatestErrorCommandUsage = "Prints the output from the latest call to terraform" BOSHDeploymentVarsCommandUsage = "Prints required variables for BOSH deployment" JumpboxDeploymentVarsCommandUsage = "Prints required variables for jumpbox deployment" CloudConfigUsage = "Prints suggested cloud configuration for BOSH environment" )
View Source
const ( EnvIDCommand = "env-id" JumpboxAddressCommand = "jumpbox-address" DirectorUsernameCommand = "director-username" DirectorPasswordCommand = "director-password" DirectorAddressCommand = "director-address" DirectorCACertCommand = "director-ca-cert" EnvIDPropertyName = "environment id" JumpboxAddressPropertyName = "jumpbox address" DirectorUsernamePropertyName = "director username" DirectorPasswordPropertyName = "director password" DirectorAddressPropertyName = "director address" DirectorCACertPropertyName = "director ca cert" )
View Source
const ( UsageHeader = `` /* 316-byte string literal not displayed */ CommandUsage = ` [%s command options] %s` )
View Source
const (
CloudConfigCommand = "cloud-config"
)
View Source
const GlobalUsage = `` /* 1716-byte string literal not displayed */
Variables ¶
View Source
var LBNotFound error = errors.New("no load balancer has been found for this bbl environment")
Functions ¶
This section is empty.
Types ¶
type BOSHDeploymentVars ¶
type BOSHDeploymentVars struct {
// contains filtered or unexported fields
}
func NewBOSHDeploymentVars ¶
func NewBOSHDeploymentVars(logger logger, boshManager boshManager, stateValidator stateValidator, terraform terraformManager) BOSHDeploymentVars
func (BOSHDeploymentVars) CheckFastFails ¶
func (b BOSHDeploymentVars) CheckFastFails(subcommandFlags []string, state storage.State) error
func (BOSHDeploymentVars) Execute ¶
func (b BOSHDeploymentVars) Execute(args []string, state storage.State) error
func (BOSHDeploymentVars) Usage ¶
func (BOSHDeploymentVars) Usage() string
type CloudConfig ¶
type CloudConfig struct {
// contains filtered or unexported fields
}
func NewCloudConfig ¶
func NewCloudConfig(logger logger, stateValidator stateValidator, cloudConfigManager cloudConfigManager) CloudConfig
func (CloudConfig) CheckFastFails ¶
func (c CloudConfig) CheckFastFails(subcommandFlags []string, state storage.State) error
func (CloudConfig) Usage ¶
func (CloudConfig) Usage() string
type CreateLBs ¶
type CreateLBs struct {
// contains filtered or unexported fields
}
func NewCreateLBs ¶
func NewCreateLBs( logger logger, stateValidator stateValidator, boshManager boshManager, lbArgsHandler lbArgsHandler, cloudConfigManager cloudConfigManager, terraformManager terraformManager, stateStore stateStore, environmentValidator environmentValidator, ) CreateLBs
func (CreateLBs) CheckFastFails ¶
type CreateLBsConfig ¶
type DeleteLBs ¶
type DeleteLBs struct {
// contains filtered or unexported fields
}
func NewDeleteLBs ¶
func NewDeleteLBs(logger logger, stateValidator stateValidator, boshManager boshManager, cloudConfigManager cloudConfigManager, stateStore stateStore, environmentValidator environmentValidator, terraformManager terraformManager) DeleteLBs
func (DeleteLBs) CheckFastFails ¶
type Destroy ¶
type Destroy struct {
// contains filtered or unexported fields
}
func NewDestroy ¶
func NewDestroy(plan plan, logger logger, stdin io.Reader, boshManager boshManager, stateStore stateStore, stateValidator stateValidator, terraformManager terraformManager, networkDeletionValidator NetworkDeletionValidator) Destroy
func (Destroy) CheckFastFails ¶
type GlobalFlags ¶
type JumpboxDeploymentVars ¶
type JumpboxDeploymentVars struct {
// contains filtered or unexported fields
}
func NewJumpboxDeploymentVars ¶
func NewJumpboxDeploymentVars(logger logger, boshManager boshManager, stateValidator stateValidator, terraform terraformManager) JumpboxDeploymentVars
func (JumpboxDeploymentVars) CheckFastFails ¶
func (b JumpboxDeploymentVars) CheckFastFails(subcommandFlags []string, state storage.State) error
func (JumpboxDeploymentVars) Execute ¶
func (b JumpboxDeploymentVars) Execute(args []string, state storage.State) error
func (JumpboxDeploymentVars) Usage ¶
func (JumpboxDeploymentVars) Usage() string
type LBArgsHandler ¶
type LBArgsHandler struct {
// contains filtered or unexported fields
}
func NewLBArgsHandler ¶
func NewLBArgsHandler(certificateValidator certificateValidator) LBArgsHandler
func (LBArgsHandler) GetLBState ¶
func (l LBArgsHandler) GetLBState(iaas string, config CreateLBsConfig) (storage.LB, error)
type LBs ¶
type LBs struct {
// contains filtered or unexported fields
}
func (LBs) CheckFastFails ¶
type LatestError ¶
type LatestError struct {
// contains filtered or unexported fields
}
func NewLatestError ¶
func NewLatestError(logger logger, stateValidator stateValidator) LatestError
func (LatestError) CheckFastFails ¶
func (l LatestError) CheckFastFails(subcommandFlags []string, state storage.State) error
func (LatestError) Execute ¶
func (l LatestError) Execute(subcommandFlags []string, bblState storage.State) error
func (LatestError) Usage ¶
func (LatestError) Usage() string
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
func NewPlan ¶
func NewPlan(boshManager boshManager, cloudConfigManager cloudConfigManager, stateStore stateStore, envIDManager envIDManager, terraformManager terraformManager, lbArgsHandler lbArgsHandler, logger logger, ) Plan
func (Plan) InitializePlan ¶
type PlanConfig ¶
type PrintEnv ¶
type PrintEnv struct {
// contains filtered or unexported fields
}
func NewPrintEnv ¶
func NewPrintEnv(logger logger, stateValidator stateValidator, sshKeyGetter sshKeyGetter, terraformManager terraformManager) PrintEnv
func (PrintEnv) CheckFastFails ¶
type Rotate ¶
type Rotate struct {
// contains filtered or unexported fields
}
func NewRotate ¶
func NewRotate(stateValidator stateValidator, sshKeyDeleter sshKeyDeleter, up up) Rotate
func (Rotate) CheckFastFails ¶
type SSHKey ¶
type SSHKey struct { Director bool // contains filtered or unexported fields }
func NewDirectorSSHKey ¶
func NewDirectorSSHKey(logger logger, stateValidator stateValidator, sshKeyGetter sshKeyGetter) SSHKey
func NewSSHKey ¶
func NewSSHKey(logger logger, stateValidator stateValidator, sshKeyGetter sshKeyGetter) SSHKey
func (SSHKey) CheckFastFails ¶
type StateQuery ¶
type StateQuery struct {
// contains filtered or unexported fields
}
func NewStateQuery ¶
func NewStateQuery(logger logger, stateValidator stateValidator, terraformManager terraformManager, propertyName string) StateQuery
func (StateQuery) CheckFastFails ¶
func (s StateQuery) CheckFastFails(subcommandFlags []string, state storage.State) error
func (StateQuery) Execute ¶
func (s StateQuery) Execute(subcommandFlags []string, state storage.State) error
func (StateQuery) Usage ¶
func (s StateQuery) Usage() string
type Up ¶
type Up struct {
// contains filtered or unexported fields
}
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
func (Usage) CheckFastFails ¶
func (Usage) PrintCommandUsage ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func NewVersion ¶
func (Version) CheckFastFails ¶
Source Files ¶
- aws_lbs.go
- bosh_deployment_vars.go
- cloud_config.go
- command.go
- commands_usage.go
- create_lbs.go
- delete_lbs.go
- destroy.go
- fail_fast_bosh_version.go
- gcp_lbs.go
- global_flags.go
- helpers.go
- interfaces.go
- jumpbox_deployment_vars.go
- latest_error.go
- lb_args_handler.go
- lbs.go
- plan.go
- print_env.go
- rotate.go
- ssh_key.go
- state_query.go
- up.go
- usage.go
- version.go
Click to show internal directories.
Click to hide internal directories.