Documentation
¶
Index ¶
- type AWSClientProvider
- type AWSEC2Client
- func (c *AWSEC2Client) DescribeAvailabilityZones(input *awsec2.DescribeAvailabilityZonesInput) (*awsec2.DescribeAvailabilityZonesOutput, error)
- func (c *AWSEC2Client) DescribeInstances(input *awsec2.DescribeInstancesInput) (*awsec2.DescribeInstancesOutput, error)
- func (c *AWSEC2Client) DescribeVpcs(input *awsec2.DescribeVpcsInput) (*awsec2.DescribeVpcsOutput, error)
- type AvailabilityZoneRetriever
- type AzureGroupsClient
- type AzureVMsClient
- type BOSHClient
- type BOSHClientProvider
- type BOSHCommand
- func (fake *BOSHCommand) GetBOSHPath() (string, error)
- func (fake *BOSHCommand) Invocations() map[string][][]interface{}
- func (fake *BOSHCommand) Run(stdout io.Writer, workingDirectory string, args []string) error
- func (fake *BOSHCommand) RunArgsForCall(i int) (io.Writer, string, []string)
- func (fake *BOSHCommand) RunCallCount() int
- func (fake *BOSHCommand) RunReturns(result1 error)
- func (fake *BOSHCommand) RunReturnsOnCall(i int, result1 error)
- type BOSHExecutor
- func (e *BOSHExecutor) CreateEnv(input bosh.CreateEnvInput) (string, error)
- func (e *BOSHExecutor) DeleteEnv(input bosh.DeleteEnvInput) error
- func (e *BOSHExecutor) DirectorCreateEnvArgs(input bosh.InterpolateInput) error
- func (e *BOSHExecutor) JumpboxCreateEnvArgs(input bosh.InterpolateInput) error
- func (e *BOSHExecutor) Version() (string, error)
- func (e *BOSHExecutor) WriteDeploymentVars(input bosh.CreateEnvInput) error
- type BOSHManager
- func (b *BOSHManager) CreateDirector(state storage.State, terraformOutputs terraform.Outputs) (storage.State, error)
- func (b *BOSHManager) CreateJumpbox(state storage.State, terraformOutputs terraform.Outputs) (storage.State, error)
- func (b *BOSHManager) DeleteDirector(state storage.State, terraformOutputs terraform.Outputs) error
- func (b *BOSHManager) DeleteJumpbox(state storage.State, terraformOutputs terraform.Outputs) error
- func (b *BOSHManager) GetDirectorDeploymentVars(state storage.State, terraformOutputs terraform.Outputs) string
- func (b *BOSHManager) GetJumpboxDeploymentVars(state storage.State, terraformOutputs terraform.Outputs) string
- func (b *BOSHManager) InitializeDirector(state storage.State) error
- func (b *BOSHManager) InitializeJumpbox(state storage.State) error
- func (b *BOSHManager) Version() (string, error)
- type CertificateDeleter
- type CertificateValidator
- type CloudConfigManager
- func (c *CloudConfigManager) GenerateVars(state storage.State) error
- func (c *CloudConfigManager) Initialize(state storage.State) error
- func (c *CloudConfigManager) Interpolate() (string, error)
- func (c *CloudConfigManager) IsPresentCloudConfig() bool
- func (c *CloudConfigManager) IsPresentCloudConfigVars() bool
- func (c *CloudConfigManager) Update(state storage.State) error
- type CloudConfigOpsGenerator
- type Command
- type CredhubGetter
- type DeleteLBs
- type EnvGetter
- type EnvIDGenerator
- type EnvIDManager
- type EnvironmentValidator
- type Executable
- type FileIO
- type GCPClient
- func (g *GCPClient) GetNetworks(name string) (*compute.NetworkList, error)
- func (g *GCPClient) GetProject() (*compute.Project, error)
- func (g *GCPClient) GetRegion(region string) (*compute.Region, error)
- func (g *GCPClient) GetZone(zone string) (*compute.Zone, error)
- func (g *GCPClient) GetZones(region string) ([]string, error)
- func (g *GCPClient) ListInstances() (*compute.InstanceList, error)
- func (g *GCPClient) ProjectID() string
- func (g *GCPClient) SetCommonInstanceMetadata(metadata *compute.Metadata) (*compute.Operation, error)
- type GCPClientProvider
- type GCPComputeClient
- func (g *GCPComputeClient) GetNetworks(name, projectID string) (*compute.NetworkList, error)
- func (g *GCPComputeClient) GetRegion(region, projectID string) (*compute.Region, error)
- func (g *GCPComputeClient) GetZone(zone, projectID string) (*compute.Zone, error)
- func (g *GCPComputeClient) GetZones(region, projectID string) ([]string, error)
- func (g *GCPComputeClient) ListInstances(projectID, zone string) (*compute.InstanceList, error)
- type GenerateReturn
- type GuidGenerator
- type HostKeyGetter
- type Import
- type InputGenerator
- type LBArgsHandler
- type LBs
- type Logger
- type NetworkClient
- type NetworkDeletionValidator
- type NetworkInstancesChecker
- type Plan
- func (p *Plan) CheckFastFails(subcommandFlags []string, state storage.State) error
- func (p *Plan) Execute(args []string, state storage.State) error
- func (p *Plan) InitializePlan(plan commands.PlanConfig, state storage.State) (storage.State, error)
- func (p *Plan) IsInitialized(state storage.State) bool
- func (p *Plan) ParseArgs(args []string, state storage.State) (commands.PlanConfig, error)
- type Reader
- type SSHKeyDeleter
- type SSHKeyGetter
- type SetCallReceive
- type SetCallReturn
- type Socks5Client
- type Socks5Proxy
- type StateBootstrap
- type StateMigrator
- type StateStore
- func (s *StateStore) GetCloudConfigDir() (string, error)
- func (s *StateStore) GetDirectorDeploymentDir() (string, error)
- func (s *StateStore) GetJumpboxDeploymentDir() (string, error)
- func (s *StateStore) GetOldBblDir() string
- func (s *StateStore) GetStateDir() string
- func (s *StateStore) GetTerraformDir() (string, error)
- func (s *StateStore) GetVarsDir() (string, error)
- func (s *StateStore) Set(state storage.State) error
- type StateValidator
- type TemplateGenerator
- type TerraformCmd
- type TerraformExecutor
- func (t *TerraformExecutor) Apply(credentials map[string]string) error
- func (t *TerraformExecutor) Destroy(credentials map[string]string) error
- func (t *TerraformExecutor) Init(template string, inputs map[string]interface{}) error
- func (t *TerraformExecutor) IsInitialized() bool
- func (t *TerraformExecutor) Output(outputName string) (string, error)
- func (t *TerraformExecutor) Outputs() (map[string]interface{}, error)
- func (t *TerraformExecutor) Version() (string, error)
- type TerraformManager
- func (t *TerraformManager) Apply(bblState storage.State) (storage.State, error)
- func (t *TerraformManager) Destroy(bblState storage.State) (storage.State, error)
- func (t *TerraformManager) GetOutputs() (terraform.Outputs, error)
- func (t *TerraformManager) Import(bblState storage.State, outputs map[string]string) (storage.State, error)
- func (t *TerraformManager) Init(bblState storage.State) error
- func (t *TerraformManager) ValidateVersion() error
- func (t *TerraformManager) Version() (string, error)
- type UUIDGenerator
- type Up
- type UpCmd
- type Usage
- type VPCStatusChecker
- type Zones
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClientProvider ¶
type AWSClientProvider struct {
SetConfigCall struct {
CallCount int
Receives struct {
Config storage.AWS
}
}
GetEC2ClientCall struct {
CallCount int
Returns struct {
EC2Client aws.Client
}
}
}
func (*AWSClientProvider) GetEC2Client ¶
func (c *AWSClientProvider) GetEC2Client() aws.Client
func (*AWSClientProvider) SetConfig ¶
func (c *AWSClientProvider) SetConfig(config storage.AWS)
type AWSEC2Client ¶
type AWSEC2Client struct {
DescribeAvailabilityZonesCall struct {
Receives struct {
Input *awsec2.DescribeAvailabilityZonesInput
}
Returns struct {
Output *awsec2.DescribeAvailabilityZonesOutput
Error error
}
}
DescribeInstancesCall struct {
Receives struct {
Input *awsec2.DescribeInstancesInput
}
Returns struct {
Output *awsec2.DescribeInstancesOutput
Error error
}
}
DescribeVpcsCall struct {
Receives struct {
Input *awsec2.DescribeVpcsInput
}
Returns struct {
Output *awsec2.DescribeVpcsOutput
Error error
}
}
}
func (*AWSEC2Client) DescribeAvailabilityZones ¶
func (c *AWSEC2Client) DescribeAvailabilityZones(input *awsec2.DescribeAvailabilityZonesInput) (*awsec2.DescribeAvailabilityZonesOutput, error)
func (*AWSEC2Client) DescribeInstances ¶
func (c *AWSEC2Client) DescribeInstances(input *awsec2.DescribeInstancesInput) (*awsec2.DescribeInstancesOutput, error)
func (*AWSEC2Client) DescribeVpcs ¶
func (c *AWSEC2Client) DescribeVpcs(input *awsec2.DescribeVpcsInput) (*awsec2.DescribeVpcsOutput, error)
type AvailabilityZoneRetriever ¶
type AvailabilityZoneRetriever struct {
RetrieveAvailabilityZonesCall struct {
Receives struct {
Region string
}
Returns struct {
AZs []string
Error error
}
CallCount int
}
}
func (*AvailabilityZoneRetriever) RetrieveAvailabilityZones ¶
func (a *AvailabilityZoneRetriever) RetrieveAvailabilityZones(region string) ([]string, error)
type AzureGroupsClient ¶
type AzureGroupsClient struct {
CheckExistenceCall struct {
CallCount int
Receives struct {
ResourceGroup string
}
Returns struct {
Response autorest.Response
Error error
}
}
}
func (*AzureGroupsClient) CheckExistence ¶
func (a *AzureGroupsClient) CheckExistence(resourceGroup string) (autorest.Response, error)
type AzureVMsClient ¶
type AzureVMsClient struct {
ListCall struct {
CallCount int
Receives struct {
ResourceGroup string
}
Returns struct {
Result compute.VirtualMachineListResult
Error error
}
}
}
func (*AzureVMsClient) List ¶
func (a *AzureVMsClient) List(resourceGroup string) (compute.VirtualMachineListResult, error)
type BOSHClient ¶
type BOSHClient struct {
UpdateCloudConfigCall struct {
CallCount int
Receives struct {
Yaml []byte
}
Returns struct {
Error error
}
}
ConfigureHTTPClientCall struct {
CallCount int
Receives struct {
Socks5Client proxy.Dialer
}
}
InfoCall struct {
CallCount int
Returns struct {
Info bosh.Info
Error error
}
}
}
func (*BOSHClient) ConfigureHTTPClient ¶
func (c *BOSHClient) ConfigureHTTPClient(socks5Client proxy.Dialer)
func (*BOSHClient) UpdateCloudConfig ¶
func (c *BOSHClient) UpdateCloudConfig(yaml []byte) error
type BOSHClientProvider ¶
type BOSHCommand ¶
type BOSHCommand struct {
GetBOSHPathCall struct {
CallCount int
Returns struct {
Path string
Error error
}
}
RunStub func(stdout io.Writer, workingDirectory string, args []string) error
// contains filtered or unexported fields
}
func (*BOSHCommand) GetBOSHPath ¶
func (fake *BOSHCommand) GetBOSHPath() (string, error)
func (*BOSHCommand) Invocations ¶
func (fake *BOSHCommand) Invocations() map[string][][]interface{}
func (*BOSHCommand) RunArgsForCall ¶
func (*BOSHCommand) RunCallCount ¶
func (fake *BOSHCommand) RunCallCount() int
func (*BOSHCommand) RunReturns ¶
func (fake *BOSHCommand) RunReturns(result1 error)
func (*BOSHCommand) RunReturnsOnCall ¶
func (fake *BOSHCommand) RunReturnsOnCall(i int, result1 error)
type BOSHExecutor ¶
type BOSHExecutor struct {
CreateEnvCall struct {
CallCount int
Receives struct {
Input bosh.CreateEnvInput
}
Returns struct {
Variables string
Error error
}
}
DeleteEnvCall struct {
CallCount int
Receives struct {
Input bosh.DeleteEnvInput
}
Returns struct {
Error error
}
}
JumpboxCreateEnvArgsCall struct {
CallCount int
Receives struct {
InterpolateInput bosh.InterpolateInput
}
Returns struct {
Error error
}
}
DirectorCreateEnvArgsCall struct {
CallCount int
Receives struct {
InterpolateInput bosh.InterpolateInput
}
Returns struct {
Error error
}
}
WriteDeploymentVarsCall struct {
CallCount int
Receives struct {
Input bosh.CreateEnvInput
}
Returns struct {
Error error
}
}
VersionCall struct {
CallCount int
Returns struct {
Version string
Error error
}
}
}
func (*BOSHExecutor) CreateEnv ¶
func (e *BOSHExecutor) CreateEnv(input bosh.CreateEnvInput) (string, error)
func (*BOSHExecutor) DeleteEnv ¶
func (e *BOSHExecutor) DeleteEnv(input bosh.DeleteEnvInput) error
func (*BOSHExecutor) DirectorCreateEnvArgs ¶
func (e *BOSHExecutor) DirectorCreateEnvArgs(input bosh.InterpolateInput) error
func (*BOSHExecutor) JumpboxCreateEnvArgs ¶
func (e *BOSHExecutor) JumpboxCreateEnvArgs(input bosh.InterpolateInput) error
func (*BOSHExecutor) Version ¶
func (e *BOSHExecutor) Version() (string, error)
func (*BOSHExecutor) WriteDeploymentVars ¶
func (e *BOSHExecutor) WriteDeploymentVars(input bosh.CreateEnvInput) error
type BOSHManager ¶
type BOSHManager struct {
InitializeJumpboxCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
Error error
}
}
CreateJumpboxCall struct {
CallCount int
Receives struct {
State storage.State
TerraformOutputs terraform.Outputs
}
Returns struct {
State storage.State
Error error
}
}
InitializeDirectorCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
Error error
}
}
CreateDirectorCall struct {
CallCount int
Receives struct {
State storage.State
TerraformOutputs terraform.Outputs
}
Returns struct {
State storage.State
Error error
}
}
VersionCall struct {
CallCount int
Returns struct {
Version string
Error error
}
}
DeleteDirectorCall struct {
CallCount int
Receives struct {
State storage.State
TerraformOutputs terraform.Outputs
}
Returns struct {
Error error
}
}
DeleteJumpboxCall struct {
CallCount int
Receives struct {
State storage.State
TerraformOutputs terraform.Outputs
}
Returns struct {
Error error
}
}
GetDirectorDeploymentVarsCall struct {
CallCount int
Receives struct {
State storage.State
TerraformOutputs terraform.Outputs
}
Returns struct {
Vars string
}
}
GetJumpboxDeploymentVarsCall struct {
CallCount int
Receives struct {
State storage.State
TerraformOutputs terraform.Outputs
}
Returns struct {
Vars string
}
}
}
func (*BOSHManager) CreateDirector ¶
func (*BOSHManager) CreateJumpbox ¶
func (*BOSHManager) DeleteDirector ¶
func (*BOSHManager) DeleteJumpbox ¶
func (*BOSHManager) GetDirectorDeploymentVars ¶
func (*BOSHManager) GetJumpboxDeploymentVars ¶
func (*BOSHManager) InitializeDirector ¶
func (b *BOSHManager) InitializeDirector(state storage.State) error
func (*BOSHManager) InitializeJumpbox ¶
func (b *BOSHManager) InitializeJumpbox(state storage.State) error
func (*BOSHManager) Version ¶
func (b *BOSHManager) Version() (string, error)
type CertificateDeleter ¶
type CertificateDeleter struct {
DeleteCall struct {
CallCount int
Receives struct {
CertificateName string
}
Returns struct {
Error error
}
}
}
func (*CertificateDeleter) Delete ¶
func (c *CertificateDeleter) Delete(certificateName string) error
type CertificateValidator ¶
type CertificateValidator struct {
ReadAndValidateCall struct {
CallCount int
Returns struct {
CertData certs.CertData
Error error
}
Receives struct {
Command string
CertificatePath string
KeyPath string
ChainPath string
}
}
ReadCall struct {
CallCount int
Returns struct {
CertData certs.CertData
Error error
}
Receives struct {
Command string
CertificatePath string
KeyPath string
ChainPath string
}
}
}
func (*CertificateValidator) Read ¶
func (c *CertificateValidator) Read(certificatePath, keyPath, chainPath string) (certs.CertData, error)
func (*CertificateValidator) ReadAndValidate ¶
func (c *CertificateValidator) ReadAndValidate(certificatePath, keyPath, chainPath string) (certs.CertData, error)
type CloudConfigManager ¶
type CloudConfigManager struct {
UpdateCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
Error error
}
}
InitializeCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
Error error
}
}
GenerateVarsCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
Error error
}
}
InterpolateCall struct {
CallCount int
Returns struct {
CloudConfig string
Error error
}
}
IsPresentCloudConfigCall struct {
CallCount int
Returns struct {
IsPresent bool
}
}
IsPresentCloudConfigVarsCall struct {
CallCount int
Returns struct {
IsPresent bool
}
}
}
func (*CloudConfigManager) GenerateVars ¶
func (c *CloudConfigManager) GenerateVars(state storage.State) error
func (*CloudConfigManager) Initialize ¶
func (c *CloudConfigManager) Initialize(state storage.State) error
func (*CloudConfigManager) Interpolate ¶
func (c *CloudConfigManager) Interpolate() (string, error)
func (*CloudConfigManager) IsPresentCloudConfig ¶
func (c *CloudConfigManager) IsPresentCloudConfig() bool
func (*CloudConfigManager) IsPresentCloudConfigVars ¶
func (c *CloudConfigManager) IsPresentCloudConfigVars() bool
type CloudConfigOpsGenerator ¶
type CloudConfigOpsGenerator struct {
GenerateCall struct {
Receives struct {
State storage.State
}
Returns struct {
OpsYAML string
Error error
}
}
GenerateVarsCall struct {
Receives struct {
State storage.State
}
Returns struct {
VarsYAML string
Error error
}
}
}
func (*CloudConfigOpsGenerator) Generate ¶
func (c *CloudConfigOpsGenerator) Generate(state storage.State) (string, error)
func (*CloudConfigOpsGenerator) GenerateVars ¶
func (c *CloudConfigOpsGenerator) GenerateVars(state storage.State) (string, error)
type Command ¶
type Command struct {
CheckFastFailsCall struct {
CallCount int
Receives struct {
State storage.State
SubcommandFlags []string
}
Returns struct {
Error error
}
}
ExecuteCall struct {
CallCount int
PassState bool
Receives struct {
State storage.State
SubcommandFlags []string
}
Returns struct {
Error error
}
}
UsageCall struct {
CallCount int
Returns struct {
Usage string
}
}
}
func (*Command) CheckFastFails ¶
type CredhubGetter ¶
type CredhubGetter struct {
GetServerCall struct {
CallCount int
Returns struct {
Server string
Error error
}
}
GetCertsCall struct {
CallCount int
Returns struct {
Certs string
Error error
}
}
GetPasswordCall struct {
CallCount int
Returns struct {
Password string
Error error
}
}
}
func (*CredhubGetter) GetCerts ¶
func (s *CredhubGetter) GetCerts() (string, error)
func (*CredhubGetter) GetPassword ¶
func (s *CredhubGetter) GetPassword() (string, error)
func (*CredhubGetter) GetServer ¶
func (s *CredhubGetter) GetServer() (string, error)
type DeleteLBs ¶
type EnvGetter ¶
type EnvIDGenerator ¶
type EnvIDGenerator struct {
GenerateCall struct {
CallCount int
Returns struct {
EnvID string
Error error
}
}
}
func (*EnvIDGenerator) Generate ¶
func (e *EnvIDGenerator) Generate() (string, error)
type EnvIDManager ¶
type EnvironmentValidator ¶
type Executable ¶
type Executable struct {
RunCall struct {
CallCount int
Stub func() error
Returns struct {
Error error
}
}
}
func (*Executable) Run ¶
func (e *Executable) Run() error
type FileIO ¶
type FileIO struct {
TempFileCall struct {
CallCount int
Receives struct {
Dir string
Prefix string
}
Returns struct {
File *os.File
Error error
}
}
ReadFileCall struct {
CallCount int
Receives struct {
Filename string
}
Returns struct {
Contents []byte
Error error
}
}
WriteFileCall struct {
CallCount int
Receives struct {
Filename string
Contents []byte
}
Returns struct {
Error error
}
}
StatCall struct {
CallCount int
Receives struct {
Name string
}
Returns struct {
FileInfo os.FileInfo
Error error
}
}
}
type GCPClient ¶
type GCPClient struct {
ProjectIDCall struct {
CallCount int
Returns struct {
ProjectID string
}
}
GetProjectCall struct {
CallCount int
Returns struct {
Project *compute.Project
Error error
}
}
SetCommonInstanceMetadataCall struct {
CallCount int
Receives struct {
Metadata *compute.Metadata
}
Returns struct {
Operation *compute.Operation
Error error
}
}
ListInstancesCall struct {
CallCount int
Returns struct {
InstanceList *compute.InstanceList
Error error
}
}
GetZonesCall struct {
CallCount int
Receives struct {
Region string
}
Returns struct {
Zones []string
Error error
}
}
GetZoneCall struct {
CallCount int
Receives struct {
Zone string
}
Returns struct {
Zone *compute.Zone
Error error
}
}
GetRegionCall struct {
CallCount int
Receives struct {
Region string
}
Returns struct {
Region *compute.Region
Error error
}
}
GetNetworksCall struct {
CallCount int
Receives struct {
Name string
}
Returns struct {
NetworkList *compute.NetworkList
Error error
}
}
}
func (*GCPClient) GetNetworks ¶
func (g *GCPClient) GetNetworks(name string) (*compute.NetworkList, error)
func (*GCPClient) ListInstances ¶
func (g *GCPClient) ListInstances() (*compute.InstanceList, error)
type GCPClientProvider ¶
type GCPClientProvider struct {
ClientCall struct {
CallCount int
Returns struct {
Client gcp.Client
}
}
SetConfigCall struct {
CallCount int
Receives struct {
ServiceAccountKey string
ProjectID string
Region string
Zone string
}
Returns struct {
Error error
}
}
}
func (*GCPClientProvider) Client ¶
func (g *GCPClientProvider) Client() gcp.Client
func (*GCPClientProvider) SetConfig ¶
func (g *GCPClientProvider) SetConfig(serviceAccountKey, projectID, region, zone string) error
type GCPComputeClient ¶
type GCPComputeClient struct {
ListInstancesCall struct {
CallCount int
Receives struct {
ProjectID string
Zone string
}
Returns struct {
InstanceList *compute.InstanceList
Error error
}
}
GetZonesCall struct {
CallCount int
Receives struct {
Region string
ProjectID string
}
Returns struct {
Zones []string
Error error
}
}
GetZoneCall struct {
CallCount int
Receives struct {
Zone string
ProjectID string
}
Returns struct {
Zone *compute.Zone
Error error
}
}
GetRegionCall struct {
CallCount int
Receives struct {
Region string
ProjectID string
}
Returns struct {
Region *compute.Region
Error error
}
}
GetNetworksCall struct {
CallCount int
Receives struct {
Name string
ProjectID string
}
Returns struct {
NetworkList *compute.NetworkList
Error error
}
}
}
func (*GCPComputeClient) GetNetworks ¶
func (g *GCPComputeClient) GetNetworks(name, projectID string) (*compute.NetworkList, error)
func (*GCPComputeClient) GetRegion ¶
func (g *GCPComputeClient) GetRegion(region, projectID string) (*compute.Region, error)
func (*GCPComputeClient) GetZone ¶
func (g *GCPComputeClient) GetZone(zone, projectID string) (*compute.Zone, error)
func (*GCPComputeClient) GetZones ¶
func (g *GCPComputeClient) GetZones(region, projectID string) ([]string, error)
func (*GCPComputeClient) ListInstances ¶
func (g *GCPComputeClient) ListInstances(projectID, zone string) (*compute.InstanceList, error)
type GenerateReturn ¶
type GuidGenerator ¶
type GuidGenerator struct {
GenerateCall struct {
Receives struct {
CallCount int
}
Returns struct {
Output string
Error error
}
}
}
func (*GuidGenerator) Generate ¶
func (g *GuidGenerator) Generate() (string, error)
type HostKeyGetter ¶
type InputGenerator ¶
type InputGenerator struct {
GenerateCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
Inputs map[string]interface{}
Error error
}
}
CredentialsCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
Credentials map[string]string
}
}
}
func (*InputGenerator) Credentials ¶
func (i *InputGenerator) Credentials(state storage.State) map[string]string
type LBArgsHandler ¶
type LBArgsHandler struct {
GetLBStateCall struct {
CallCount int
Returns struct {
LB storage.LB
Error error
}
Receives struct {
IAAS string
Config commands.CreateLBsConfig
}
}
MergeCall struct {
CallCount int
Returns struct {
LB storage.LB
}
Receives struct {
New storage.LB
Old storage.LB
}
}
}
func (*LBArgsHandler) GetLBState ¶
func (c *LBArgsHandler) GetLBState(iaas string, config commands.CreateLBsConfig) (storage.LB, error)
type LBs ¶
type Logger ¶
type Logger struct {
StepCall struct {
CallCount int
Receives struct {
Message string
Arguments []interface{}
}
Messages []string
}
DotCall struct {
CallCount int
}
PrintfCall struct {
CallCount int
Receives struct {
Message string
Arguments []interface{}
}
Messages []string
}
PrintlnCall struct {
CallCount int
Stub func(string)
Receives struct {
Message string
}
Messages []string
}
PromptCall struct {
CallCount int
Receives struct {
Message string
}
}
// contains filtered or unexported fields
}
func (*Logger) PrintlnMessages ¶
type NetworkClient ¶
type NetworkClient struct {
CheckExistsCall struct {
CallCount int
Receives struct {
Name string
}
Returns struct {
Exists bool
Error error
}
}
}
func (*NetworkClient) CheckExists ¶
func (n *NetworkClient) CheckExists(name string) (bool, error)
type NetworkDeletionValidator ¶
type NetworkDeletionValidator struct {
ValidateSafeToDeleteCall struct {
CallCount int
Returns struct {
Error error
}
Receives struct {
NetworkName string
EnvID string
}
}
}
func (*NetworkDeletionValidator) ValidateSafeToDelete ¶
func (n *NetworkDeletionValidator) ValidateSafeToDelete(networkName string, envID string) error
type NetworkInstancesChecker ¶
type NetworkInstancesChecker struct {
ValidateSafeToDeleteCall struct {
CallCount int
Returns struct {
Error error
}
Receives struct {
NetworkName string
}
}
}
func (*NetworkInstancesChecker) ValidateSafeToDelete ¶
func (n *NetworkInstancesChecker) ValidateSafeToDelete(networkName string) error
type Plan ¶
type Plan struct {
CheckFastFailsCall struct {
CallCount int
Receives struct {
SubcommandFlags []string
State storage.State
}
Returns struct {
Error error
}
}
ParseArgsCall struct {
CallCount int
Receives struct {
Args []string
State storage.State
}
Returns struct {
Config commands.PlanConfig
Error error
}
}
ExecuteCall struct {
CallCount int
Receives struct {
Args []string
State storage.State
}
Returns struct {
Error error
}
}
InitializePlanCall struct {
CallCount int
Receives struct {
Plan commands.PlanConfig
State storage.State
}
Returns struct {
State storage.State
Error error
}
}
IsInitializedCall struct {
CallCount int
Receives struct {
State storage.State
}
Returns struct {
IsInitialized bool
}
}
}
func (*Plan) CheckFastFails ¶
func (*Plan) InitializePlan ¶
type SSHKeyDeleter ¶
func (*SSHKeyDeleter) Delete ¶
func (s *SSHKeyDeleter) Delete() error
type SSHKeyGetter ¶
type SetCallReceive ¶
type SetCallReturn ¶
type SetCallReturn struct {
Error error
}
type Socks5Client ¶
type Socks5Proxy ¶
type Socks5Proxy struct {
StartCall struct {
CallCount int
Receives struct {
JumpboxPrivateKey string
JumpboxExternalURL string
}
Returns struct {
Error error
}
}
AddrCall struct {
CallCount int
Returns struct {
Addr string
Error error
}
}
}
func (*Socks5Proxy) Addr ¶
func (s *Socks5Proxy) Addr() (string, error)
func (*Socks5Proxy) Start ¶
func (s *Socks5Proxy) Start(jumpboxPrivateKey, jumpboxExternalURL string) error
type StateBootstrap ¶
type StateMigrator ¶
type StateStore ¶
type StateStore struct {
SetCall struct {
CallCount int
Receives []SetCallReceive
Returns []SetCallReturn
}
GetCall struct {
CallCount int
Receives struct {
Dir string
}
Returns struct {
State storage.State
Error error
}
}
GetCloudConfigDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
GetStateDirCall struct {
CallCount int
Returns struct {
Directory string
}
}
GetOldBblDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
GetTerraformDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
GetVarsDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
GetDirectorDeploymentDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
GetJumpboxDeploymentDirCall struct {
CallCount int
Returns struct {
Directory string
Error error
}
}
}
func (*StateStore) GetCloudConfigDir ¶
func (s *StateStore) GetCloudConfigDir() (string, error)
func (*StateStore) GetDirectorDeploymentDir ¶
func (s *StateStore) GetDirectorDeploymentDir() (string, error)
func (*StateStore) GetJumpboxDeploymentDir ¶
func (s *StateStore) GetJumpboxDeploymentDir() (string, error)
func (*StateStore) GetOldBblDir ¶
func (s *StateStore) GetOldBblDir() string
func (*StateStore) GetStateDir ¶
func (s *StateStore) GetStateDir() string
func (*StateStore) GetTerraformDir ¶
func (s *StateStore) GetTerraformDir() (string, error)
func (*StateStore) GetVarsDir ¶
func (s *StateStore) GetVarsDir() (string, error)
type StateValidator ¶ added in v1.2.1
func (*StateValidator) Validate ¶ added in v1.2.1
func (s *StateValidator) Validate() error
type TemplateGenerator ¶
type TerraformCmd ¶
type TerraformExecutor ¶
type TerraformExecutor struct {
IsInitializedCall struct {
CallCount int
Returns struct {
IsInitialized bool
}
}
InitCall struct {
CallCount int
Receives struct {
Template string
Inputs map[string]interface{}
}
Returns struct {
Error error
}
}
ApplyCall struct {
CallCount int
Receives struct {
Credentials map[string]string
}
Returns struct {
Error error
}
}
DestroyCall struct {
CallCount int
Receives struct {
Credentials map[string]string
}
Returns struct {
Error error
}
}
VersionCall struct {
CallCount int
Returns struct {
Version string
Error error
}
}
OutputCall struct {
Stub func(string) (string, error)
CallCount int
Receives struct {
OutputName string
}
Returns struct {
Output string
Error error
}
}
OutputsCall struct {
Stub func() (map[string]interface{}, error)
CallCount int
Returns struct {
Outputs map[string]interface{}
Error error
}
}
}
func (*TerraformExecutor) Apply ¶
func (t *TerraformExecutor) Apply(credentials map[string]string) error
func (*TerraformExecutor) Destroy ¶
func (t *TerraformExecutor) Destroy(credentials map[string]string) error
func (*TerraformExecutor) Init ¶
func (t *TerraformExecutor) Init(template string, inputs map[string]interface{}) error
func (*TerraformExecutor) IsInitialized ¶
func (t *TerraformExecutor) IsInitialized() bool
func (*TerraformExecutor) Output ¶
func (t *TerraformExecutor) Output(outputName string) (string, error)
func (*TerraformExecutor) Outputs ¶
func (t *TerraformExecutor) Outputs() (map[string]interface{}, error)
func (*TerraformExecutor) Version ¶
func (t *TerraformExecutor) Version() (string, error)
type TerraformManager ¶
type TerraformManager struct {
InitCall struct {
CallCount int
Receives struct {
BBLState storage.State
}
Returns struct {
Error error
}
}
ApplyCall struct {
CallCount int
Receives struct {
BBLState storage.State
}
Returns struct {
BBLState storage.State
Error error
}
}
DestroyCall struct {
CallCount int
Receives struct {
BBLState storage.State
}
Returns struct {
BBLState storage.State
Error error
}
}
ImportCall struct {
CallCount int
Receives struct {
BBLState storage.State
Outputs map[string]string
}
Returns struct {
BBLState storage.State
Error error
}
}
GetOutputsCall struct {
CallCount int
Returns struct {
Outputs terraform.Outputs
Error error
}
}
VersionCall struct {
CallCount int
Returns struct {
Version string
Error error
}
}
ValidateVersionCall struct {
CallCount int
Returns struct {
Error error
}
}
}
func (*TerraformManager) GetOutputs ¶
func (t *TerraformManager) GetOutputs() (terraform.Outputs, error)
func (*TerraformManager) ValidateVersion ¶
func (t *TerraformManager) ValidateVersion() error
func (*TerraformManager) Version ¶
func (t *TerraformManager) Version() (string, error)
type UUIDGenerator ¶
type UUIDGenerator struct {
GenerateCall struct {
Returns []GenerateReturn
CallCount int
}
}
func (*UUIDGenerator) Generate ¶
func (u *UUIDGenerator) Generate() (string, error)
type Up ¶
type Up struct {
CheckFastFailsCall struct {
CallCount int
Receives struct {
SubcommandFlags []string
State storage.State
}
Returns struct {
Error error
}
}
ParseArgsCall struct {
CallCount int
Receives struct {
Args []string
State storage.State
}
Returns struct {
Config commands.PlanConfig
Error error
}
}
ExecuteCall struct {
CallCount int
Receives struct {
Args []string
State storage.State
}
Returns struct {
Error error
}
}
}
func (*Up) CheckFastFails ¶
type UpCmd ¶
type Usage ¶
type Usage struct {
PrintCall struct {
CallCount int
}
PrintCommandUsageCall struct {
CallCount int
Receives struct {
Command string
Message string
}
}
}
func (*Usage) PrintCommandUsage ¶
type VPCStatusChecker ¶
type VPCStatusChecker struct {
ValidateSafeToDeleteCall struct {
CallCount int
Receives struct {
VPCID string
EnvID string
}
Returns struct {
Error error
}
}
}
func (*VPCStatusChecker) ValidateSafeToDelete ¶
func (v *VPCStatusChecker) ValidateSafeToDelete(vpcID, envID string) error
Source Files
¶
- availability_zone_retriever.go
- aws_client_provider.go
- aws_ec2_client.go
- azure_groups_client.go
- azure_vms_client.go
- bosh_client.go
- bosh_client_provider.go
- bosh_command.go
- bosh_executor.go
- bosh_manager.go
- certificate_deleter.go
- certificate_validator.go
- cloud_config_manager.go
- cloud_config_ops_generator.go
- command.go
- credhub_getter.go
- delete_lbs.go
- env_getter.go
- env_id_generator.go
- env_id_manager.go
- environment_validator.go
- executable.go
- file_io.go
- gcp_client.go
- gcp_client_provider.go
- gcp_compute_client.go
- guid_generator.go
- host_key_getter.go
- input_generator.go
- lb_args_handler.go
- lbs.go
- logger.go
- network_client.go
- network_deletion_validator.go
- network_instances_checker.go
- plan.go
- reader.go
- socks5_client.go
- socks5_proxy.go
- ssh_key_deleter.go
- ssh_key_getter.go
- state_bootstrap.go
- state_migrator.go
- state_store.go
- state_validator.go
- template_generator.go
- terraform_cmd.go
- terraform_executor.go
- terraform_manager.go
- up.go
- up_cmd.go
- usage.go
- uuid_generator.go
- vpc_status_checker.go
- zone_getter.go
Click to show internal directories.
Click to hide internal directories.