Documentation ¶
Index ¶
- type AvailabilityZoneRetriever
- type BOSHClient
- type BOSHDeleter
- type BOSHDeployer
- type BOSHInitCommandRunner
- type BOSHInitManifestBuilder
- type BoshCloudConfigurator
- type ClientProvider
- type CloudConfigGenerator
- type CloudFormationClient
- func (c *CloudFormationClient) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
- func (c *CloudFormationClient) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
- func (c *CloudFormationClient) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
- func (c *CloudFormationClient) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
- type CloudProviderManifestBuilder
- type Command
- type EC2Client
- func (c *EC2Client) CreateKeyPair(input *awsec2.CreateKeyPairInput) (*awsec2.CreateKeyPairOutput, error)
- func (c *EC2Client) DeleteKeyPair(input *awsec2.DeleteKeyPairInput) (*awsec2.DeleteKeyPairOutput, error)
- func (c *EC2Client) DescribeAvailabilityZones(input *awsec2.DescribeAvailabilityZonesInput) (*awsec2.DescribeAvailabilityZonesOutput, error)
- func (c *EC2Client) DescribeInstances(input *awsec2.DescribeInstancesInput) (*awsec2.DescribeInstancesOutput, error)
- func (c *EC2Client) DescribeKeyPairs(input *awsec2.DescribeKeyPairsInput) (*awsec2.DescribeKeyPairsOutput, error)
- func (c *EC2Client) ImportKeyPair(input *awsec2.ImportKeyPairInput) (*awsec2.ImportKeyPairOutput, error)
- type Executable
- type GenerateReturn
- type InfrastructureManager
- func (m *InfrastructureManager) Create(keyPairName string, numberOfAZs int, stackName string, ...) (cloudformation.Stack, error)
- func (m *InfrastructureManager) Delete(client cloudformation.Client, stackName string) error
- func (m *InfrastructureManager) Exists(stackName string, client cloudformation.Client) (bool, error)
- type JobsManifestBuilder
- type KeyPairChecker
- type KeyPairCreator
- type KeyPairDeleter
- type KeyPairManager
- type KeyPairSynchronizer
- type KeyPairValidator
- type KeyPairVerifier
- type Logger
- type Reader
- type SSLKeyPairGenerator
- type StackManager
- func (m *StackManager) CreateOrUpdate(client cloudformation.Client, stackName string, template templates.Template) error
- func (m *StackManager) Delete(client cloudformation.Client, stackName string) error
- func (m *StackManager) Describe(client cloudformation.Client, stackName string) (cloudformation.Stack, error)
- func (m *StackManager) WaitForCompletion(client cloudformation.Client, stackName string, sleepInterval time.Duration, ...) error
- type StateStore
- type StringGenerator
- type TemplateBuilder
- type UUIDGenerator
- type VPCStatusChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityZoneRetriever ¶
type BOSHClient ¶
type BOSHClient struct { UpdateCloudConfigCall struct { CallCount int Receives struct { Yaml []byte } Returns struct { Error error } } }
func (*BOSHClient) UpdateCloudConfig ¶
func (c *BOSHClient) UpdateCloudConfig(yaml []byte) error
type BOSHDeleter ¶
type BOSHDeleter struct { DeleteCall struct { CallCount int Receives struct { Input boshinit.DeployInput } Returns struct { Error error } } }
func (*BOSHDeleter) Delete ¶
func (d *BOSHDeleter) Delete(boshDeployInput boshinit.DeployInput) error
type BOSHDeployer ¶
type BOSHDeployer struct { DeployCall struct { Receives struct { Input boshinit.DeployInput } Returns struct { Output boshinit.DeployOutput Error error } } }
func (*BOSHDeployer) Deploy ¶
func (d *BOSHDeployer) Deploy(input boshinit.DeployInput) (boshinit.DeployOutput, error)
type BOSHInitCommandRunner ¶
type BOSHInitManifestBuilder ¶
type BOSHInitManifestBuilder struct { BuildCall struct { Receives struct { Properties manifests.ManifestProperties } Returns struct { Manifest manifests.Manifest Properties manifests.ManifestProperties Error error } } }
func (*BOSHInitManifestBuilder) Build ¶
func (b *BOSHInitManifestBuilder) Build(properties manifests.ManifestProperties) (manifests.Manifest, manifests.ManifestProperties, error)
type BoshCloudConfigurator ¶
type BoshCloudConfigurator struct { ConfigureCall struct { CallCount int Receives struct { Stack cloudformation.Stack AZs []string Client bosh.Client } Returns struct { Error error } } }
func (*BoshCloudConfigurator) Configure ¶
func (b *BoshCloudConfigurator) Configure(stack cloudformation.Stack, azs []string, client bosh.Client) error
type ClientProvider ¶
type ClientProvider struct { CloudFormationClientCall struct { Receives struct { Config aws.Config } Returns struct { Client cloudformation.Client Error error } } EC2ClientCall struct { Receives struct { Config aws.Config } Returns struct { Client ec2.Client Error error } } }
func (*ClientProvider) CloudFormationClient ¶
func (p *ClientProvider) CloudFormationClient(config aws.Config) (cloudformation.Client, error)
type CloudConfigGenerator ¶
type CloudConfigGenerator struct { GenerateCall struct { Receives struct { CloudConfigInput bosh.CloudConfigInput } Returns struct { CloudConfig bosh.CloudConfig Error error } CallCount int } }
func (*CloudConfigGenerator) Generate ¶
func (c *CloudConfigGenerator) Generate(cloudConfigInput bosh.CloudConfigInput) (bosh.CloudConfig, error)
type CloudFormationClient ¶
type CloudFormationClient struct { CreateStackCall struct { Receives struct { Input *cloudformation.CreateStackInput } Returns struct { Error error } } UpdateStackCall struct { Receives struct { Input *cloudformation.UpdateStackInput } Returns struct { Error error } } DescribeStacksCall struct { CallCount int Stub func(*cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) Receives struct { Input *cloudformation.DescribeStacksInput } Returns struct { Output *cloudformation.DescribeStacksOutput Error error } } DeleteStackCall struct { Receives struct { Input *cloudformation.DeleteStackInput } Returns struct { Output *cloudformation.DeleteStackOutput Error error } } }
func (*CloudFormationClient) CreateStack ¶
func (c *CloudFormationClient) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
func (*CloudFormationClient) DeleteStack ¶
func (c *CloudFormationClient) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
func (*CloudFormationClient) DescribeStacks ¶
func (c *CloudFormationClient) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
func (*CloudFormationClient) UpdateStack ¶
func (c *CloudFormationClient) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
type CloudProviderManifestBuilder ¶
type CloudProviderManifestBuilder struct { BuildCall struct { Returns struct { Error error } } }
func (CloudProviderManifestBuilder) Build ¶
func (c CloudProviderManifestBuilder) Build(manifestProperties manifests.ManifestProperties) (manifests.CloudProvider, manifests.ManifestProperties, error)
type Command ¶
type EC2Client ¶
type EC2Client struct { ImportKeyPairCall struct { Receives struct { Input *awsec2.ImportKeyPairInput } Returns struct { Error error } } DescribeKeyPairsCall struct { Receives struct { Input *awsec2.DescribeKeyPairsInput } Returns struct { Output *awsec2.DescribeKeyPairsOutput Error error } } CreateKeyPairCall struct { Receives struct { Input *awsec2.CreateKeyPairInput } Returns struct { Output *awsec2.CreateKeyPairOutput Error error } } DescribeAvailabilityZonesCall struct { Receives struct { Input *awsec2.DescribeAvailabilityZonesInput } Returns struct { Output *awsec2.DescribeAvailabilityZonesOutput Error error } } DeleteKeyPairCall struct { Receives struct { Input *awsec2.DeleteKeyPairInput } Returns struct { Output *awsec2.DeleteKeyPairOutput Error error } } DescribeInstancesCall struct { Receives struct { Input *awsec2.DescribeInstancesInput } Returns struct { Output *awsec2.DescribeInstancesOutput Error error } } }
func (*EC2Client) CreateKeyPair ¶
func (c *EC2Client) CreateKeyPair(input *awsec2.CreateKeyPairInput) (*awsec2.CreateKeyPairOutput, error)
func (*EC2Client) DeleteKeyPair ¶
func (c *EC2Client) DeleteKeyPair(input *awsec2.DeleteKeyPairInput) (*awsec2.DeleteKeyPairOutput, error)
func (*EC2Client) DescribeAvailabilityZones ¶
func (c *EC2Client) DescribeAvailabilityZones(input *awsec2.DescribeAvailabilityZonesInput) (*awsec2.DescribeAvailabilityZonesOutput, error)
func (*EC2Client) DescribeInstances ¶
func (c *EC2Client) DescribeInstances(input *awsec2.DescribeInstancesInput) (*awsec2.DescribeInstancesOutput, error)
func (*EC2Client) DescribeKeyPairs ¶
func (c *EC2Client) DescribeKeyPairs(input *awsec2.DescribeKeyPairsInput) (*awsec2.DescribeKeyPairsOutput, error)
func (*EC2Client) ImportKeyPair ¶
func (c *EC2Client) ImportKeyPair(input *awsec2.ImportKeyPairInput) (*awsec2.ImportKeyPairOutput, error)
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 GenerateReturn ¶
type InfrastructureManager ¶
type InfrastructureManager struct { CreateCall struct { CallCount int Receives struct { KeyPairName string StackName string CloudFormationClient cloudformation.Client NumberOfAvailabilityZones int } Returns struct { Stack cloudformation.Stack Error error } } ExistsCall struct { Receives struct { StackName string Client cloudformation.Client } Returns struct { Exists bool Error error } } DeleteCall struct { Receives struct { Client cloudformation.Client StackName string } Returns struct { Error error } } }
func (*InfrastructureManager) Create ¶
func (m *InfrastructureManager) Create(keyPairName string, numberOfAZs int, stackName string, client cloudformation.Client) (cloudformation.Stack, error)
func (*InfrastructureManager) Delete ¶
func (m *InfrastructureManager) Delete(client cloudformation.Client, stackName string) error
func (*InfrastructureManager) Exists ¶
func (m *InfrastructureManager) Exists(stackName string, client cloudformation.Client) (bool, error)
type JobsManifestBuilder ¶
type JobsManifestBuilder struct { BuildCall struct { Returns struct { Error error } } }
func (JobsManifestBuilder) Build ¶
func (j JobsManifestBuilder) Build(manifestProperties manifests.ManifestProperties) ([]manifests.Job, manifests.ManifestProperties, error)
type KeyPairChecker ¶
type KeyPairChecker struct { HasKeyPairCall struct { CallCount int Stub func(ec2.Client, string) (bool, error) Recieves struct { Name string Client ec2.Client } Returns struct { Present bool Error error } } }
func (*KeyPairChecker) HasKeyPair ¶
type KeyPairCreator ¶
type KeyPairDeleter ¶
type KeyPairManager ¶
type KeyPairSynchronizer ¶
type KeyPairValidator ¶
type KeyPairValidator struct { ValidateCall struct { CallCount int Receives struct { PEMData []byte } Returns struct { Error error } } }
func (*KeyPairValidator) Validate ¶
func (v *KeyPairValidator) Validate(pemData []byte) error
type KeyPairVerifier ¶
type Logger ¶
type SSLKeyPairGenerator ¶
type StackManager ¶
type StackManager struct { DescribeCall struct { Receives struct { Client cloudformation.Client StackName string } Returns struct { Stack cloudformation.Stack Error error } } CreateOrUpdateCall struct { Receives struct { StackName string Template templates.Template Client cloudformation.Client } Returns struct { Error error } } WaitForCompletionCall struct { Receives struct { Client cloudformation.Client StackName string SleepInterval time.Duration Action string } Returns struct { Error error } } DeleteCall struct { Receives struct { Client cloudformation.Client StackName string } Returns struct { Error error } } }
func (*StackManager) CreateOrUpdate ¶
func (m *StackManager) CreateOrUpdate(client cloudformation.Client, stackName string, template templates.Template) error
func (*StackManager) Delete ¶
func (m *StackManager) Delete(client cloudformation.Client, stackName string) error
func (*StackManager) Describe ¶
func (m *StackManager) Describe(client cloudformation.Client, stackName string) (cloudformation.Stack, error)
func (*StackManager) WaitForCompletion ¶
func (m *StackManager) WaitForCompletion(client cloudformation.Client, stackName string, sleepInterval time.Duration, action string) error
type StateStore ¶
type StringGenerator ¶
type TemplateBuilder ¶
type UUIDGenerator ¶
type UUIDGenerator struct { GenerateCall struct { Returns []GenerateReturn CallCount int } }
func (*UUIDGenerator) Generate ¶
func (u *UUIDGenerator) Generate() (string, error)
type VPCStatusChecker ¶
type VPCStatusChecker struct { ValidateSafeToDeleteCall struct { Receives struct { Client ec2.Client VPCID string } Returns struct { Error error } } }
func (*VPCStatusChecker) ValidateSafeToDelete ¶
func (v *VPCStatusChecker) ValidateSafeToDelete(client ec2.Client, vpcID string) error
Source Files ¶
- availability_zone_retriever.go
- bosh_client.go
- bosh_cloud_configurator.go
- bosh_deleter.go
- bosh_deployer.go
- bosh_init_manifest_builder.go
- bosh_init_runner.go
- client_provider.go
- cloud_config_generator.go
- cloud_provider_manifest_builder.go
- cloudformation_client.go
- command.go
- ec2_client.go
- executable.go
- infrastructure_manager.go
- jobs_manifest_builder.go
- keypair_checker.go
- keypair_creator.go
- keypair_deleter.go
- keypair_manager.go
- keypair_synchronizer.go
- keypair_validator.go
- keypair_verifier.go
- logger.go
- reader.go
- ssl_keypair_generator.go
- stack_manager.go
- state_store.go
- string_generator.go
- template_builder.go
- uuid_generator.go
- vpc_status_checker.go
Click to show internal directories.
Click to hide internal directories.