bosh

package
v0.0.0-...-e0d1d7f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 8 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
}

func NewClient

func NewClient(directorIPAddress, username, password 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"`
}

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
}

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, boshClient Client) error

type Compilation

type Compilation struct {
	Workers             int    `yaml:"workers,omitempty"`
	Network             string `yaml:"network,omitempty"`
	AZ                  string `yaml:"az,omitempty"`
	ReuseCompilationVMs bool   `yaml:"reuse_compilation_vms,omitempty"`
	VMType              string `yaml:"vm_type,omitempty"`
}

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"`
}

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

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 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