config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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
	DryRun          bool
	WorkerPoolSize  int               `yaml:"worker_pool_size"`
	ResourcePoolMap map[string]string `yaml:"resource_pools"`
	NetworkMap      map[string]string `yaml:"networks"`
}

func NewConfigFromFile

func NewConfigFromFile(configFilePath string) (Config, error)

func (Config) String

func (c Config) String() string

String used primarily for debug logging

type Source

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

type Target

type Target struct {
	VCenter
	Datacenter string `yaml:"datacenter"`
	Cluster    string `yaml:"cluster"`   // assumes single cluster foundation
	Datastore  string `yaml:"datastore"` // assumes single cluster foundation
}

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