vsphere

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VSphereConfig

type VSphereConfig struct {
	// Server is the vCenter server hostname or IP address, exported as VSPHERE_SERVER.
	Server *string `yaml:"server,omitempty"`

	// User is the vCenter username, exported as VSPHERE_USER.
	User *string `yaml:"user,omitempty"`

	// Datacenter is the vSphere datacenter name for resource provisioning.
	Datacenter *string `yaml:"datacenter,omitempty"`

	// Cluster is the vSphere compute cluster name where VMs are scheduled.
	Cluster *string `yaml:"cluster,omitempty"`

	// Datastore is the vSphere datastore or datastore cluster name for VM disk placement.
	Datastore *string `yaml:"datastore,omitempty"`

	// Network is the default vSphere network/port group for VM interfaces.
	Network *string `yaml:"network,omitempty"`

	// ResourcePool is the default vSphere resource pool for VM placement.
	ResourcePool *string `yaml:"resource_pool,omitempty"`

	// Folder is the default vSphere folder path for VM inventory placement.
	Folder *string `yaml:"folder,omitempty"`

	// Insecure disables TLS certificate verification when connecting to vCenter.
	// Exported as VSPHERE_ALLOW_UNVERIFIED_SSL.
	Insecure *bool `yaml:"insecure,omitempty"`
}

VSphereConfig represents the vSphere configuration. vSphere integration activates whenever this block is present in a context (or when platform is "vsphere"); no separate enabled flag.

func (*VSphereConfig) Copy

func (c *VSphereConfig) Copy() *VSphereConfig

Copy creates a deep copy of the VSphereConfig object.

func (*VSphereConfig) Merge

func (base *VSphereConfig) Merge(overlay *VSphereConfig)

Merge performs a deep merge of the current VSphereConfig with another VSphereConfig.

Jump to

Keyboard shortcuts

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