config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 4 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
}

type Config

type Config struct {
	Source          Source
	Target          Target
	Bosh            *Bosh `yaml:"bosh"`
	DryRun          bool
	WorkerPoolSize  int               `yaml:"worker_pool_size"`
	ResourcePoolMap map[string]string `yaml:"resource_pools"`
	NetworkMap      map[string]string `yaml:"networks"`
	DatastoreMap    map[string]string `yaml:"datastores"`
	ClusterMap      map[string]string `yaml:"clusters"`
	AdditionalVMs   []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

type Source

type Source struct {
	VCenter
	Datacenter string `yaml:"datacenter"`
}

type Target

type Target struct {
	VCenter
	Datacenter string `yaml:"datacenter"`
}

type VCenter

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

Jump to

Keyboard shortcuts

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