Documentation ¶
Index ¶
- Constants
- Variables
- type AuthorizationManager
- func (m AuthorizationManager) RemoveEntityPermission(ctx context.Context, entity types.ManagedObjectReference, user string, ...) error
- func (m AuthorizationManager) RetrieveEntityPermissions(ctx context.Context, entity types.ManagedObjectReference, inherited bool) ([]types.Permission, error)
- func (m AuthorizationManager) RoleList(ctx context.Context) (AuthorizationRoleList, error)
- func (m AuthorizationManager) SetEntityPermissions(ctx context.Context, entity types.ManagedObjectReference, ...) error
- type AuthorizationRoleList
- type ClusterComputeResource
- func (c ClusterComputeResource) AddHost(ctx context.Context, spec types.HostConnectSpec, asConnected bool, ...) (*Task, error)
- func (c ClusterComputeResource) Destroy(ctx context.Context) (*Task, error)
- func (c ClusterComputeResource) ReconfigureCluster(ctx context.Context, spec types.ClusterConfigSpec) (*Task, error)
- type Common
- type ComputeResource
- func (c ComputeResource) Datastores(ctx context.Context) ([]*Datastore, error)
- func (c ComputeResource) Destroy(ctx context.Context) (*Task, error)
- func (c ComputeResource) Hosts(ctx context.Context) ([]*HostSystem, error)
- func (c ComputeResource) Reconfigure(ctx context.Context, spec types.BaseComputeResourceConfigSpec, modify bool) (*Task, error)
- func (c ComputeResource) ResourcePool(ctx context.Context) (*ResourcePool, error)
- type CustomFieldsManager
- func (m CustomFieldsManager) Add(ctx context.Context, name string, moType string, ...) (*types.CustomFieldDef, error)
- func (m CustomFieldsManager) Field(ctx context.Context) ([]types.CustomFieldDef, error)
- func (m CustomFieldsManager) FindKey(ctx context.Context, key string) (int, error)
- func (m CustomFieldsManager) Remove(ctx context.Context, key int) error
- func (m CustomFieldsManager) Rename(ctx context.Context, key int, name string) error
- func (m CustomFieldsManager) Set(ctx context.Context, entity types.ManagedObjectReference, key int, ...) error
- type CustomizationSpecManager
- func (cs CustomizationSpecManager) CreateCustomizationSpec(ctx context.Context, item types.CustomizationSpecItem) error
- func (cs CustomizationSpecManager) CustomizationSpecItemToXml(ctx context.Context, item types.CustomizationSpecItem) (string, error)
- func (cs CustomizationSpecManager) DeleteCustomizationSpec(ctx context.Context, name string) error
- func (cs CustomizationSpecManager) DoesCustomizationSpecExist(ctx context.Context, name string) (bool, error)
- func (cs CustomizationSpecManager) DuplicateCustomizationSpec(ctx context.Context, name string, newName string) error
- func (cs CustomizationSpecManager) GetCustomizationSpec(ctx context.Context, name string) (*types.CustomizationSpecItem, error)
- func (cs CustomizationSpecManager) OverwriteCustomizationSpec(ctx context.Context, item types.CustomizationSpecItem) error
- func (cs CustomizationSpecManager) RenameCustomizationSpec(ctx context.Context, name string, newName string) error
- func (cs CustomizationSpecManager) XmlToCustomizationSpecItem(ctx context.Context, xml string) (*types.CustomizationSpecItem, error)
- type Datacenter
- type DatacenterFolders
- type Datastore
- func (d Datastore) AttachedHosts(ctx context.Context) ([]*HostSystem, error)
- func (d Datastore) Browser(ctx context.Context) (*HostDatastoreBrowser, error)
- func (d Datastore) DownloadFile(ctx context.Context, path string, file string, param *soap.Download) error
- func (d Datastore) Name() string
- func (d Datastore) Path(path string) string
- func (d Datastore) ServiceTicket(ctx context.Context, path string, method string) (*url.URL, *http.Cookie, error)
- func (d Datastore) Stat(ctx context.Context, file string) (types.BaseFileInfo, error)
- func (d Datastore) URL(ctx context.Context, dc *Datacenter, path string) (*url.URL, error)
- func (d Datastore) Upload(ctx context.Context, f io.Reader, path string, param *soap.Upload) error
- func (d Datastore) UploadFile(ctx context.Context, file string, path string, param *soap.Upload) error
- type DatastoreNoSuchDirectoryError
- type DatastoreNoSuchFileError
- type DiagnosticManager
- func (m DiagnosticManager) BrowseLog(ctx context.Context, host *HostSystem, key string, start, lines int) (*types.DiagnosticManagerLogHeader, error)
- func (m DiagnosticManager) GenerateLogBundles(ctx context.Context, includeDefault bool, host []*HostSystem) (*Task, error)
- func (m DiagnosticManager) QueryDescriptions(ctx context.Context, host *HostSystem) ([]types.DiagnosticManagerLogDescriptor, error)
- type DistributedVirtualPortgroup
- type DistributedVirtualSwitch
- func (s DistributedVirtualSwitch) AddPortgroup(ctx context.Context, spec []types.DVPortgroupConfigSpec) (*Task, error)
- func (s DistributedVirtualSwitch) EthernetCardBackingInfo(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error)
- func (s DistributedVirtualSwitch) Reconfigure(ctx context.Context, spec types.BaseDVSConfigSpec) (*Task, error)
- type ExtensionManager
- func (m ExtensionManager) Find(ctx context.Context, key string) (*types.Extension, error)
- func (m ExtensionManager) List(ctx context.Context) ([]types.Extension, error)
- func (m ExtensionManager) Register(ctx context.Context, extension types.Extension) error
- func (m ExtensionManager) SetCertificate(ctx context.Context, key string, certificatePem string) error
- func (m ExtensionManager) Unregister(ctx context.Context, key string) error
- func (m ExtensionManager) Update(ctx context.Context, extension types.Extension) error
- type FileManager
- func (f FileManager) CopyDatastoreFile(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, ...) (*Task, error)
- func (f FileManager) DeleteDatastoreFile(ctx context.Context, name string, dc *Datacenter) (*Task, error)
- func (f FileManager) MakeDirectory(ctx context.Context, name string, dc *Datacenter, createParentDirectories bool) error
- func (f FileManager) MoveDatastoreFile(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, ...) (*Task, error)
- type Folder
- func (f Folder) AddStandaloneHost(ctx context.Context, spec types.HostConnectSpec, addConnected bool, ...) (*Task, error)
- func (f Folder) Children(ctx context.Context) ([]Reference, error)
- func (f Folder) CreateCluster(ctx context.Context, cluster string, spec types.ClusterConfigSpecEx) (*ClusterComputeResource, error)
- func (f Folder) CreateDVS(ctx context.Context, spec types.DVSCreateSpec) (*Task, error)
- func (f Folder) CreateDatacenter(ctx context.Context, datacenter string) (*Datacenter, error)
- func (f Folder) CreateFolder(ctx context.Context, name string) (*Folder, error)
- func (f Folder) CreateVM(ctx context.Context, config types.VirtualMachineConfigSpec, pool *ResourcePool, ...) (*Task, error)
- func (f Folder) RegisterVM(ctx context.Context, path string, name string, asTemplate bool, ...) (*Task, error)
- type HistoryCollector
- type HostConfigManager
- func (m HostConfigManager) DatastoreSystem(ctx context.Context) (*HostDatastoreSystem, error)
- func (m HostConfigManager) FirewallSystem(ctx context.Context) (*HostFirewallSystem, error)
- func (m HostConfigManager) NetworkSystem(ctx context.Context) (*HostNetworkSystem, error)
- func (m HostConfigManager) StorageSystem(ctx context.Context) (*HostStorageSystem, error)
- func (m HostConfigManager) VirtualNicManager(ctx context.Context) (*HostVirtualNicManager, error)
- func (m HostConfigManager) VsanSystem(ctx context.Context) (*HostVsanSystem, error)
- type HostDatastoreBrowser
- type HostDatastoreSystem
- func (s HostDatastoreSystem) CreateNasDatastore(ctx context.Context, spec types.HostNasVolumeSpec) (*Datastore, error)
- func (s HostDatastoreSystem) CreateVmfsDatastore(ctx context.Context, spec types.VmfsDatastoreCreateSpec) (*Datastore, error)
- func (s HostDatastoreSystem) QueryAvailableDisksForVmfs(ctx context.Context) ([]types.HostScsiDisk, error)
- func (s HostDatastoreSystem) QueryVmfsDatastoreCreateOptions(ctx context.Context, devicePath string) ([]types.VmfsDatastoreOption, error)
- func (s HostDatastoreSystem) Remove(ctx context.Context, ds *Datastore) error
- type HostFirewallRulesetList
- func (l HostFirewallRulesetList) ByRule(rule types.HostFirewallRule) HostFirewallRulesetList
- func (l HostFirewallRulesetList) Disabled() HostFirewallRulesetList
- func (l HostFirewallRulesetList) Enabled() HostFirewallRulesetList
- func (l HostFirewallRulesetList) EnabledByRule(rule types.HostFirewallRule, enabled bool) (HostFirewallRulesetList, error)
- func (l HostFirewallRulesetList) Keys() []string
- type HostFirewallSystem
- func (s HostFirewallSystem) DisableRuleset(ctx context.Context, id string) error
- func (s HostFirewallSystem) EnableRuleset(ctx context.Context, id string) error
- func (s HostFirewallSystem) Info(ctx context.Context) (*types.HostFirewallInfo, error)
- func (s HostFirewallSystem) Refresh(ctx context.Context) error
- type HostNetworkSystem
- func (o HostNetworkSystem) AddPortGroup(ctx context.Context, portgrp types.HostPortGroupSpec) error
- func (o HostNetworkSystem) AddServiceConsoleVirtualNic(ctx context.Context, portgroup string, nic types.HostVirtualNicSpec) (string, error)
- func (o HostNetworkSystem) AddVirtualNic(ctx context.Context, portgroup string, nic types.HostVirtualNicSpec) (string, error)
- func (o HostNetworkSystem) AddVirtualSwitch(ctx context.Context, vswitchName string, spec *types.HostVirtualSwitchSpec) error
- func (o HostNetworkSystem) QueryNetworkHint(ctx context.Context, device []string) error
- func (o HostNetworkSystem) RefreshNetworkSystem(ctx context.Context) error
- func (o HostNetworkSystem) RemovePortGroup(ctx context.Context, pgName string) error
- func (o HostNetworkSystem) RemoveServiceConsoleVirtualNic(ctx context.Context, device string) error
- func (o HostNetworkSystem) RemoveVirtualNic(ctx context.Context, device string) error
- func (o HostNetworkSystem) RemoveVirtualSwitch(ctx context.Context, vswitchName string) error
- func (o HostNetworkSystem) RestartServiceConsoleVirtualNic(ctx context.Context, device string) error
- func (o HostNetworkSystem) UpdateConsoleIpRouteConfig(ctx context.Context, config types.BaseHostIpRouteConfig) error
- func (o HostNetworkSystem) UpdateDnsConfig(ctx context.Context, config types.BaseHostDnsConfig) error
- func (o HostNetworkSystem) UpdateIpRouteConfig(ctx context.Context, config types.BaseHostIpRouteConfig) error
- func (o HostNetworkSystem) UpdateIpRouteTableConfig(ctx context.Context, config types.HostIpRouteTableConfig) error
- func (o HostNetworkSystem) UpdateNetworkConfig(ctx context.Context, config types.HostNetworkConfig, changeMode string) (*types.HostNetworkConfigResult, error)
- func (o HostNetworkSystem) UpdatePhysicalNicLinkSpeed(ctx context.Context, device string, linkSpeed *types.PhysicalNicLinkInfo) error
- func (o HostNetworkSystem) UpdatePortGroup(ctx context.Context, pgName string, portgrp types.HostPortGroupSpec) error
- func (o HostNetworkSystem) UpdateServiceConsoleVirtualNic(ctx context.Context, device string, nic types.HostVirtualNicSpec) error
- func (o HostNetworkSystem) UpdateVirtualNic(ctx context.Context, device string, nic types.HostVirtualNicSpec) error
- func (o HostNetworkSystem) UpdateVirtualSwitch(ctx context.Context, vswitchName string, spec types.HostVirtualSwitchSpec) error
- type HostStorageSystem
- func (s HostStorageSystem) ComputeDiskPartitionInfo(ctx context.Context, devicePath string, layout types.HostDiskPartitionLayout) (*types.HostDiskPartitionInfo, error)
- func (s HostStorageSystem) RetrieveDiskPartitionInfo(ctx context.Context, devicePath string) (*types.HostDiskPartitionInfo, error)
- func (s HostStorageSystem) UpdateDiskPartitionInfo(ctx context.Context, devicePath string, spec types.HostDiskPartitionSpec) error
- type HostSystem
- func (h HostSystem) ConfigManager() *HostConfigManager
- func (h HostSystem) Disconnect(ctx context.Context) (*Task, error)
- func (h HostSystem) EnterMaintenanceMode(ctx context.Context, timeout int, evacuate bool, ...) (*Task, error)
- func (h HostSystem) ExitMaintenanceMode(ctx context.Context, timeout int) (*Task, error)
- func (h HostSystem) ManagementIPs(ctx context.Context) ([]net.IP, error)
- func (h HostSystem) Name(ctx context.Context) (string, error)
- func (h HostSystem) Reconnect(ctx context.Context, cnxSpec *types.HostConnectSpec, ...) (*Task, error)
- func (h HostSystem) ResourcePool(ctx context.Context) (*ResourcePool, error)
- func (h HostSystem) String() string
- type HostVirtualNicManager
- func (m HostVirtualNicManager) DeselectVnic(ctx context.Context, nicType string, device string) error
- func (m HostVirtualNicManager) Info(ctx context.Context) (*types.HostVirtualNicManagerInfo, error)
- func (m HostVirtualNicManager) SelectVnic(ctx context.Context, nicType string, device string) error
- type HostVsanSystem
- type HttpNfcLease
- func (o HttpNfcLease) HttpNfcLeaseAbort(ctx context.Context, fault *types.LocalizedMethodFault) error
- func (o HttpNfcLease) HttpNfcLeaseComplete(ctx context.Context) error
- func (o HttpNfcLease) HttpNfcLeaseGetManifest(ctx context.Context) error
- func (o HttpNfcLease) HttpNfcLeaseProgress(ctx context.Context, percent int) error
- func (o HttpNfcLease) Wait(ctx context.Context) (*types.HttpNfcLeaseInfo, error)
- type Network
- type NetworkReference
- type OvfManager
- func (o OvfManager) CreateDescriptor(ctx context.Context, obj Reference, cdp types.OvfCreateDescriptorParams) (*types.OvfCreateDescriptorResult, error)
- func (o OvfManager) CreateImportSpec(ctx context.Context, ovfDescriptor string, resourcePool Reference, ...) (*types.OvfCreateImportSpecResult, error)
- func (o OvfManager) ParseDescriptor(ctx context.Context, ovfDescriptor string, pdp types.OvfParseDescriptorParams) (*types.OvfParseDescriptorResult, error)
- func (o OvfManager) ValidateHost(ctx context.Context, ovfDescriptor string, host Reference, ...) (*types.OvfValidateHostResult, error)
- type Reference
- type ResourcePool
- func (p ResourcePool) Create(ctx context.Context, name string, spec types.ResourceConfigSpec) (*ResourcePool, error)
- func (p ResourcePool) CreateVApp(ctx context.Context, name string, resSpec types.ResourceConfigSpec, ...) (*VirtualApp, error)
- func (p ResourcePool) Destroy(ctx context.Context) (*Task, error)
- func (p ResourcePool) DestroyChildren(ctx context.Context) error
- func (p ResourcePool) ImportVApp(ctx context.Context, spec types.BaseImportSpec, folder *Folder, ...) (*HttpNfcLease, error)
- func (p ResourcePool) Name(ctx context.Context) (string, error)
- func (p ResourcePool) String() string
- func (p ResourcePool) UpdateConfig(ctx context.Context, name string, config *types.ResourceConfigSpec) error
- type SearchIndex
- func (s SearchIndex) FindByDatastorePath(ctx context.Context, dc *Datacenter, path string) (Reference, error)
- func (s SearchIndex) FindByDnsName(ctx context.Context, dc *Datacenter, dnsName string, vmSearch bool) (Reference, error)
- func (s SearchIndex) FindByInventoryPath(ctx context.Context, path string) (Reference, error)
- func (s SearchIndex) FindByIp(ctx context.Context, dc *Datacenter, ip string, vmSearch bool) (Reference, error)
- func (s SearchIndex) FindByUuid(ctx context.Context, dc *Datacenter, uuid string, vmSearch bool, ...) (Reference, error)
- func (s SearchIndex) FindChild(ctx context.Context, entity Reference, name string) (Reference, error)
- type StoragePod
- type StorageResourceManager
- func (sr StorageResourceManager) ApplyStorageDrsRecommendation(ctx context.Context, key []string) (*Task, error)
- func (sr StorageResourceManager) ApplyStorageDrsRecommendationToPod(ctx context.Context, pod *StoragePod, key string) (*Task, error)
- func (sr StorageResourceManager) CancelStorageDrsRecommendation(ctx context.Context, key []string) error
- func (sr StorageResourceManager) ConfigureDatastoreIORM(ctx context.Context, datastore *Datastore, spec types.StorageIORMConfigSpec, ...) (*Task, error)
- func (sr StorageResourceManager) ConfigureStorageDrsForPod(ctx context.Context, pod *StoragePod, spec types.StorageDrsConfigSpec, ...) (*Task, error)
- func (sr StorageResourceManager) QueryDatastorePerformanceSummary(ctx context.Context, datastore *Datastore) ([]types.StoragePerformanceSummary, error)
- func (sr StorageResourceManager) QueryIORMConfigOption(ctx context.Context, host *HostSystem) (*types.StorageIORMConfigOption, error)
- func (sr StorageResourceManager) RecommendDatastores(ctx context.Context, storageSpec types.StoragePlacementSpec) (*types.StoragePlacementResult, error)
- func (sr StorageResourceManager) RefreshStorageDrsRecommendation(ctx context.Context, pod *StoragePod) error
- type Task
- type VirtualApp
- func (p VirtualApp) CreateChildVM_Task(ctx context.Context, config types.VirtualMachineConfigSpec, host *HostSystem) (*Task, error)
- func (p VirtualApp) Name(ctx context.Context) (string, error)
- func (p VirtualApp) PowerOffVApp_Task(ctx context.Context, force bool) (*Task, error)
- func (p VirtualApp) PowerOnVApp_Task(ctx context.Context) (*Task, error)
- func (p VirtualApp) String() string
- func (p VirtualApp) SuspendVApp_Task(ctx context.Context) (*Task, error)
- func (p VirtualApp) UpdateVAppConfig(ctx context.Context, spec types.VAppConfigSpec) error
- type VirtualDeviceList
- func (l VirtualDeviceList) AssignController(device types.BaseVirtualDevice, c types.BaseVirtualController)
- func (l VirtualDeviceList) BootOrder(order []string) []types.BaseVirtualMachineBootOptionsBootableDevice
- func (l VirtualDeviceList) ChildDisk(parent *types.VirtualDisk) *types.VirtualDisk
- func (l VirtualDeviceList) Connect(device types.BaseVirtualDevice) error
- func (l VirtualDeviceList) ConnectSerialPort(device *types.VirtualSerialPort, uri string, client bool) *types.VirtualSerialPort
- func (l VirtualDeviceList) CreateCdrom(c *types.VirtualIDEController) (*types.VirtualCdrom, error)
- func (l VirtualDeviceList) CreateDisk(c types.BaseVirtualController, name string) *types.VirtualDisk
- func (l VirtualDeviceList) CreateEthernetCard(name string, backing types.BaseVirtualDeviceBackingInfo) (types.BaseVirtualDevice, error)
- func (l VirtualDeviceList) CreateFloppy() (*types.VirtualFloppy, error)
- func (l VirtualDeviceList) CreateSCSIController(name string) (types.BaseVirtualDevice, error)
- func (l VirtualDeviceList) CreateSerialPort() (*types.VirtualSerialPort, error)
- func (l VirtualDeviceList) Disconnect(device types.BaseVirtualDevice) error
- func (l VirtualDeviceList) DisconnectSerialPort(device *types.VirtualSerialPort) *types.VirtualSerialPort
- func (l VirtualDeviceList) EjectImg(device *types.VirtualFloppy) *types.VirtualFloppy
- func (l VirtualDeviceList) EjectIso(device *types.VirtualCdrom) *types.VirtualCdrom
- func (l VirtualDeviceList) Find(name string) types.BaseVirtualDevice
- func (l VirtualDeviceList) FindByKey(key int) types.BaseVirtualDevice
- func (l VirtualDeviceList) FindCdrom(name string) (*types.VirtualCdrom, error)
- func (l VirtualDeviceList) FindDiskController(name string) (types.BaseVirtualController, error)
- func (l VirtualDeviceList) FindFloppy(name string) (*types.VirtualFloppy, error)
- func (l VirtualDeviceList) FindIDEController(name string) (*types.VirtualIDEController, error)
- func (l VirtualDeviceList) FindSCSIController(name string) (*types.VirtualSCSIController, error)
- func (l VirtualDeviceList) FindSerialPort(name string) (*types.VirtualSerialPort, error)
- func (l VirtualDeviceList) InsertImg(device *types.VirtualFloppy, img string) *types.VirtualFloppy
- func (l VirtualDeviceList) InsertIso(device *types.VirtualCdrom, iso string) *types.VirtualCdrom
- func (l VirtualDeviceList) Name(device types.BaseVirtualDevice) string
- func (l VirtualDeviceList) PickController(kind types.BaseVirtualController) types.BaseVirtualController
- func (l VirtualDeviceList) PrimaryMacAddress() string
- func (l VirtualDeviceList) Select(f func(device types.BaseVirtualDevice) bool) VirtualDeviceList
- func (l VirtualDeviceList) SelectBootOrder(order []types.BaseVirtualMachineBootOptionsBootableDevice) VirtualDeviceList
- func (l VirtualDeviceList) SelectByBackingInfo(backing types.BaseVirtualDeviceBackingInfo) VirtualDeviceList
- func (l VirtualDeviceList) SelectByType(deviceType types.BaseVirtualDevice) VirtualDeviceList
- func (l VirtualDeviceList) Type(device types.BaseVirtualDevice) string
- func (l VirtualDeviceList) TypeName(device types.BaseVirtualDevice) string
- type VirtualDiskManager
- func (m VirtualDiskManager) CopyVirtualDisk(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, ...) (*Task, error)
- func (m VirtualDiskManager) CreateVirtualDisk(ctx context.Context, name string, datacenter *Datacenter, ...) (*Task, error)
- func (m VirtualDiskManager) DeleteVirtualDisk(ctx context.Context, name string, dc *Datacenter) (*Task, error)
- func (m VirtualDiskManager) MoveVirtualDisk(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, ...) (*Task, error)
- type VirtualMachine
- func (v VirtualMachine) AddDevice(ctx context.Context, device ...types.BaseVirtualDevice) error
- func (v VirtualMachine) Answer(ctx context.Context, id, answer string) error
- func (v VirtualMachine) BootOptions(ctx context.Context) (*types.VirtualMachineBootOptions, error)
- func (v VirtualMachine) Clone(ctx context.Context, folder *Folder, name string, ...) (*Task, error)
- func (v VirtualMachine) CreateSnapshot(ctx context.Context, name string, description string, memory bool, ...) (*Task, error)
- func (v VirtualMachine) Customize(ctx context.Context, spec types.CustomizationSpec) (*Task, error)
- func (v VirtualMachine) Destroy(ctx context.Context) (*Task, error)
- func (v VirtualMachine) Device(ctx context.Context) (VirtualDeviceList, error)
- func (v VirtualMachine) EditDevice(ctx context.Context, device ...types.BaseVirtualDevice) error
- func (v VirtualMachine) HostSystem(ctx context.Context) (*HostSystem, error)
- func (v VirtualMachine) IsToolsRunning(ctx context.Context) (bool, error)
- func (v VirtualMachine) MarkAsTemplate(ctx context.Context) error
- func (v VirtualMachine) MarkAsVirtualMachine(ctx context.Context, pool ResourcePool, host *HostSystem) error
- func (v VirtualMachine) Name(ctx context.Context) (string, error)
- func (v VirtualMachine) PowerOff(ctx context.Context) (*Task, error)
- func (v VirtualMachine) PowerOn(ctx context.Context) (*Task, error)
- func (v VirtualMachine) PowerState(ctx context.Context) (types.VirtualMachinePowerState, error)
- func (v VirtualMachine) RebootGuest(ctx context.Context) error
- func (v VirtualMachine) Reconfigure(ctx context.Context, config types.VirtualMachineConfigSpec) (*Task, error)
- func (v VirtualMachine) Relocate(ctx context.Context, config types.VirtualMachineRelocateSpec, ...) (*Task, error)
- func (v VirtualMachine) RemoveDevice(ctx context.Context, device ...types.BaseVirtualDevice) error
- func (v VirtualMachine) Reset(ctx context.Context) (*Task, error)
- func (v VirtualMachine) ResourcePool(ctx context.Context) (*ResourcePool, error)
- func (v VirtualMachine) SetBootOptions(ctx context.Context, options *types.VirtualMachineBootOptions) error
- func (v VirtualMachine) ShutdownGuest(ctx context.Context) error
- func (v VirtualMachine) String() string
- func (v VirtualMachine) Suspend(ctx context.Context) (*Task, error)
- func (v VirtualMachine) WaitForIP(ctx context.Context) (string, error)
- func (v VirtualMachine) WaitForPowerState(ctx context.Context, state types.VirtualMachinePowerState) error
- type VmwareDistributedVirtualSwitch
Constants ¶
const ( DeviceTypeCdrom = "cdrom" DeviceTypeDisk = "disk" DeviceTypeEthernet = "ethernet" DeviceTypeFloppy = "floppy" )
Type values for use in BootOrder
const (
PropRuntimePowerState = "summary.runtime.powerState"
)
Variables ¶
var (
ErrKeyNameNotFound = errors.New("key name not found")
)
var (
ErrNotSupported = errors.New("not supported (vCenter only)")
)
Functions ¶
This section is empty.
Types ¶
type AuthorizationManager ¶ added in v0.3.0
type AuthorizationManager struct {
Common
}
func NewAuthorizationManager ¶ added in v0.3.0
func NewAuthorizationManager(c *vim25.Client) *AuthorizationManager
func (AuthorizationManager) RemoveEntityPermission ¶ added in v0.3.0
func (m AuthorizationManager) RemoveEntityPermission(ctx context.Context, entity types.ManagedObjectReference, user string, isGroup bool) error
func (AuthorizationManager) RetrieveEntityPermissions ¶ added in v0.3.0
func (m AuthorizationManager) RetrieveEntityPermissions(ctx context.Context, entity types.ManagedObjectReference, inherited bool) ([]types.Permission, error)
func (AuthorizationManager) RoleList ¶ added in v0.3.0
func (m AuthorizationManager) RoleList(ctx context.Context) (AuthorizationRoleList, error)
func (AuthorizationManager) SetEntityPermissions ¶ added in v0.3.0
func (m AuthorizationManager) SetEntityPermissions(ctx context.Context, entity types.ManagedObjectReference, permission []types.Permission) error
type AuthorizationRoleList ¶ added in v0.3.0
type AuthorizationRoleList []types.AuthorizationRole
func (AuthorizationRoleList) ById ¶ added in v0.3.0
func (l AuthorizationRoleList) ById(id int) *types.AuthorizationRole
func (AuthorizationRoleList) ByName ¶ added in v0.3.0
func (l AuthorizationRoleList) ByName(name string) *types.AuthorizationRole
type ClusterComputeResource ¶
type ClusterComputeResource struct { ComputeResource InventoryPath string }
func NewClusterComputeResource ¶
func NewClusterComputeResource(c *vim25.Client, ref types.ManagedObjectReference) *ClusterComputeResource
func (ClusterComputeResource) AddHost ¶
func (c ClusterComputeResource) AddHost(ctx context.Context, spec types.HostConnectSpec, asConnected bool, license *string, resourcePool *types.ManagedObjectReference) (*Task, error)
func (ClusterComputeResource) Destroy ¶
func (c ClusterComputeResource) Destroy(ctx context.Context) (*Task, error)
func (ClusterComputeResource) ReconfigureCluster ¶
func (c ClusterComputeResource) ReconfigureCluster(ctx context.Context, spec types.ClusterConfigSpec) (*Task, error)
type Common ¶
type Common struct {
// contains filtered or unexported fields
}
Common contains the fields and functions common to all objects.
func (Common) Properties ¶
func (Common) Reference ¶
func (c Common) Reference() types.ManagedObjectReference
type ComputeResource ¶
func NewComputeResource ¶
func NewComputeResource(c *vim25.Client, ref types.ManagedObjectReference) *ComputeResource
func (ComputeResource) Datastores ¶
func (c ComputeResource) Datastores(ctx context.Context) ([]*Datastore, error)
func (ComputeResource) Destroy ¶
func (c ComputeResource) Destroy(ctx context.Context) (*Task, error)
func (ComputeResource) Hosts ¶
func (c ComputeResource) Hosts(ctx context.Context) ([]*HostSystem, error)
func (ComputeResource) Reconfigure ¶ added in v0.3.0
func (c ComputeResource) Reconfigure(ctx context.Context, spec types.BaseComputeResourceConfigSpec, modify bool) (*Task, error)
func (ComputeResource) ResourcePool ¶
func (c ComputeResource) ResourcePool(ctx context.Context) (*ResourcePool, error)
type CustomFieldsManager ¶
type CustomFieldsManager struct {
Common
}
func GetCustomFieldsManager ¶
func GetCustomFieldsManager(c *vim25.Client) (*CustomFieldsManager, error)
GetCustomFieldsManager wraps NewCustomFieldsManager, returning ErrNotSupported when the client is not connected to a vCenter instance.
func NewCustomFieldsManager ¶
func NewCustomFieldsManager(c *vim25.Client) *CustomFieldsManager
func (CustomFieldsManager) Add ¶
func (m CustomFieldsManager) Add(ctx context.Context, name string, moType string, fieldDefPolicy *types.PrivilegePolicyDef, fieldPolicy *types.PrivilegePolicyDef) (*types.CustomFieldDef, error)
func (CustomFieldsManager) Field ¶
func (m CustomFieldsManager) Field(ctx context.Context) ([]types.CustomFieldDef, error)
func (CustomFieldsManager) Remove ¶
func (m CustomFieldsManager) Remove(ctx context.Context, key int) error
func (CustomFieldsManager) Set ¶
func (m CustomFieldsManager) Set(ctx context.Context, entity types.ManagedObjectReference, key int, value string) error
type CustomizationSpecManager ¶
type CustomizationSpecManager struct {
Common
}
func NewCustomizationSpecManager ¶
func NewCustomizationSpecManager(c *vim25.Client) *CustomizationSpecManager
func (CustomizationSpecManager) CreateCustomizationSpec ¶
func (cs CustomizationSpecManager) CreateCustomizationSpec(ctx context.Context, item types.CustomizationSpecItem) error
func (CustomizationSpecManager) CustomizationSpecItemToXml ¶
func (cs CustomizationSpecManager) CustomizationSpecItemToXml(ctx context.Context, item types.CustomizationSpecItem) (string, error)
func (CustomizationSpecManager) DeleteCustomizationSpec ¶
func (cs CustomizationSpecManager) DeleteCustomizationSpec(ctx context.Context, name string) error
func (CustomizationSpecManager) DoesCustomizationSpecExist ¶
func (CustomizationSpecManager) DuplicateCustomizationSpec ¶
func (CustomizationSpecManager) GetCustomizationSpec ¶
func (cs CustomizationSpecManager) GetCustomizationSpec(ctx context.Context, name string) (*types.CustomizationSpecItem, error)
func (CustomizationSpecManager) OverwriteCustomizationSpec ¶
func (cs CustomizationSpecManager) OverwriteCustomizationSpec(ctx context.Context, item types.CustomizationSpecItem) error
func (CustomizationSpecManager) RenameCustomizationSpec ¶
func (CustomizationSpecManager) XmlToCustomizationSpecItem ¶
func (cs CustomizationSpecManager) XmlToCustomizationSpecItem(ctx context.Context, xml string) (*types.CustomizationSpecItem, error)
type Datacenter ¶
type Datacenter struct {
Common
}
func NewDatacenter ¶
func NewDatacenter(c *vim25.Client, ref types.ManagedObjectReference) *Datacenter
func (*Datacenter) Folders ¶
func (d *Datacenter) Folders(ctx context.Context) (*DatacenterFolders, error)
type DatacenterFolders ¶
type Datastore ¶
func NewDatastore ¶
func NewDatastore(c *vim25.Client, ref types.ManagedObjectReference) *Datastore
func (Datastore) AttachedHosts ¶ added in v0.3.0
func (d Datastore) AttachedHosts(ctx context.Context) ([]*HostSystem, error)
AttachedHosts returns hosts that have this Datastore attached, accessible and writable.
func (Datastore) Browser ¶
func (d Datastore) Browser(ctx context.Context) (*HostDatastoreBrowser, error)
func (Datastore) DownloadFile ¶ added in v0.3.0
func (d Datastore) DownloadFile(ctx context.Context, path string, file string, param *soap.Download) error
DownloadFile via soap.Upload with an http service ticket
func (Datastore) ServiceTicket ¶ added in v0.3.0
func (d Datastore) ServiceTicket(ctx context.Context, path string, method string) (*url.URL, *http.Cookie, error)
ServiceTicket obtains a ticket via AcquireGenericServiceTicket and returns it an http.Cookie with the url.URL that can be used along with the ticket cookie to access the given path.
type DatastoreNoSuchDirectoryError ¶ added in v0.3.0
type DatastoreNoSuchDirectoryError struct {
// contains filtered or unexported fields
}
DatastoreNoSuchDirectoryError is returned when a directory could not be found.
func (DatastoreNoSuchDirectoryError) Error ¶ added in v0.3.0
func (e DatastoreNoSuchDirectoryError) Error() string
type DatastoreNoSuchFileError ¶ added in v0.3.0
type DatastoreNoSuchFileError struct {
// contains filtered or unexported fields
}
DatastoreNoSuchFileError is returned when a file could not be found.
func (DatastoreNoSuchFileError) Error ¶ added in v0.3.0
func (e DatastoreNoSuchFileError) Error() string
type DiagnosticManager ¶ added in v0.3.0
type DiagnosticManager struct {
Common
}
func NewDiagnosticManager ¶ added in v0.3.0
func NewDiagnosticManager(c *vim25.Client) *DiagnosticManager
func (DiagnosticManager) BrowseLog ¶ added in v0.3.0
func (m DiagnosticManager) BrowseLog(ctx context.Context, host *HostSystem, key string, start, lines int) (*types.DiagnosticManagerLogHeader, error)
func (DiagnosticManager) GenerateLogBundles ¶ added in v0.3.0
func (m DiagnosticManager) GenerateLogBundles(ctx context.Context, includeDefault bool, host []*HostSystem) (*Task, error)
func (DiagnosticManager) QueryDescriptions ¶ added in v0.3.0
func (m DiagnosticManager) QueryDescriptions(ctx context.Context, host *HostSystem) ([]types.DiagnosticManagerLogDescriptor, error)
type DistributedVirtualPortgroup ¶
func NewDistributedVirtualPortgroup ¶
func NewDistributedVirtualPortgroup(c *vim25.Client, ref types.ManagedObjectReference) *DistributedVirtualPortgroup
func (DistributedVirtualPortgroup) EthernetCardBackingInfo ¶
func (p DistributedVirtualPortgroup) EthernetCardBackingInfo(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error)
EthernetCardBackingInfo returns the VirtualDeviceBackingInfo for this DistributedVirtualPortgroup
func (DistributedVirtualPortgroup) Name ¶
func (p DistributedVirtualPortgroup) Name() string
type DistributedVirtualSwitch ¶
func NewDistributedVirtualSwitch ¶
func NewDistributedVirtualSwitch(c *vim25.Client, ref types.ManagedObjectReference) *DistributedVirtualSwitch
func (DistributedVirtualSwitch) AddPortgroup ¶ added in v0.3.0
func (s DistributedVirtualSwitch) AddPortgroup(ctx context.Context, spec []types.DVPortgroupConfigSpec) (*Task, error)
func (DistributedVirtualSwitch) EthernetCardBackingInfo ¶ added in v0.3.0
func (s DistributedVirtualSwitch) EthernetCardBackingInfo(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error)
func (DistributedVirtualSwitch) Reconfigure ¶ added in v0.3.0
func (s DistributedVirtualSwitch) Reconfigure(ctx context.Context, spec types.BaseDVSConfigSpec) (*Task, error)
type ExtensionManager ¶ added in v0.3.0
type ExtensionManager struct {
Common
}
func GetExtensionManager ¶ added in v0.3.0
func GetExtensionManager(c *vim25.Client) (*ExtensionManager, error)
GetExtensionManager wraps NewExtensionManager, returning ErrNotSupported when the client is not connected to a vCenter instance.
func NewExtensionManager ¶ added in v0.3.0
func NewExtensionManager(c *vim25.Client) *ExtensionManager
func (ExtensionManager) SetCertificate ¶ added in v0.3.0
func (ExtensionManager) Unregister ¶ added in v0.3.0
func (m ExtensionManager) Unregister(ctx context.Context, key string) error
type FileManager ¶
type FileManager struct {
Common
}
func NewFileManager ¶
func NewFileManager(c *vim25.Client) *FileManager
func (FileManager) CopyDatastoreFile ¶
func (f FileManager) CopyDatastoreFile(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, destinationName string, destinationDatacenter *Datacenter, force bool) (*Task, error)
func (FileManager) DeleteDatastoreFile ¶
func (f FileManager) DeleteDatastoreFile(ctx context.Context, name string, dc *Datacenter) (*Task, error)
DeleteDatastoreFile deletes the specified file or folder from the datastore.
func (FileManager) MakeDirectory ¶
func (f FileManager) MakeDirectory(ctx context.Context, name string, dc *Datacenter, createParentDirectories bool) error
MakeDirectory creates a folder using the specified name.
func (FileManager) MoveDatastoreFile ¶
func (f FileManager) MoveDatastoreFile(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, destinationName string, destinationDatacenter *Datacenter, force bool) (*Task, error)
type Folder ¶
func NewRootFolder ¶
func (Folder) AddStandaloneHost ¶
func (Folder) CreateCluster ¶
func (f Folder) CreateCluster(ctx context.Context, cluster string, spec types.ClusterConfigSpecEx) (*ClusterComputeResource, error)
func (Folder) CreateDatacenter ¶
func (Folder) CreateFolder ¶
func (Folder) CreateVM ¶
func (f Folder) CreateVM(ctx context.Context, config types.VirtualMachineConfigSpec, pool *ResourcePool, host *HostSystem) (*Task, error)
func (Folder) RegisterVM ¶
func (f Folder) RegisterVM(ctx context.Context, path string, name string, asTemplate bool, pool *ResourcePool, host *HostSystem) (*Task, error)
type HistoryCollector ¶
type HistoryCollector struct {
Common
}
func NewHistoryCollector ¶
func NewHistoryCollector(c *vim25.Client, ref types.ManagedObjectReference) *HistoryCollector
func (HistoryCollector) SetPageSize ¶
func (h HistoryCollector) SetPageSize(ctx context.Context, maxCount int) error
type HostConfigManager ¶
type HostConfigManager struct {
Common
}
func NewHostConfigManager ¶
func NewHostConfigManager(c *vim25.Client, ref types.ManagedObjectReference) *HostConfigManager
func (HostConfigManager) DatastoreSystem ¶ added in v0.3.0
func (m HostConfigManager) DatastoreSystem(ctx context.Context) (*HostDatastoreSystem, error)
func (HostConfigManager) FirewallSystem ¶ added in v0.3.0
func (m HostConfigManager) FirewallSystem(ctx context.Context) (*HostFirewallSystem, error)
func (HostConfigManager) NetworkSystem ¶
func (m HostConfigManager) NetworkSystem(ctx context.Context) (*HostNetworkSystem, error)
func (HostConfigManager) StorageSystem ¶ added in v0.3.0
func (m HostConfigManager) StorageSystem(ctx context.Context) (*HostStorageSystem, error)
func (HostConfigManager) VirtualNicManager ¶ added in v0.3.0
func (m HostConfigManager) VirtualNicManager(ctx context.Context) (*HostVirtualNicManager, error)
func (HostConfigManager) VsanSystem ¶ added in v0.3.0
func (m HostConfigManager) VsanSystem(ctx context.Context) (*HostVsanSystem, error)
type HostDatastoreBrowser ¶
type HostDatastoreBrowser struct {
Common
}
func NewHostDatastoreBrowser ¶
func NewHostDatastoreBrowser(c *vim25.Client, ref types.ManagedObjectReference) *HostDatastoreBrowser
func (HostDatastoreBrowser) SearchDatastore ¶
func (b HostDatastoreBrowser) SearchDatastore(ctx context.Context, datastorePath string, searchSpec *types.HostDatastoreBrowserSearchSpec) (*Task, error)
func (HostDatastoreBrowser) SearchDatastoreSubFolders ¶
func (b HostDatastoreBrowser) SearchDatastoreSubFolders(ctx context.Context, datastorePath string, searchSpec *types.HostDatastoreBrowserSearchSpec) (*Task, error)
type HostDatastoreSystem ¶ added in v0.3.0
type HostDatastoreSystem struct {
Common
}
func NewHostDatastoreSystem ¶ added in v0.3.0
func NewHostDatastoreSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostDatastoreSystem
func (HostDatastoreSystem) CreateNasDatastore ¶ added in v0.3.0
func (s HostDatastoreSystem) CreateNasDatastore(ctx context.Context, spec types.HostNasVolumeSpec) (*Datastore, error)
func (HostDatastoreSystem) CreateVmfsDatastore ¶ added in v0.3.0
func (s HostDatastoreSystem) CreateVmfsDatastore(ctx context.Context, spec types.VmfsDatastoreCreateSpec) (*Datastore, error)
func (HostDatastoreSystem) QueryAvailableDisksForVmfs ¶ added in v0.3.0
func (s HostDatastoreSystem) QueryAvailableDisksForVmfs(ctx context.Context) ([]types.HostScsiDisk, error)
func (HostDatastoreSystem) QueryVmfsDatastoreCreateOptions ¶ added in v0.3.0
func (s HostDatastoreSystem) QueryVmfsDatastoreCreateOptions(ctx context.Context, devicePath string) ([]types.VmfsDatastoreOption, error)
type HostFirewallRulesetList ¶ added in v0.3.0
type HostFirewallRulesetList []types.HostFirewallRuleset
HostFirewallRulesetList provides helpers for a slice of types.HostFirewallRuleset
func (HostFirewallRulesetList) ByRule ¶ added in v0.3.0
func (l HostFirewallRulesetList) ByRule(rule types.HostFirewallRule) HostFirewallRulesetList
ByRule returns a HostFirewallRulesetList where Direction, PortType and Protocol are equal and Port is within range
func (HostFirewallRulesetList) Disabled ¶ added in v0.3.0
func (l HostFirewallRulesetList) Disabled() HostFirewallRulesetList
Disabled returns a HostFirewallRulesetList with disabled rules
func (HostFirewallRulesetList) Enabled ¶ added in v0.3.0
func (l HostFirewallRulesetList) Enabled() HostFirewallRulesetList
Enabled returns a HostFirewallRulesetList with enabled rules
func (HostFirewallRulesetList) EnabledByRule ¶ added in v0.3.0
func (l HostFirewallRulesetList) EnabledByRule(rule types.HostFirewallRule, enabled bool) (HostFirewallRulesetList, error)
EnabledByRule returns a HostFirewallRulesetList with Match(rule) applied and filtered via Enabled() if enabled param is true, otherwise filtered via Disabled(). An error is returned if the resulting list is empty.
func (HostFirewallRulesetList) Keys ¶ added in v0.3.0
func (l HostFirewallRulesetList) Keys() []string
Keys returns the HostFirewallRuleset.Key for each ruleset in the list
type HostFirewallSystem ¶ added in v0.3.0
type HostFirewallSystem struct {
Common
}
func NewHostFirewallSystem ¶ added in v0.3.0
func NewHostFirewallSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostFirewallSystem
func (HostFirewallSystem) DisableRuleset ¶ added in v0.3.0
func (s HostFirewallSystem) DisableRuleset(ctx context.Context, id string) error
func (HostFirewallSystem) EnableRuleset ¶ added in v0.3.0
func (s HostFirewallSystem) EnableRuleset(ctx context.Context, id string) error
func (HostFirewallSystem) Info ¶ added in v0.3.0
func (s HostFirewallSystem) Info(ctx context.Context) (*types.HostFirewallInfo, error)
type HostNetworkSystem ¶
type HostNetworkSystem struct {
Common
}
func NewHostNetworkSystem ¶
func NewHostNetworkSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostNetworkSystem
func (HostNetworkSystem) AddPortGroup ¶
func (o HostNetworkSystem) AddPortGroup(ctx context.Context, portgrp types.HostPortGroupSpec) error
AddPortGroup wraps methods.AddPortGroup
func (HostNetworkSystem) AddServiceConsoleVirtualNic ¶
func (o HostNetworkSystem) AddServiceConsoleVirtualNic(ctx context.Context, portgroup string, nic types.HostVirtualNicSpec) (string, error)
AddServiceConsoleVirtualNic wraps methods.AddServiceConsoleVirtualNic
func (HostNetworkSystem) AddVirtualNic ¶
func (o HostNetworkSystem) AddVirtualNic(ctx context.Context, portgroup string, nic types.HostVirtualNicSpec) (string, error)
AddVirtualNic wraps methods.AddVirtualNic
func (HostNetworkSystem) AddVirtualSwitch ¶
func (o HostNetworkSystem) AddVirtualSwitch(ctx context.Context, vswitchName string, spec *types.HostVirtualSwitchSpec) error
AddVirtualSwitch wraps methods.AddVirtualSwitch
func (HostNetworkSystem) QueryNetworkHint ¶
func (o HostNetworkSystem) QueryNetworkHint(ctx context.Context, device []string) error
QueryNetworkHint wraps methods.QueryNetworkHint
func (HostNetworkSystem) RefreshNetworkSystem ¶
func (o HostNetworkSystem) RefreshNetworkSystem(ctx context.Context) error
RefreshNetworkSystem wraps methods.RefreshNetworkSystem
func (HostNetworkSystem) RemovePortGroup ¶
func (o HostNetworkSystem) RemovePortGroup(ctx context.Context, pgName string) error
RemovePortGroup wraps methods.RemovePortGroup
func (HostNetworkSystem) RemoveServiceConsoleVirtualNic ¶
func (o HostNetworkSystem) RemoveServiceConsoleVirtualNic(ctx context.Context, device string) error
RemoveServiceConsoleVirtualNic wraps methods.RemoveServiceConsoleVirtualNic
func (HostNetworkSystem) RemoveVirtualNic ¶
func (o HostNetworkSystem) RemoveVirtualNic(ctx context.Context, device string) error
RemoveVirtualNic wraps methods.RemoveVirtualNic
func (HostNetworkSystem) RemoveVirtualSwitch ¶
func (o HostNetworkSystem) RemoveVirtualSwitch(ctx context.Context, vswitchName string) error
RemoveVirtualSwitch wraps methods.RemoveVirtualSwitch
func (HostNetworkSystem) RestartServiceConsoleVirtualNic ¶
func (o HostNetworkSystem) RestartServiceConsoleVirtualNic(ctx context.Context, device string) error
RestartServiceConsoleVirtualNic wraps methods.RestartServiceConsoleVirtualNic
func (HostNetworkSystem) UpdateConsoleIpRouteConfig ¶
func (o HostNetworkSystem) UpdateConsoleIpRouteConfig(ctx context.Context, config types.BaseHostIpRouteConfig) error
UpdateConsoleIpRouteConfig wraps methods.UpdateConsoleIpRouteConfig
func (HostNetworkSystem) UpdateDnsConfig ¶
func (o HostNetworkSystem) UpdateDnsConfig(ctx context.Context, config types.BaseHostDnsConfig) error
UpdateDnsConfig wraps methods.UpdateDnsConfig
func (HostNetworkSystem) UpdateIpRouteConfig ¶
func (o HostNetworkSystem) UpdateIpRouteConfig(ctx context.Context, config types.BaseHostIpRouteConfig) error
UpdateIpRouteConfig wraps methods.UpdateIpRouteConfig
func (HostNetworkSystem) UpdateIpRouteTableConfig ¶
func (o HostNetworkSystem) UpdateIpRouteTableConfig(ctx context.Context, config types.HostIpRouteTableConfig) error
UpdateIpRouteTableConfig wraps methods.UpdateIpRouteTableConfig
func (HostNetworkSystem) UpdateNetworkConfig ¶
func (o HostNetworkSystem) UpdateNetworkConfig(ctx context.Context, config types.HostNetworkConfig, changeMode string) (*types.HostNetworkConfigResult, error)
UpdateNetworkConfig wraps methods.UpdateNetworkConfig
func (HostNetworkSystem) UpdatePhysicalNicLinkSpeed ¶
func (o HostNetworkSystem) UpdatePhysicalNicLinkSpeed(ctx context.Context, device string, linkSpeed *types.PhysicalNicLinkInfo) error
UpdatePhysicalNicLinkSpeed wraps methods.UpdatePhysicalNicLinkSpeed
func (HostNetworkSystem) UpdatePortGroup ¶
func (o HostNetworkSystem) UpdatePortGroup(ctx context.Context, pgName string, portgrp types.HostPortGroupSpec) error
UpdatePortGroup wraps methods.UpdatePortGroup
func (HostNetworkSystem) UpdateServiceConsoleVirtualNic ¶
func (o HostNetworkSystem) UpdateServiceConsoleVirtualNic(ctx context.Context, device string, nic types.HostVirtualNicSpec) error
UpdateServiceConsoleVirtualNic wraps methods.UpdateServiceConsoleVirtualNic
func (HostNetworkSystem) UpdateVirtualNic ¶
func (o HostNetworkSystem) UpdateVirtualNic(ctx context.Context, device string, nic types.HostVirtualNicSpec) error
UpdateVirtualNic wraps methods.UpdateVirtualNic
func (HostNetworkSystem) UpdateVirtualSwitch ¶
func (o HostNetworkSystem) UpdateVirtualSwitch(ctx context.Context, vswitchName string, spec types.HostVirtualSwitchSpec) error
UpdateVirtualSwitch wraps methods.UpdateVirtualSwitch
type HostStorageSystem ¶ added in v0.3.0
type HostStorageSystem struct {
Common
}
func NewHostStorageSystem ¶ added in v0.3.0
func NewHostStorageSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostStorageSystem
func (HostStorageSystem) ComputeDiskPartitionInfo ¶ added in v0.3.0
func (s HostStorageSystem) ComputeDiskPartitionInfo(ctx context.Context, devicePath string, layout types.HostDiskPartitionLayout) (*types.HostDiskPartitionInfo, error)
func (HostStorageSystem) RetrieveDiskPartitionInfo ¶ added in v0.3.0
func (s HostStorageSystem) RetrieveDiskPartitionInfo(ctx context.Context, devicePath string) (*types.HostDiskPartitionInfo, error)
func (HostStorageSystem) UpdateDiskPartitionInfo ¶ added in v0.3.0
func (s HostStorageSystem) UpdateDiskPartitionInfo(ctx context.Context, devicePath string, spec types.HostDiskPartitionSpec) error
type HostSystem ¶
func NewHostSystem ¶
func NewHostSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostSystem
func (HostSystem) ConfigManager ¶
func (h HostSystem) ConfigManager() *HostConfigManager
func (HostSystem) Disconnect ¶ added in v0.3.0
func (h HostSystem) Disconnect(ctx context.Context) (*Task, error)
func (HostSystem) EnterMaintenanceMode ¶ added in v0.3.0
func (h HostSystem) EnterMaintenanceMode(ctx context.Context, timeout int, evacuate bool, spec *types.HostMaintenanceSpec) (*Task, error)
func (HostSystem) ExitMaintenanceMode ¶ added in v0.3.0
func (HostSystem) ManagementIPs ¶
func (HostSystem) Reconnect ¶ added in v0.3.0
func (h HostSystem) Reconnect(ctx context.Context, cnxSpec *types.HostConnectSpec, reconnectSpec *types.HostSystemReconnectSpec) (*Task, error)
func (HostSystem) ResourcePool ¶
func (h HostSystem) ResourcePool(ctx context.Context) (*ResourcePool, error)
func (HostSystem) String ¶
func (h HostSystem) String() string
type HostVirtualNicManager ¶ added in v0.3.0
type HostVirtualNicManager struct { Common Host *HostSystem }
func NewHostVirtualNicManager ¶ added in v0.3.0
func NewHostVirtualNicManager(c *vim25.Client, ref types.ManagedObjectReference, host types.ManagedObjectReference) *HostVirtualNicManager
func (HostVirtualNicManager) DeselectVnic ¶ added in v0.3.0
func (HostVirtualNicManager) Info ¶ added in v0.3.0
func (m HostVirtualNicManager) Info(ctx context.Context) (*types.HostVirtualNicManagerInfo, error)
func (HostVirtualNicManager) SelectVnic ¶ added in v0.3.0
type HostVsanSystem ¶ added in v0.3.0
type HostVsanSystem struct {
Common
}
func NewHostVsanSystem ¶ added in v0.3.0
func NewHostVsanSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostVsanSystem
func (HostVsanSystem) Update ¶ added in v0.3.0
func (s HostVsanSystem) Update(ctx context.Context, config types.VsanHostConfigInfo) (*Task, error)
type HttpNfcLease ¶
type HttpNfcLease struct {
Common
}
func NewHttpNfcLease ¶
func NewHttpNfcLease(c *vim25.Client, ref types.ManagedObjectReference) *HttpNfcLease
func (HttpNfcLease) HttpNfcLeaseAbort ¶
func (o HttpNfcLease) HttpNfcLeaseAbort(ctx context.Context, fault *types.LocalizedMethodFault) error
HttpNfcLeaseAbort wraps methods.HttpNfcLeaseAbort
func (HttpNfcLease) HttpNfcLeaseComplete ¶
func (o HttpNfcLease) HttpNfcLeaseComplete(ctx context.Context) error
HttpNfcLeaseComplete wraps methods.HttpNfcLeaseComplete
func (HttpNfcLease) HttpNfcLeaseGetManifest ¶
func (o HttpNfcLease) HttpNfcLeaseGetManifest(ctx context.Context) error
HttpNfcLeaseGetManifest wraps methods.HttpNfcLeaseGetManifest
func (HttpNfcLease) HttpNfcLeaseProgress ¶
func (o HttpNfcLease) HttpNfcLeaseProgress(ctx context.Context, percent int) error
HttpNfcLeaseProgress wraps methods.HttpNfcLeaseProgress
func (HttpNfcLease) Wait ¶
func (o HttpNfcLease) Wait(ctx context.Context) (*types.HttpNfcLeaseInfo, error)
type Network ¶
func NewNetwork ¶
func NewNetwork(c *vim25.Client, ref types.ManagedObjectReference) *Network
func (Network) EthernetCardBackingInfo ¶
func (n Network) EthernetCardBackingInfo(_ context.Context) (types.BaseVirtualDeviceBackingInfo, error)
EthernetCardBackingInfo returns the VirtualDeviceBackingInfo for this Network
type NetworkReference ¶
type NetworkReference interface { Reference EthernetCardBackingInfo(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error) }
The NetworkReference interface is implemented by managed objects which can be used as the backing for a VirtualEthernetCard.
type OvfManager ¶
type OvfManager struct {
Common
}
func NewOvfManager ¶
func NewOvfManager(c *vim25.Client) *OvfManager
func (OvfManager) CreateDescriptor ¶
func (o OvfManager) CreateDescriptor(ctx context.Context, obj Reference, cdp types.OvfCreateDescriptorParams) (*types.OvfCreateDescriptorResult, error)
CreateDescriptor wraps methods.CreateDescriptor
func (OvfManager) CreateImportSpec ¶
func (o OvfManager) CreateImportSpec(ctx context.Context, ovfDescriptor string, resourcePool Reference, datastore Reference, cisp types.OvfCreateImportSpecParams) (*types.OvfCreateImportSpecResult, error)
CreateImportSpec wraps methods.CreateImportSpec
func (OvfManager) ParseDescriptor ¶
func (o OvfManager) ParseDescriptor(ctx context.Context, ovfDescriptor string, pdp types.OvfParseDescriptorParams) (*types.OvfParseDescriptorResult, error)
ParseDescriptor wraps methods.ParseDescriptor
func (OvfManager) ValidateHost ¶
func (o OvfManager) ValidateHost(ctx context.Context, ovfDescriptor string, host Reference, vhp types.OvfValidateHostParams) (*types.OvfValidateHostResult, error)
ValidateHost wraps methods.ValidateHost
type Reference ¶
type Reference interface {
Reference() types.ManagedObjectReference
}
func NewReference ¶
func NewReference(c *vim25.Client, e types.ManagedObjectReference) Reference
type ResourcePool ¶
func NewResourcePool ¶
func NewResourcePool(c *vim25.Client, ref types.ManagedObjectReference) *ResourcePool
func (ResourcePool) Create ¶
func (p ResourcePool) Create(ctx context.Context, name string, spec types.ResourceConfigSpec) (*ResourcePool, error)
func (ResourcePool) CreateVApp ¶
func (p ResourcePool) CreateVApp(ctx context.Context, name string, resSpec types.ResourceConfigSpec, configSpec types.VAppConfigSpec, folder *Folder) (*VirtualApp, error)
func (ResourcePool) DestroyChildren ¶
func (p ResourcePool) DestroyChildren(ctx context.Context) error
func (ResourcePool) ImportVApp ¶
func (p ResourcePool) ImportVApp(ctx context.Context, spec types.BaseImportSpec, folder *Folder, host *HostSystem) (*HttpNfcLease, error)
func (ResourcePool) String ¶
func (p ResourcePool) String() string
func (ResourcePool) UpdateConfig ¶
func (p ResourcePool) UpdateConfig(ctx context.Context, name string, config *types.ResourceConfigSpec) error
type SearchIndex ¶
type SearchIndex struct {
Common
}
func NewSearchIndex ¶
func NewSearchIndex(c *vim25.Client) *SearchIndex
func (SearchIndex) FindByDatastorePath ¶
func (s SearchIndex) FindByDatastorePath(ctx context.Context, dc *Datacenter, path string) (Reference, error)
FindByDatastorePath finds a virtual machine by its location on a datastore.
func (SearchIndex) FindByDnsName ¶
func (s SearchIndex) FindByDnsName(ctx context.Context, dc *Datacenter, dnsName string, vmSearch bool) (Reference, error)
FindByDnsName finds a virtual machine or host by DNS name.
func (SearchIndex) FindByInventoryPath ¶
FindByInventoryPath finds a managed entity based on its location in the inventory.
func (SearchIndex) FindByIp ¶
func (s SearchIndex) FindByIp(ctx context.Context, dc *Datacenter, ip string, vmSearch bool) (Reference, error)
FindByIp finds a virtual machine or host by IP address.
func (SearchIndex) FindByUuid ¶
func (s SearchIndex) FindByUuid(ctx context.Context, dc *Datacenter, uuid string, vmSearch bool, instanceUuid *bool) (Reference, error)
FindByUuid finds a virtual machine or host by UUID.
type StoragePod ¶
type StoragePod struct {
*Folder
}
type StorageResourceManager ¶
type StorageResourceManager struct {
Common
}
func NewStorageResourceManager ¶
func NewStorageResourceManager(c *vim25.Client) *StorageResourceManager
func (StorageResourceManager) ApplyStorageDrsRecommendation ¶
func (StorageResourceManager) ApplyStorageDrsRecommendationToPod ¶
func (sr StorageResourceManager) ApplyStorageDrsRecommendationToPod(ctx context.Context, pod *StoragePod, key string) (*Task, error)
func (StorageResourceManager) CancelStorageDrsRecommendation ¶
func (sr StorageResourceManager) CancelStorageDrsRecommendation(ctx context.Context, key []string) error
func (StorageResourceManager) ConfigureDatastoreIORM ¶
func (sr StorageResourceManager) ConfigureDatastoreIORM(ctx context.Context, datastore *Datastore, spec types.StorageIORMConfigSpec, key string) (*Task, error)
func (StorageResourceManager) ConfigureStorageDrsForPod ¶
func (sr StorageResourceManager) ConfigureStorageDrsForPod(ctx context.Context, pod *StoragePod, spec types.StorageDrsConfigSpec, modify bool) (*Task, error)
func (StorageResourceManager) QueryDatastorePerformanceSummary ¶
func (sr StorageResourceManager) QueryDatastorePerformanceSummary(ctx context.Context, datastore *Datastore) ([]types.StoragePerformanceSummary, error)
func (StorageResourceManager) QueryIORMConfigOption ¶
func (sr StorageResourceManager) QueryIORMConfigOption(ctx context.Context, host *HostSystem) (*types.StorageIORMConfigOption, error)
func (StorageResourceManager) RecommendDatastores ¶
func (sr StorageResourceManager) RecommendDatastores(ctx context.Context, storageSpec types.StoragePlacementSpec) (*types.StoragePlacementResult, error)
func (StorageResourceManager) RefreshStorageDrsRecommendation ¶
func (sr StorageResourceManager) RefreshStorageDrsRecommendation(ctx context.Context, pod *StoragePod) error
type Task ¶
type Task struct {
Common
}
Task is a convenience wrapper around task.Task that keeps a reference to the client that was used to create it. This allows users to call the Wait() function with only a context parameter, instead of a context parameter, a soap.RoundTripper, and reference to the root property collector.
type VirtualApp ¶
type VirtualApp struct {
*ResourcePool
}
func NewVirtualApp ¶
func NewVirtualApp(c *vim25.Client, ref types.ManagedObjectReference) *VirtualApp
func (VirtualApp) CreateChildVM_Task ¶
func (p VirtualApp) CreateChildVM_Task(ctx context.Context, config types.VirtualMachineConfigSpec, host *HostSystem) (*Task, error)
func (VirtualApp) PowerOffVApp_Task ¶
func (VirtualApp) PowerOnVApp_Task ¶
func (p VirtualApp) PowerOnVApp_Task(ctx context.Context) (*Task, error)
func (VirtualApp) String ¶
func (p VirtualApp) String() string
func (VirtualApp) SuspendVApp_Task ¶
func (p VirtualApp) SuspendVApp_Task(ctx context.Context) (*Task, error)
func (VirtualApp) UpdateVAppConfig ¶
func (p VirtualApp) UpdateVAppConfig(ctx context.Context, spec types.VAppConfigSpec) error
type VirtualDeviceList ¶
type VirtualDeviceList []types.BaseVirtualDevice
VirtualDeviceList provides helper methods for working with a list of virtual devices.
func EthernetCardTypes ¶
func EthernetCardTypes() VirtualDeviceList
EthernetCardTypes are used for adding a new ethernet card to a VM.
func SCSIControllerTypes ¶
func SCSIControllerTypes() VirtualDeviceList
SCSIControllerTypes are used for adding a new SCSI controller to a VM.
func (VirtualDeviceList) AssignController ¶
func (l VirtualDeviceList) AssignController(device types.BaseVirtualDevice, c types.BaseVirtualController)
AssignController assigns a device to a controller.
func (VirtualDeviceList) BootOrder ¶
func (l VirtualDeviceList) BootOrder(order []string) []types.BaseVirtualMachineBootOptionsBootableDevice
BootOrder returns a list of devices which can be used to set boot order via VirtualMachine.SetBootOptions. The order can any of "ethernet", "cdrom", "floppy" or "disk" or by specific device name.
func (VirtualDeviceList) ChildDisk ¶
func (l VirtualDeviceList) ChildDisk(parent *types.VirtualDisk) *types.VirtualDisk
ChildDisk creates a new VirtualDisk device, linked to the given parent disk, which can be added to a VM.
func (VirtualDeviceList) Connect ¶
func (l VirtualDeviceList) Connect(device types.BaseVirtualDevice) error
Connect changes the device to connected, returns an error if the device is not connectable.
func (VirtualDeviceList) ConnectSerialPort ¶
func (l VirtualDeviceList) ConnectSerialPort(device *types.VirtualSerialPort, uri string, client bool) *types.VirtualSerialPort
ConnectSerialPort connects a serial port to a server or client uri.
func (VirtualDeviceList) CreateCdrom ¶
func (l VirtualDeviceList) CreateCdrom(c *types.VirtualIDEController) (*types.VirtualCdrom, error)
CreateCdrom creates a new VirtualCdrom device which can be added to a VM.
func (VirtualDeviceList) CreateDisk ¶
func (l VirtualDeviceList) CreateDisk(c types.BaseVirtualController, name string) *types.VirtualDisk
CreateDisk creates a new VirtualDisk device which can be added to a VM.
func (VirtualDeviceList) CreateEthernetCard ¶
func (l VirtualDeviceList) CreateEthernetCard(name string, backing types.BaseVirtualDeviceBackingInfo) (types.BaseVirtualDevice, error)
CreateEthernetCard creates a new VirtualEthernetCard of the given name name and initialized with the given backing.
func (VirtualDeviceList) CreateFloppy ¶
func (l VirtualDeviceList) CreateFloppy() (*types.VirtualFloppy, error)
CreateFloppy creates a new VirtualFloppy device which can be added to a VM.
func (VirtualDeviceList) CreateSCSIController ¶
func (l VirtualDeviceList) CreateSCSIController(name string) (types.BaseVirtualDevice, error)
CreateSCSIController creates a new SCSI controller of type name if given, otherwise defaults to lsilogic.
func (VirtualDeviceList) CreateSerialPort ¶
func (l VirtualDeviceList) CreateSerialPort() (*types.VirtualSerialPort, error)
CreateSerialPort creates a new VirtualSerialPort device which can be added to a VM.
func (VirtualDeviceList) Disconnect ¶
func (l VirtualDeviceList) Disconnect(device types.BaseVirtualDevice) error
Disconnect changes the device to disconnected, returns an error if the device is not connectable.
func (VirtualDeviceList) DisconnectSerialPort ¶
func (l VirtualDeviceList) DisconnectSerialPort(device *types.VirtualSerialPort) *types.VirtualSerialPort
DisconnectSerialPort disconnects the serial port backing.
func (VirtualDeviceList) EjectImg ¶
func (l VirtualDeviceList) EjectImg(device *types.VirtualFloppy) *types.VirtualFloppy
EjectImg removes the img file based backing and replaces with the default floppy backing.
func (VirtualDeviceList) EjectIso ¶
func (l VirtualDeviceList) EjectIso(device *types.VirtualCdrom) *types.VirtualCdrom
EjectIso removes the iso file based backing and replaces with the default cdrom backing.
func (VirtualDeviceList) Find ¶
func (l VirtualDeviceList) Find(name string) types.BaseVirtualDevice
Find returns the device matching the given name.
func (VirtualDeviceList) FindByKey ¶
func (l VirtualDeviceList) FindByKey(key int) types.BaseVirtualDevice
FindByKey returns the device matching the given key.
func (VirtualDeviceList) FindCdrom ¶
func (l VirtualDeviceList) FindCdrom(name string) (*types.VirtualCdrom, error)
FindCdrom finds a cdrom device with the given name, defaulting to the first cdrom device if any.
func (VirtualDeviceList) FindDiskController ¶
func (l VirtualDeviceList) FindDiskController(name string) (types.BaseVirtualController, error)
FindDiskController will find an existing ide or scsi disk controller.
func (VirtualDeviceList) FindFloppy ¶
func (l VirtualDeviceList) FindFloppy(name string) (*types.VirtualFloppy, error)
FindFloppy finds a floppy device with the given name, defaulting to the first floppy device if any.
func (VirtualDeviceList) FindIDEController ¶
func (l VirtualDeviceList) FindIDEController(name string) (*types.VirtualIDEController, error)
FindIDEController will find the named IDE controller if given, otherwise will pick an available controller. An error is returned if the named controller is not found or not an IDE controller. Or, if name is not given and no available controller can be found.
func (VirtualDeviceList) FindSCSIController ¶
func (l VirtualDeviceList) FindSCSIController(name string) (*types.VirtualSCSIController, error)
FindSCSIController will find the named SCSI controller if given, otherwise will pick an available controller. An error is returned if the named controller is not found or not an SCSI controller. Or, if name is not given and no available controller can be found.
func (VirtualDeviceList) FindSerialPort ¶
func (l VirtualDeviceList) FindSerialPort(name string) (*types.VirtualSerialPort, error)
FindSerialPort finds a serial port device with the given name, defaulting to the first serial port device if any.
func (VirtualDeviceList) InsertImg ¶
func (l VirtualDeviceList) InsertImg(device *types.VirtualFloppy, img string) *types.VirtualFloppy
InsertImg changes the floppy device backing to use the given img file.
func (VirtualDeviceList) InsertIso ¶
func (l VirtualDeviceList) InsertIso(device *types.VirtualCdrom, iso string) *types.VirtualCdrom
InsertIso changes the cdrom device backing to use the given iso file.
func (VirtualDeviceList) Name ¶
func (l VirtualDeviceList) Name(device types.BaseVirtualDevice) string
Name returns a stable, human-readable name for the given device
func (VirtualDeviceList) PickController ¶
func (l VirtualDeviceList) PickController(kind types.BaseVirtualController) types.BaseVirtualController
PickController returns a controller of the given type(s). If no controllers are found or have no available slots, then nil is returned.
func (VirtualDeviceList) PrimaryMacAddress ¶
func (l VirtualDeviceList) PrimaryMacAddress() string
PrimaryMacAddress returns the MacAddress field of the primary VirtualEthernetCard
func (VirtualDeviceList) Select ¶
func (l VirtualDeviceList) Select(f func(device types.BaseVirtualDevice) bool) VirtualDeviceList
Select returns a new list containing all elements of the list for which the given func returns true.
func (VirtualDeviceList) SelectBootOrder ¶
func (l VirtualDeviceList) SelectBootOrder(order []types.BaseVirtualMachineBootOptionsBootableDevice) VirtualDeviceList
SelectBootOrder returns an ordered list of devices matching the given bootable device order
func (VirtualDeviceList) SelectByBackingInfo ¶
func (l VirtualDeviceList) SelectByBackingInfo(backing types.BaseVirtualDeviceBackingInfo) VirtualDeviceList
SelectByBackingInfo returns a new list with devices matching the given backing info. If the value of backing is nil, any device with a backing of the same type will be returned.
func (VirtualDeviceList) SelectByType ¶
func (l VirtualDeviceList) SelectByType(deviceType types.BaseVirtualDevice) VirtualDeviceList
SelectByType returns a new list with devices that are equal to or extend the given type.
func (VirtualDeviceList) Type ¶
func (l VirtualDeviceList) Type(device types.BaseVirtualDevice) string
Type returns a human-readable name for the given device
func (VirtualDeviceList) TypeName ¶
func (l VirtualDeviceList) TypeName(device types.BaseVirtualDevice) string
TypeName returns the vmodl type name of the device
type VirtualDiskManager ¶
type VirtualDiskManager struct {
Common
}
func NewVirtualDiskManager ¶
func NewVirtualDiskManager(c *vim25.Client) *VirtualDiskManager
func (VirtualDiskManager) CopyVirtualDisk ¶
func (m VirtualDiskManager) CopyVirtualDisk( ctx context.Context, sourceName string, sourceDatacenter *Datacenter, destName string, destDatacenter *Datacenter, destSpec *types.VirtualDiskSpec, force bool) (*Task, error)
CopyVirtualDisk copies a virtual disk, performing conversions as specified in the spec.
func (VirtualDiskManager) CreateVirtualDisk ¶
func (m VirtualDiskManager) CreateVirtualDisk( ctx context.Context, name string, datacenter *Datacenter, spec types.BaseVirtualDiskSpec) (*Task, error)
CreateVirtualDisk creates a new virtual disk.
func (VirtualDiskManager) DeleteVirtualDisk ¶
func (m VirtualDiskManager) DeleteVirtualDisk(ctx context.Context, name string, dc *Datacenter) (*Task, error)
DeleteVirtualDisk deletes a virtual disk.
func (VirtualDiskManager) MoveVirtualDisk ¶
func (m VirtualDiskManager) MoveVirtualDisk( ctx context.Context, sourceName string, sourceDatacenter *Datacenter, destName string, destDatacenter *Datacenter, force bool) (*Task, error)
MoveVirtualDisk moves a virtual disk.
type VirtualMachine ¶
func NewVirtualMachine ¶
func NewVirtualMachine(c *vim25.Client, ref types.ManagedObjectReference) *VirtualMachine
func (VirtualMachine) AddDevice ¶
func (v VirtualMachine) AddDevice(ctx context.Context, device ...types.BaseVirtualDevice) error
AddDevice adds the given devices to the VirtualMachine
func (VirtualMachine) Answer ¶
func (v VirtualMachine) Answer(ctx context.Context, id, answer string) error
Answer answers a pending question.
func (VirtualMachine) BootOptions ¶
func (v VirtualMachine) BootOptions(ctx context.Context) (*types.VirtualMachineBootOptions, error)
BootOptions returns the VirtualMachine's config.bootOptions property.
func (VirtualMachine) Clone ¶
func (v VirtualMachine) Clone(ctx context.Context, folder *Folder, name string, config types.VirtualMachineCloneSpec) (*Task, error)
func (VirtualMachine) CreateSnapshot ¶ added in v0.3.0
func (v VirtualMachine) CreateSnapshot(ctx context.Context, name string, description string, memory bool, quiesce bool) (*Task, error)
CreateSnapshot creates a new snapshot of a virtual machine.
func (VirtualMachine) Customize ¶ added in v0.3.0
func (v VirtualMachine) Customize(ctx context.Context, spec types.CustomizationSpec) (*Task, error)
func (VirtualMachine) Device ¶
func (v VirtualMachine) Device(ctx context.Context) (VirtualDeviceList, error)
Device returns the VirtualMachine's config.hardware.device property.
func (VirtualMachine) EditDevice ¶
func (v VirtualMachine) EditDevice(ctx context.Context, device ...types.BaseVirtualDevice) error
EditDevice edits the given (existing) devices on the VirtualMachine
func (VirtualMachine) HostSystem ¶
func (v VirtualMachine) HostSystem(ctx context.Context) (*HostSystem, error)
func (VirtualMachine) IsToolsRunning ¶
func (v VirtualMachine) IsToolsRunning(ctx context.Context) (bool, error)
IsToolsRunning returns true if VMware Tools is currently running in the guest OS, and false otherwise.
func (VirtualMachine) MarkAsTemplate ¶
func (v VirtualMachine) MarkAsTemplate(ctx context.Context) error
func (VirtualMachine) MarkAsVirtualMachine ¶
func (v VirtualMachine) MarkAsVirtualMachine(ctx context.Context, pool ResourcePool, host *HostSystem) error
func (VirtualMachine) PowerOff ¶
func (v VirtualMachine) PowerOff(ctx context.Context) (*Task, error)
func (VirtualMachine) PowerState ¶ added in v0.3.0
func (v VirtualMachine) PowerState(ctx context.Context) (types.VirtualMachinePowerState, error)
func (VirtualMachine) RebootGuest ¶
func (v VirtualMachine) RebootGuest(ctx context.Context) error
func (VirtualMachine) Reconfigure ¶
func (v VirtualMachine) Reconfigure(ctx context.Context, config types.VirtualMachineConfigSpec) (*Task, error)
func (VirtualMachine) Relocate ¶
func (v VirtualMachine) Relocate(ctx context.Context, config types.VirtualMachineRelocateSpec, priority types.VirtualMachineMovePriority) (*Task, error)
func (VirtualMachine) RemoveDevice ¶
func (v VirtualMachine) RemoveDevice(ctx context.Context, device ...types.BaseVirtualDevice) error
RemoveDevice removes the given devices on the VirtualMachine
func (VirtualMachine) ResourcePool ¶
func (v VirtualMachine) ResourcePool(ctx context.Context) (*ResourcePool, error)
func (VirtualMachine) SetBootOptions ¶
func (v VirtualMachine) SetBootOptions(ctx context.Context, options *types.VirtualMachineBootOptions) error
SetBootOptions reconfigures the VirtualMachine with the given options.
func (VirtualMachine) ShutdownGuest ¶
func (v VirtualMachine) ShutdownGuest(ctx context.Context) error
func (VirtualMachine) String ¶
func (v VirtualMachine) String() string
func (VirtualMachine) WaitForIP ¶
func (v VirtualMachine) WaitForIP(ctx context.Context) (string, error)
func (VirtualMachine) WaitForPowerState ¶
func (v VirtualMachine) WaitForPowerState(ctx context.Context, state types.VirtualMachinePowerState) error
Wait for the VirtualMachine to change to the desired power state.
type VmwareDistributedVirtualSwitch ¶
type VmwareDistributedVirtualSwitch struct {
DistributedVirtualSwitch
}
Source Files ¶
- authorization_manager.go
- cluster_compute_resource.go
- common.go
- compute_resource.go
- custom_fields_manager.go
- customization_spec_manager.go
- datacenter.go
- datastore.go
- diagnostic_manager.go
- distributed_virtual_portgroup.go
- distributed_virtual_switch.go
- extension_manager.go
- file_manager.go
- folder.go
- history_collector.go
- host_config_manager.go
- host_datastore_browser.go
- host_datastore_system.go
- host_firewall_system.go
- host_network_system.go
- host_storage_system.go
- host_system.go
- host_virtual_nic_manager.go
- host_vsan_system.go
- http_nfc_lease.go
- network.go
- network_reference.go
- ovf_manager.go
- resource_pool.go
- search_index.go
- storage_pod.go
- storage_resource_manager.go
- task.go
- types.go
- virtual_app.go
- virtual_device_list.go
- virtual_disk_manager.go
- virtual_machine.go
- vmware_distributed_virtual_switch.go