vsphere

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawConfig

type RawConfig struct {
	TemplateVMName providerconfig.ConfigVarString `json:"templateVMName"`
	// Deprecated: use networks instead.
	VMNetName  providerconfig.ConfigVarString   `json:"vmNetName"`
	Networks   []providerconfig.ConfigVarString `json:"networks"`
	Username   providerconfig.ConfigVarString   `json:"username"`
	Password   providerconfig.ConfigVarString   `json:"password"`
	VSphereURL providerconfig.ConfigVarString   `json:"vsphereURL"`
	Datacenter providerconfig.ConfigVarString   `json:"datacenter"`

	// Cluster defines the cluster to use in vcenter.
	// Only needed for vm anti affinity.
	Cluster providerconfig.ConfigVarString `json:"cluster"`

	Folder       providerconfig.ConfigVarString `json:"folder"`
	ResourcePool providerconfig.ConfigVarString `json:"resourcePool"`

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

	CPUs          int32                        `json:"cpus"`
	MemoryMB      int64                        `json:"memoryMB"`
	DiskSizeGB    *int64                       `json:"diskSizeGB,omitempty"`
	Tags          []Tag                        `json:"tags,omitempty"`
	AllowInsecure providerconfig.ConfigVarBool `json:"allowInsecure"`

	// Placement rules
	VMAntiAffinity providerconfig.ConfigVarBool   `json:"vmAntiAffinity"`
	VMGroup        providerconfig.ConfigVarString `json:"vmGroup,omitempty"`
}

RawConfig represents vsphere specific configuration.

func GetConfig

func GetConfig(pconfig providerconfig.Config) (*RawConfig, error)

type Tag

type Tag struct {
	Description string `json:"description,omitempty"`
	ID          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	CategoryID  string `json:"categoryID"`
}

Tag represents vsphere tag.

Jump to

Keyboard shortcuts

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