gcp

package
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: Apache-2.0 Imports: 3 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 {
	Zone string `yaml:"zone"`
}

type AZsGenerator

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

func NewAZsGenerator

func NewAZsGenerator(gcpNames ...string) AZsGenerator

func (AZsGenerator) Generate

func (g AZsGenerator) Generate() []AZ

type CFBackends

type CFBackends struct {
	Router    string
	SSHProxy  string
	TCPRouter string
	WS        string
}

type CloudConfig

type CloudConfig struct {
	AZs          []AZ          `yaml:"azs,omitempty"`
	Networks     []Network     `yaml:"networks,omitempty"`
	VMTypes      interface{}   `yaml:"vm_types,omitempty"`
	DiskTypes    interface{}   `yaml:"disk_types,omitempty"`
	Compilation  interface{}   `yaml:"compilation,omitempty"`
	VMExtensions []VMExtension `yaml:"vm_extensions,omitempty"`
}

type CloudConfigGenerator

type CloudConfigGenerator struct{}

func NewCloudConfigGenerator

func NewCloudConfigGenerator() CloudConfigGenerator

func (CloudConfigGenerator) Generate

type CloudConfigInput

type CloudConfigInput struct {
	AZs                 []string
	Tags                []string
	NetworkName         string
	SubnetworkName      string
	ConcourseTargetPool string
	CFBackends          CFBackends
}

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(networkName, subnetworkName string, tags, azs []string) NetworksGenerator

func (NetworksGenerator) Generate

func (n NetworksGenerator) Generate() ([]Network, error)

type SubnetCloudProperties

type SubnetCloudProperties struct {
	EphemeralExternalIP bool     `yaml:"ephemeral_external_ip"`
	NetworkName         string   `yaml:"network_name"`
	SubnetworkName      string   `yaml:"subnetwork_name"`
	Tags                []string `yaml:"tags"`
}

type VMExtension

type VMExtension struct {
	Name            string                     `yaml:"name"`
	CloudProperties VMExtensionCloudProperties `yaml:"cloud_properties"`
}

type VMExtensionCloudProperties

type VMExtensionCloudProperties struct {
	RootDiskSizeGB      int      `yaml:"root_disk_size_gb,omitempty"`
	RootDiskType        string   `yaml:"root_disk_type,omitempty"`
	TargetPool          string   `yaml:"target_pool,omitempty"`
	EphemeralExternalIP *bool    `yaml:"ephemeral_external_ip,omitempty"`
	BackendService      string   `yaml:"backend_service,omitempty"`
	Tags                []string `yaml:"tags,omitempty"`
	Preemptible         *bool    `yaml:"preemptible,omitempty"`
}

Jump to

Keyboard shortcuts

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