bosh

package
v2.0.7+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 ParseCIDRBlock(cidrBlock string) (CIDRBlock, error)

func (CIDRBlock) GetFirstIP

func (c CIDRBlock) GetFirstIP() IP

func (CIDRBlock) GetLastIP

func (c CIDRBlock) GetLastIP() IP

type Client

type Client interface {
	UpdateCloudConfig(yaml []byte) error
	Info() (Info, error)
}

func NewClient

func NewClient(directorAddress, username, password string) Client

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

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 Compilation struct {
	Workers             int      `yaml:"workers"`
	Network             string   `yaml:"network"`
	AZ                  string   `yaml:"az"`
	ReuseCompilationVMs bool     `yaml:"reuse_compilation_vms"`
	VMType              string   `yaml:"vm_type"`
	VMExtensions        []string `yaml:"vm_extensions"`
}

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 DiskTypeCloudProperties struct {
	Type      string `yaml:"type"`
	Encrypted bool   `yaml:"encrypted"`
}

type DiskTypesGenerator

type DiskTypesGenerator struct{}

func NewDiskTypesGenerator

func NewDiskTypesGenerator() DiskTypesGenerator

func (DiskTypesGenerator) Generate

func (DiskTypesGenerator) Generate() []DiskType

type EphemeralDisk

type EphemeralDisk struct {
	Size int    `yaml:"size,omitempty"`
	Type string `yaml:"type,omitempty"`
}

type IP

type IP struct {
	// contains filtered or unexported fields
}

func ParseIP

func ParseIP(ip string) (IP, error)

func (IP) Add

func (i IP) Add(offset int) IP

func (IP) String

func (i IP) String() string

func (IP) Subtract

func (i IP) Subtract(offset int) IP

type Info

type Info struct {
	Name    string `json:"name"`
	UUID    string `json:"uuid"`
	Version string `json:"version"`
}

type LoadBalancerExtension

type LoadBalancerExtension struct {
	Name           string
	ELBName        string
	SecurityGroups []string
}

type Network

type Network struct {
	Name    string          `yaml:"name"`
	Type    string          `yaml:"type"`
	Subnets []NetworkSubnet `yaml:"subnets"`
}

type NetworkSubnet

type NetworkSubnet struct {
	AZ              string                `yaml:"az"`
	Gateway         string                `yaml:"gateway"`
	Range           string                `yaml:"range"`
	Reserved        []string              `yaml:"reserved"`
	Static          []string              `yaml:"static"`
	CloudProperties SubnetCloudProperties `yaml:"cloud_properties"`
}

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 SubnetCloudProperties struct {
	Subnet         string   `yaml:"subnet"`
	SecurityGroups []string `yaml:"security_groups"`
}

type SubnetInput

type SubnetInput struct {
	AZ             string
	Subnet         string
	CIDR           string
	SecurityGroups []string
}

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 VMExtensionEphemeralDisk

type VMExtensionEphemeralDisk struct {
	Size int    `yaml:"size"`
	Type string `yaml:"type"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL