Documentation ¶
Index ¶
- Constants
- Variables
- type AWSCreateLBs
- type AWSCreateLBsConfig
- type AWSDeleteLBs
- type AWSUp
- type AWSUpConfig
- type AWSUpdateLBs
- type Command
- type CreateLBs
- type DeleteLBs
- type Destroy
- type EnvGetter
- type GCPCreateLBs
- type GCPCreateLBsConfig
- type GCPDeleteLBs
- type GCPUp
- type GCPUpConfig
- type GCPUpdateLBs
- type GlobalFlags
- type LBs
- type PrintEnv
- type StateQuery
- type Up
- type UpdateLBs
- type Usage
- type Version
Constants ¶
View Source
const ( UpCommandUsage = `` /* 1152-byte string literal not displayed */ DestroyCommandUsage = `` /* 178-byte string literal not displayed */ CreateLBsCommandUsage = `` /* 524-byte string literal not displayed */ UpdateLBsCommandUsage = `` /* 391-byte string literal not displayed */ DeleteLBsCommandUsage = `Deletes load balancer(s) [--skip-if-missing] Skips deleting load balancer(s) if it is not attached (optional)` 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" 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" )
View Source
const ( EnvIDCommand = "env-id" SSHKeyCommand = "ssh-key" DirectorUsernameCommand = "director-username" DirectorPasswordCommand = "director-password" DirectorAddressCommand = "director-address" DirectorCACertCommand = "director-ca-cert" BOSHCACertCommand = "bosh-ca-cert" EnvIDPropertyName = "environment id" SSHKeyPropertyName = "ssh key" DirectorUsernamePropertyName = "director username" DirectorPasswordPropertyName = "director password" DirectorAddressPropertyName = "director address" DirectorCACertPropertyName = "director ca cert" BOSHCACertPropertyName = "bosh ca cert" )
View Source
const ( HelpCommand = "help" UsageHeader = `` /* 212-byte string literal not displayed */ CommandUsage = ` [%s command options] %s` )
View Source
const ( VersionCommand = "version" BBLDevVersion = "dev" )
View Source
const CreateLBsCommand = "create-lbs"
View Source
const (
DeleteLBsCommand = "delete-lbs"
)
View Source
const (
DestroyCommand = "destroy"
)
View Source
const GlobalUsage = `` /* 942-byte string literal not displayed */
View Source
const (
LBsCommand = "lbs"
)
View Source
const (
PrintEnvCommand = "print-env"
)
View Source
const (
UpCommand = "up"
)
View Source
const UpdateLBsCommand = "update-lbs"
Variables ¶
View Source
var BBLNotFound error = errors.New("a bbl environment could not be found, please create a new environment before running this command again")
View Source
var LBNotFound error = errors.New("no load balancer has been found for this bbl environment")
Functions ¶
This section is empty.
Types ¶
type AWSCreateLBs ¶
type AWSCreateLBs struct {
// contains filtered or unexported fields
}
func NewAWSCreateLBs ¶
func NewAWSCreateLBs(logger logger, credentialValidator credentialValidator, certificateManager certificateManager, infrastructureManager infrastructureManager, availabilityZoneRetriever availabilityZoneRetriever, boshClientProvider boshClientProvider, boshCloudConfigurator boshCloudConfigurator, cloudConfigManager cloudConfigManager, certificateValidator certificateValidator, guidGenerator guidGenerator, stateStore stateStore) AWSCreateLBs
func (AWSCreateLBs) Execute ¶
func (c AWSCreateLBs) Execute(config AWSCreateLBsConfig, state storage.State) error
type AWSCreateLBsConfig ¶
type AWSDeleteLBs ¶
type AWSDeleteLBs struct {
// contains filtered or unexported fields
}
func NewAWSDeleteLBs ¶
func NewAWSDeleteLBs(credentialValidator credentialValidator, availabilityZoneRetriever availabilityZoneRetriever, certificateManager certificateManager, infrastructureManager infrastructureManager, logger logger, boshCloudConfigurator boshCloudConfigurator, cloudConfigManager cloudConfigManager, boshClientProvider boshClientProvider, stateStore stateStore, ) AWSDeleteLBs
type AWSUp ¶
type AWSUp struct {
// contains filtered or unexported fields
}
func NewAWSUp ¶
func NewAWSUp( credentialValidator credentialValidator, infrastructureManager infrastructureManager, keyPairSynchronizer keyPairSynchronizer, boshDeployer boshDeployer, stringGenerator stringGenerator, boshCloudConfigurator boshCloudConfigurator, availabilityZoneRetriever availabilityZoneRetriever, certificateDescriber certificateDescriber, cloudConfigManager cloudConfigManager, boshClientProvider boshClientProvider, stateStore stateStore, configProvider configProvider) AWSUp
type AWSUpConfig ¶
type AWSUpdateLBs ¶
type AWSUpdateLBs struct {
// contains filtered or unexported fields
}
func NewAWSUpdateLBs ¶
func NewAWSUpdateLBs(credentialValidator credentialValidator, certificateManager certificateManager, availabilityZoneRetriever availabilityZoneRetriever, infrastructureManager infrastructureManager, boshClientProvider boshClientProvider, logger logger, guidGenerator guidGenerator, stateStore stateStore) AWSUpdateLBs
func (AWSUpdateLBs) Execute ¶
func (c AWSUpdateLBs) Execute(config AWSCreateLBsConfig, state storage.State) error
type CreateLBs ¶
type CreateLBs struct {
// contains filtered or unexported fields
}
func NewCreateLBs ¶
func NewCreateLBs(awsCreateLBs awsCreateLBs, gcpCreateLBs gcpCreateLBs, stateValidator stateValidator) CreateLBs
type DeleteLBs ¶
type DeleteLBs struct {
// contains filtered or unexported fields
}
func NewDeleteLBs ¶
func NewDeleteLBs(gcpDeleteLBs gcpDeleteLBs, awsDeleteLBs awsDeleteLBs, logger logger, stateValidator stateValidator) DeleteLBs
type Destroy ¶
type Destroy struct {
// contains filtered or unexported fields
}
func NewDestroy ¶
func NewDestroy(credentialValidator credentialValidator, logger logger, stdin io.Reader, boshDeleter boshDeleter, vpcStatusChecker vpcStatusChecker, stackManager stackManager, stringGenerator stringGenerator, infrastructureManager infrastructureManager, awsKeyPairDeleter awsKeyPairDeleter, gcpKeyPairDeleter gcpKeyPairDeleter, certificateDeleter certificateDeleter, stateStore stateStore, stateValidator stateValidator, terraformExecutor terraformExecutor, terraformOutputter terraformOutputter, networkInstancesChecker networkInstancesChecker) Destroy
type GCPCreateLBs ¶
type GCPCreateLBs struct {
// contains filtered or unexported fields
}
func NewGCPCreateLBs ¶
func NewGCPCreateLBs(terraformExecutor terraformExecutor, terraformOutputter terraformOutputter, cloudConfigGenerator gcpCloudConfigGenerator, boshClientProvider boshClientProvider, zones zones, stateStore stateStore, logger logger) GCPCreateLBs
func (GCPCreateLBs) Execute ¶
func (c GCPCreateLBs) Execute(config GCPCreateLBsConfig, state storage.State) error
type GCPCreateLBsConfig ¶
type GCPDeleteLBs ¶
type GCPDeleteLBs struct {
// contains filtered or unexported fields
}
func NewGCPDeleteLBs ¶
func NewGCPDeleteLBs(terraformOutputter terraformOutputter, cloudConfigGenerator gcpCloudConfigGenerator, zones zones, logger logger, boshClientProvider boshClientProvider, stateStore stateStore, terraformExecutor terraformExecutor) GCPDeleteLBs
type GCPUp ¶
type GCPUp struct {
// contains filtered or unexported fields
}
func NewGCPUp ¶
func NewGCPUp(stateStore stateStore, keyPairUpdater keyPairUpdater, gcpProvider gcpProvider, terraformExecutor terraformExecutor, boshDeployer boshDeployer, stringGenerator stringGenerator, logger logger, boshClientProvider boshClientProvider, cloudConfigGenerator gcpCloudConfigGenerator, terraformOutputter terraformOutputter, zones zones) GCPUp
type GCPUpConfig ¶
type GCPUpdateLBs ¶
type GCPUpdateLBs struct {
// contains filtered or unexported fields
}
func NewGCPUpdateLBs ¶
func NewGCPUpdateLBs(gcpCreateLBs gcpCreateLBs) GCPUpdateLBs
func (GCPUpdateLBs) Execute ¶
func (g GCPUpdateLBs) Execute(config GCPCreateLBsConfig, state storage.State) error
type GlobalFlags ¶
type PrintEnv ¶
type PrintEnv struct {
// contains filtered or unexported fields
}
func NewPrintEnv ¶
func NewPrintEnv(logger logger, stateValidator stateValidator) PrintEnv
type StateQuery ¶
type StateQuery struct {
// contains filtered or unexported fields
}
func NewStateQuery ¶
func NewStateQuery(logger logger, stateValidator stateValidator, propertyName string, getProperty getPropertyFunc) StateQuery
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 UpdateLBs ¶
type UpdateLBs struct {
// contains filtered or unexported fields
}
func NewUpdateLBs ¶
func NewUpdateLBs(awsUpdateLBs awsUpdateLBs, gcpUpdateLBs gcpUpdateLBs, certificateValidator certificateValidator, stateValidator stateValidator, logger logger) UpdateLBs
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
func (Usage) PrintCommandUsage ¶
Source Files ¶
- aws_create_lbs.go
- aws_delete_lbs.go
- aws_up.go
- aws_update_lbs.go
- command.go
- commands_usage.go
- create_lbs.go
- delete_lbs.go
- destroy.go
- env_getter.go
- errors.go
- gcp_create_lbs.go
- gcp_delete_lbs.go
- gcp_terraform_template.go
- gcp_up.go
- gcp_update_lbs.go
- global_flags.go
- lbs.go
- print_env.go
- state_query.go
- up.go
- update_lbs.go
- usage.go
- version.go
Click to show internal directories.
Click to hide internal directories.