config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bosh

type Bosh struct {
	Host         string `yaml:"host"`
	ClientID     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`
}

type Compute added in v0.6.0

type Compute struct {
	Source []ComputeAZ `yaml:"source"`
	Target []ComputeAZ `yaml:"target"`
}

func (*Compute) SourceByAZ added in v0.6.0

func (c *Compute) SourceByAZ(azName string) *ComputeAZ

func (*Compute) TargetByAZ added in v0.6.0

func (c *Compute) TargetByAZ(azName string) *ComputeAZ

type ComputeAZ added in v0.6.0

type ComputeAZ struct {
	Name     string           `yaml:"name"`
	VCenter  *VCenter         `yaml:"vcenter"`
	Clusters []ComputeCluster `yaml:"clusters"`
}

type ComputeCluster added in v0.6.0

type ComputeCluster struct {
	Name         string `yaml:"name"`
	ResourcePool string `yaml:"resource_pool"`
}

type Config

type Config struct {
	Bosh *Bosh `yaml:"bosh"`

	DryRun         bool
	WorkerPoolSize int `yaml:"worker_pool_size"`

	NetworkMap   map[string]string `yaml:"networks"`
	DatastoreMap map[string]string `yaml:"datastores"`
	Compute      Compute           `yaml:"compute"`

	AdditionalVMs map[string][]string `yaml:"additional_vms"`
}

func NewConfigFromFile

func NewConfigFromFile(configFilePath string) (Config, error)

func (Config) Reversed added in v0.4.0

func (c Config) Reversed() Config

func (Config) String

func (c Config) String() string

String used primarily for debug logging

func (Config) Validate added in v0.6.0

func (c Config) Validate() error

type VCenter

type VCenter struct {
	Host       string `yaml:"host"`
	Username   string `yaml:"username"`
	Password   string `yaml:"password"`
	Insecure   bool   `yaml:"insecure"`
	Datacenter string `yaml:"datacenter"`
}

Jump to

Keyboard shortcuts

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