types

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 44

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudConfigToString

func CloudConfigToString(c *CloudConfig) (string, error)

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

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"`
	WorkingDir       string `gcfg:"working-dir"`
	Datacenter       string `gcfg:"datacenter"`
	DefaultDatastore string `gcfg:"datastore"`
	VCenterIP        string `gcfg:"server"`
}

type RawConfig

type RawConfig struct {
	TemplateVMName providerconfigtypes.ConfigVarString `json:"templateVMName"`
	VMNetName      providerconfigtypes.ConfigVarString `json:"vmNetName,omitempty"`
	Username       providerconfigtypes.ConfigVarString `json:"username,omitempty"`
	Password       providerconfigtypes.ConfigVarString `json:"password,omitempty"`
	VSphereURL     providerconfigtypes.ConfigVarString `json:"vsphereURL,omitempty"`
	Datacenter     providerconfigtypes.ConfigVarString `json:"datacenter"`
	Cluster        providerconfigtypes.ConfigVarString `json:"cluster"`
	Folder         providerconfigtypes.ConfigVarString `json:"folder,omitempty"`
	Datastore      providerconfigtypes.ConfigVarString `json:"datastore"`
	CPUs           int32                               `json:"cpus"`
	MemoryMB       int64                               `json:"memoryMB"`
	DiskSizeGB     *int64                              `json:"diskSizeGB,omitempty"`
	AllowInsecure  providerconfigtypes.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"`
	ResourcePoolPath string `gcfg:"resourcepool-path"`
}

Jump to

Keyboard shortcuts

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