Documentation ¶
Index ¶
- type AZ
- type AZCloudProperties
- type AZsGenerator
- type CIDRBlock
- type Client
- type ClientProvider
- type CloudConfig
- type CloudConfigGenerator
- type CloudConfigInput
- type CloudConfigManager
- type CloudConfigurator
- type Compilation
- type CompilationGenerator
- type DiskType
- type DiskTypeCloudProperties
- type DiskTypesGenerator
- type EphemeralDisk
- type IP
- type Info
- type LoadBalancerExtension
- type Network
- type NetworkSubnet
- type NetworksGenerator
- type SubnetCloudProperties
- type SubnetInput
- type VMExtension
- type VMExtensionCloudProperties
- type VMExtensionEphemeralDisk
- type VMExtensionsGenerators
- type VMType
- type VMTypeCloudProperties
- type VMTypesGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AZ ¶
type AZ struct { Name string `yaml:"name"` CloudProperties AZCloudProperties `yaml:"cloud_properties"` }
type AZCloudProperties ¶
type AZCloudProperties struct {
AvailabilityZone string `yaml:"availability_zone"`
}
type AZsGenerator ¶
type AZsGenerator struct {
// contains filtered or unexported fields
}
func NewAZsGenerator ¶
func NewAZsGenerator(awsNames ...string) AZsGenerator
func (AZsGenerator) Generate ¶
func (g AZsGenerator) Generate() []AZ
type CIDRBlock ¶
type CIDRBlock struct { CIDRSize int // contains filtered or unexported fields }
func ParseCIDRBlock ¶
func (CIDRBlock) GetFirstIP ¶
type ClientProvider ¶
type ClientProvider struct{}
func NewClientProvider ¶
func NewClientProvider() ClientProvider
func (ClientProvider) Client ¶
func (ClientProvider) Client(directorAddress, directorUsername, directorPassword string) Client
type CloudConfig ¶
type CloudConfig struct { AZs []AZ `yaml:"azs,omitempty"` VMTypes []VMType `yaml:"vm_types,omitempty"` DiskTypes []DiskType `yaml:"disk_types,omitempty"` Compilation *Compilation `yaml:"compilation,omitempty"` Networks []Network `yaml:"networks,omitempty"` VMExtensions []VMExtension `yaml:"vm_extensions,omitempty"` }
type CloudConfigGenerator ¶
type CloudConfigGenerator struct {
// contains filtered or unexported fields
}
func NewCloudConfigGenerator ¶
func NewCloudConfigGenerator() CloudConfigGenerator
func (CloudConfigGenerator) Generate ¶
func (c CloudConfigGenerator) Generate(input CloudConfigInput) (CloudConfig, error)
type CloudConfigInput ¶
type CloudConfigInput struct { AZs []string Subnets []SubnetInput LBs []LoadBalancerExtension }
type CloudConfigManager ¶
type CloudConfigManager struct {
// contains filtered or unexported fields
}
func NewCloudConfigManager ¶
func NewCloudConfigManager(logger logger, cloudConfigGenerator cloudConfigGenerator) CloudConfigManager
func (CloudConfigManager) Update ¶
func (c CloudConfigManager) Update(input CloudConfigInput, boshClient Client) error
type CloudConfigurator ¶
type CloudConfigurator struct {
// contains filtered or unexported fields
}
func NewCloudConfigurator ¶
func NewCloudConfigurator(logger logger, generator cloudConfigGenerator) CloudConfigurator
func (CloudConfigurator) Configure ¶
func (c CloudConfigurator) Configure(stack cloudformation.Stack, azs []string) CloudConfigInput
type Compilation ¶
type CompilationGenerator ¶
type CompilationGenerator struct{}
func NewCompilationGenerator ¶
func NewCompilationGenerator() CompilationGenerator
func (CompilationGenerator) Generate ¶
func (CompilationGenerator) Generate() *Compilation
type DiskType ¶
type DiskType struct { Name string `yaml:"name"` DiskSize int `yaml:"disk_size"` CloudProperties DiskTypeCloudProperties `yaml:"cloud_properties"` }
type DiskTypeCloudProperties ¶
type DiskTypesGenerator ¶
type DiskTypesGenerator struct{}
func NewDiskTypesGenerator ¶
func NewDiskTypesGenerator() DiskTypesGenerator
func (DiskTypesGenerator) Generate ¶
func (DiskTypesGenerator) Generate() []DiskType
type EphemeralDisk ¶
type LoadBalancerExtension ¶
type Network ¶
type Network struct { Name string `yaml:"name"` Type string `yaml:"type"` Subnets []NetworkSubnet `yaml:"subnets"` }
type NetworkSubnet ¶
type NetworksGenerator ¶
type NetworksGenerator struct {
// contains filtered or unexported fields
}
func NewNetworksGenerator ¶
func NewNetworksGenerator(inputs []SubnetInput, azAssociations map[string]string) NetworksGenerator
func (NetworksGenerator) Generate ¶
func (n NetworksGenerator) Generate() ([]Network, error)
type SubnetCloudProperties ¶
type SubnetInput ¶
type VMExtension ¶
type VMExtension struct { Name string `yaml:"name"` CloudProperties VMExtensionCloudProperties `yaml:"cloud_properties"` }
type VMExtensionCloudProperties ¶
type VMExtensionCloudProperties struct { ELBS []string `yaml:"elbs,omitempty"` SecurityGroups []string `yaml:"security_groups,omitempty"` EphemeralDisk *VMExtensionEphemeralDisk `yaml:"ephemeral_disk,omitempty"` }
type VMExtensionsGenerators ¶
type VMExtensionsGenerators struct {
// contains filtered or unexported fields
}
func NewVMExtensionsGenerator ¶
func NewVMExtensionsGenerator(loadBalancerExtensions []LoadBalancerExtension) VMExtensionsGenerators
func (VMExtensionsGenerators) Generate ¶
func (g VMExtensionsGenerators) Generate() []VMExtension
type VMType ¶
type VMType struct { Name string `yaml:"name,omitempty"` CloudProperties *VMTypeCloudProperties `yaml:"cloud_properties,omitempty"` }
type VMTypeCloudProperties ¶
type VMTypeCloudProperties struct { InstanceType string `yaml:"instance_type,omitempty"` EphemeralDisk *EphemeralDisk `yaml:"ephemeral_disk,omitempty"` }
type VMTypesGenerator ¶
type VMTypesGenerator struct { }
func NewVMTypesGenerator ¶
func NewVMTypesGenerator() VMTypesGenerator
func (VMTypesGenerator) Generate ¶
func (g VMTypesGenerator) Generate() []VMType
Source Files ¶
Click to show internal directories.
Click to hide internal directories.