vsphere

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployTemplate

func DeployTemplate(envMap map[string]string, library, templateName, vmName, deployFolder, datacenter, datastore, resourcePool string, opts OVFDeployOptions) error

func TagVirtualMachine

func TagVirtualMachine(envMap map[string]string, vmPath, tag string) error

Types

type NetworkMapping

type NetworkMapping struct {
	Name    string `json:"Name"`
	Network string `json:"Network"`
}

type OVFDeployOptions

type OVFDeployOptions struct {
	Name             string           `json:"Name"`
	PowerOn          bool             `json:"PowerOn"`
	DiskProvisioning string           `json:"DiskProvisioning"`
	WaitForIP        bool             `json:"WaitForIP"`
	NetworkMappings  []NetworkMapping `json:"NetworkMapping"`
	Annotation       string           `json:"Annotation"`
	PropertyMapping  []OVFProperty    `json:"PropertyMapping"`
	InjectOvfEnv     bool             `json:"InjectOvfEnv"`
}

type OVFProperty

type OVFProperty struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

Jump to

Keyboard shortcuts

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