types

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 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 CloudConfig

type CloudConfig struct {
	Global    GlobalOpts
	Disk      DiskOpts
	Workspace WorkspaceOpts

	VirtualCenter map[string]*VirtualCenterConfig
}

CloudConfig is used to read and store information from the cloud configuration file

func (*CloudConfig) ToString

func (cc *CloudConfig) ToString() (string, error)

ToString renders the cloud configuration as string.

type DiskOpts

type DiskOpts struct {
	SCSIControllerType string `dcfg:"scsicontrollertype"`
}

type GlobalOpts

type GlobalOpts struct {
	User         string `gcfg:"user"`
	Password     string `gcfg:"password"`
	InsecureFlag bool   `gcfg:"insecure-flag"`
	VCenterPort  string `gcfg:"port"`
	ClusterID    string `gcfg:"cluster-id"`
}

type RawConfig

type RawConfig struct {
	TemplateVMName types.ConfigVarString `json:"templateVMName"`
	VMNetName      types.ConfigVarString `json:"vmNetName"`
	Username       types.ConfigVarString `json:"username"`
	Password       types.ConfigVarString `json:"password"`
	VSphereURL     types.ConfigVarString `json:"vsphereURL"`
	Datacenter     types.ConfigVarString `json:"datacenter"`
	Cluster        types.ConfigVarString `json:"cluster"`
	Folder         types.ConfigVarString `json:"folder"`

	// Either Datastore or DatastoreCluster have to be provided.
	Datastore types.ConfigVarString `json:"datastore"`

	AllowInsecure types.ConfigVarBool `json:"allowInsecure"`
}

type VirtualCenterConfig

type VirtualCenterConfig struct {
	User        string `gcfg:"user"`
	Password    string `gcfg:"password"`
	VCenterPort string `gcfg:"port"`
	Datacenters string `gcfg:"datacenters"`
}

type WorkspaceOpts

type WorkspaceOpts struct {
	VCenterIP        string `gcfg:"server"`
	Datacenter       string `gcfg:"datacenter"`
	Folder           string `gcfg:"folder"`
	DefaultDatastore string `gcfg:"default-datastore"`
}

Jump to

Keyboard shortcuts

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