Versions in this module Expand all Collapse all v0 v0.0.1 Jun 6, 2024 Changes in this version + const DeviceTypeCdrom + const DeviceTypeDisk + const DeviceTypeEthernet + const DeviceTypeFloppy + const DeviceTypeNone + const PropConfigTemplate + const PropRuntimePowerState + var ErrKeyNameNotFound = errors.New("key name not found") + var ErrNotSupported = errors.New("product/version specific feature not supported by target") + func ReferenceFromString(s string) *types.ManagedObjectReference + func SnapshotSize(info types.ManagedObjectReference, parent *types.ManagedObjectReference, ...) int + type AuthorizationManager struct + func NewAuthorizationManager(c *vim25.Client) *AuthorizationManager + func (m AuthorizationManager) AddRole(ctx context.Context, name string, ids []string) (int32, error) + func (m AuthorizationManager) DisableMethods(ctx context.Context, entity []types.ManagedObjectReference, ...) error + func (m AuthorizationManager) EnableMethods(ctx context.Context, entity []types.ManagedObjectReference, method []string, ...) error + func (m AuthorizationManager) FetchUserPrivilegeOnEntities(ctx context.Context, entities []types.ManagedObjectReference, userName string) ([]types.UserPrivilegeResult, error) + func (m AuthorizationManager) HasPrivilegeOnEntity(ctx context.Context, entity types.ManagedObjectReference, sessionID string, ...) ([]bool, error) + func (m AuthorizationManager) HasUserPrivilegeOnEntities(ctx context.Context, entities []types.ManagedObjectReference, userName string, ...) ([]types.EntityPrivilege, error) + func (m AuthorizationManager) RemoveEntityPermission(ctx context.Context, entity types.ManagedObjectReference, user string, ...) error + func (m AuthorizationManager) RemoveRole(ctx context.Context, id int32, failIfUsed bool) error + func (m AuthorizationManager) RetrieveAllPermissions(ctx context.Context) ([]types.Permission, error) + func (m AuthorizationManager) RetrieveEntityPermissions(ctx context.Context, entity types.ManagedObjectReference, inherited bool) ([]types.Permission, error) + func (m AuthorizationManager) RetrieveRolePermissions(ctx context.Context, id int32) ([]types.Permission, error) + func (m AuthorizationManager) RoleList(ctx context.Context) (AuthorizationRoleList, error) + func (m AuthorizationManager) SetEntityPermissions(ctx context.Context, entity types.ManagedObjectReference, ...) error + func (m AuthorizationManager) UpdateRole(ctx context.Context, id int32, name string, ids []string) error + type AuthorizationRoleList []types.AuthorizationRole + func (l AuthorizationRoleList) ById(id int32) *types.AuthorizationRole + func (l AuthorizationRoleList) ByName(name string) *types.AuthorizationRole + type ClusterComputeResource struct + func NewClusterComputeResource(c *vim25.Client, ref types.ManagedObjectReference) *ClusterComputeResource + func (c ClusterComputeResource) AddHost(ctx context.Context, spec types.HostConnectSpec, asConnected bool, ...) (*Task, error) + func (c ClusterComputeResource) Configuration(ctx context.Context) (*types.ClusterConfigInfoEx, error) + func (c ClusterComputeResource) MoveInto(ctx context.Context, hosts ...*HostSystem) (*Task, error) + func (c ClusterComputeResource) PlaceVm(ctx context.Context, spec types.PlacementSpec) (*types.PlacementResult, error) + type Common struct + InventoryPath string + func NewCommon(c *vim25.Client, r types.ManagedObjectReference) Common + func (c *Common) SetInventoryPath(p string) + func (c Common) Client() *vim25.Client + func (c Common) Destroy(ctx context.Context) (*Task, error) + func (c Common) Name() string + func (c Common) ObjectName(ctx context.Context) (string, error) + func (c Common) Properties(ctx context.Context, r types.ManagedObjectReference, ps []string, ...) error + func (c Common) Reference() types.ManagedObjectReference + func (c Common) Rename(ctx context.Context, name string) (*Task, error) + func (c Common) SetCustomValue(ctx context.Context, key string, value string) error + func (c Common) String() string + type ComputeResource struct + func NewComputeResource(c *vim25.Client, ref types.ManagedObjectReference) *ComputeResource + func (c ComputeResource) Datastores(ctx context.Context) ([]*Datastore, error) + func (c ComputeResource) EnvironmentBrowser(ctx context.Context) (*EnvironmentBrowser, 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 CustomFieldDefList []types.CustomFieldDef + func (l CustomFieldDefList) ByKey(key int32) *types.CustomFieldDef + type CustomFieldsManager struct + func GetCustomFieldsManager(c *vim25.Client) (*CustomFieldsManager, error) + func NewCustomFieldsManager(c *vim25.Client) *CustomFieldsManager + func (m CustomFieldsManager) Add(ctx context.Context, name string, moType string, ...) (*types.CustomFieldDef, error) + func (m CustomFieldsManager) Field(ctx context.Context) (CustomFieldDefList, error) + func (m CustomFieldsManager) FindKey(ctx context.Context, name string) (int32, error) + func (m CustomFieldsManager) Remove(ctx context.Context, key int32) error + func (m CustomFieldsManager) Rename(ctx context.Context, key int32, name string) error + func (m CustomFieldsManager) Set(ctx context.Context, entity types.ManagedObjectReference, key int32, ...) error + type CustomizationSpecManager struct + func NewCustomizationSpecManager(c *vim25.Client) *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) Info(ctx context.Context) ([]types.CustomizationSpecInfo, 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 struct + func NewDatacenter(c *vim25.Client, ref types.ManagedObjectReference) *Datacenter + func (d *Datacenter) Folders(ctx context.Context) (*DatacenterFolders, error) + func (d Datacenter) Destroy(ctx context.Context) (*Task, error) + func (d Datacenter) PowerOnVM(ctx context.Context, vm []types.ManagedObjectReference, ...) (*Task, error) + type DatacenterFolders struct + DatastoreFolder *Folder + HostFolder *Folder + NetworkFolder *Folder + VmFolder *Folder + type Datastore struct + DatacenterPath string + func NewDatastore(c *vim25.Client, ref types.ManagedObjectReference) *Datastore + func (d *Datastore) FindInventoryPath(ctx context.Context) error + func (d Datastore) AttachedClusterHosts(ctx context.Context, cluster *ComputeResource) ([]*HostSystem, error) + func (d Datastore) AttachedHosts(ctx context.Context) ([]*HostSystem, error) + func (d Datastore) Browser(ctx context.Context) (*HostDatastoreBrowser, error) + func (d Datastore) Download(ctx context.Context, path string, param *soap.Download) (io.ReadCloser, int64, error) + func (d Datastore) DownloadFile(ctx context.Context, path string, file string, param *soap.Download) error + func (d Datastore) HostContext(ctx context.Context, host *HostSystem) context.Context + func (d Datastore) NewFileManager(dc *Datacenter, force bool) *DatastoreFileManager + func (d Datastore) NewURL(path string) *url.URL + func (d Datastore) Open(ctx context.Context, name string) (*DatastoreFile, error) + 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) Type(ctx context.Context) (types.HostFileSystemVolumeFileSystemType, 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 DatastoreFile struct + func (f *DatastoreFile) Close() error + func (f *DatastoreFile) Follow(interval time.Duration) io.ReadCloser + func (f *DatastoreFile) Read(b []byte) (int, error) + func (f *DatastoreFile) Seek(offset int64, whence int) (int64, error) + func (f *DatastoreFile) Stat() (os.FileInfo, error) + func (f *DatastoreFile) Tail(n int) error + func (f *DatastoreFile) TailFunc(lines int, include func(line int, message string) bool) error + type DatastoreFileManager struct + Datacenter *Datacenter + DatacenterTarget *Datacenter + Datastore *Datastore + FileManager *FileManager + Force bool + VirtualDiskManager *VirtualDiskManager + func (m *DatastoreFileManager) Copy(ctx context.Context, src string, dst string) error + func (m *DatastoreFileManager) CopyFile(ctx context.Context, src string, dst string) error + func (m *DatastoreFileManager) Delete(ctx context.Context, name string) error + func (m *DatastoreFileManager) DeleteFile(ctx context.Context, name string) error + func (m *DatastoreFileManager) DeleteVirtualDisk(ctx context.Context, name string) error + func (m *DatastoreFileManager) Move(ctx context.Context, src string, dst string) error + func (m *DatastoreFileManager) MoveFile(ctx context.Context, src string, dst string) error + func (m *DatastoreFileManager) Path(name string) *DatastorePath + func (m *DatastoreFileManager) WithProgress(ctx context.Context, s progress.Sinker) context.Context + type DatastoreNamespaceManager struct + func NewDatastoreNamespaceManager(c *vim25.Client) *DatastoreNamespaceManager + func (nm DatastoreNamespaceManager) CreateDirectory(ctx context.Context, ds *Datastore, displayName string, policy string) (string, error) + func (nm DatastoreNamespaceManager) DeleteDirectory(ctx context.Context, dc *Datacenter, datastorePath string) error + type DatastoreNoSuchDirectoryError struct + func (e DatastoreNoSuchDirectoryError) Error() string + type DatastoreNoSuchFileError struct + func (e DatastoreNoSuchFileError) Error() string + type DatastorePath struct + Datastore string + Path string + func (p *DatastorePath) FromString(s string) bool + func (p *DatastorePath) IsVMDK() bool + func (p *DatastorePath) String() string + type DiagnosticLog struct + Host *HostSystem + Key string + Start int32 + func (l *DiagnosticLog) Copy(ctx context.Context, w io.Writer) (int, error) + func (l *DiagnosticLog) Seek(ctx context.Context, nlines int32) error + type DiagnosticManager struct + func NewDiagnosticManager(c *vim25.Client) *DiagnosticManager + func (m DiagnosticManager) BrowseLog(ctx context.Context, host *HostSystem, key string, start, lines int32) (*types.DiagnosticManagerLogHeader, error) + func (m DiagnosticManager) GenerateLogBundles(ctx context.Context, includeDefault bool, host []*HostSystem) (*Task, error) + func (m DiagnosticManager) Log(ctx context.Context, host *HostSystem, key string) *DiagnosticLog + func (m DiagnosticManager) QueryDescriptions(ctx context.Context, host *HostSystem) ([]types.DiagnosticManagerLogDescriptor, error) + type DisabledMethodRequest struct + Method string + Reason string + type DistributedVirtualPortgroup struct + func NewDistributedVirtualPortgroup(c *vim25.Client, ref types.ManagedObjectReference) *DistributedVirtualPortgroup + func (p DistributedVirtualPortgroup) EthernetCardBackingInfo(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error) + func (p DistributedVirtualPortgroup) GetInventoryPath() string + func (p DistributedVirtualPortgroup) Reconfigure(ctx context.Context, spec types.DVPortgroupConfigSpec) (*Task, error) + type DistributedVirtualSwitch struct + func NewDistributedVirtualSwitch(c *vim25.Client, ref types.ManagedObjectReference) *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) FetchDVPorts(ctx context.Context, criteria *types.DistributedVirtualSwitchPortCriteria) ([]types.DistributedVirtualPort, error) + func (s DistributedVirtualSwitch) GetInventoryPath() string + func (s DistributedVirtualSwitch) Reconfigure(ctx context.Context, spec types.BaseDVSConfigSpec) (*Task, error) + func (s DistributedVirtualSwitch) ReconfigureDVPort(ctx context.Context, spec []types.DVPortConfigSpec) (*Task, error) + func (s DistributedVirtualSwitch) ReconfigureLACP(ctx context.Context, spec []types.VMwareDvsLacpGroupSpec) (*Task, error) + type EnvironmentBrowser struct + func NewEnvironmentBrowser(c *vim25.Client, ref types.ManagedObjectReference) *EnvironmentBrowser + func (b EnvironmentBrowser) QueryConfigOption(ctx context.Context, spec *types.EnvironmentBrowserConfigOptionQuerySpec) (*types.VirtualMachineConfigOption, error) + func (b EnvironmentBrowser) QueryConfigOptionDescriptor(ctx context.Context) ([]types.VirtualMachineConfigOptionDescriptor, error) + func (b EnvironmentBrowser) QueryConfigTarget(ctx context.Context, host *HostSystem) (*types.ConfigTarget, error) + func (b EnvironmentBrowser) QueryTargetCapabilities(ctx context.Context, host *HostSystem) (*types.HostCapability, error) + type ExtensionManager struct + func GetExtensionManager(c *vim25.Client) (*ExtensionManager, error) + func NewExtensionManager(c *vim25.Client) *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 struct + func NewFileManager(c *vim25.Client) *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 struct + func NewFolder(c *vim25.Client, ref types.ManagedObjectReference) *Folder + func NewRootFolder(c *vim25.Client) *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) CreateStoragePod(ctx context.Context, name string) (*StoragePod, error) + func (f Folder) CreateVM(ctx context.Context, config types.VirtualMachineConfigSpec, pool *ResourcePool, ...) (*Task, error) + func (f Folder) MoveInto(ctx context.Context, list []types.ManagedObjectReference) (*Task, error) + func (f Folder) PlaceVmsXCluster(ctx context.Context, spec types.PlaceVmsXClusterSpec) (*types.PlaceVmsXClusterResult, error) + func (f Folder) RegisterVM(ctx context.Context, path string, name string, asTemplate bool, ...) (*Task, error) + type HostAccountManager struct + func NewHostAccountManager(c *vim25.Client, ref types.ManagedObjectReference) *HostAccountManager + func (m HostAccountManager) Create(ctx context.Context, user *types.HostAccountSpec) error + func (m HostAccountManager) Remove(ctx context.Context, userName string) error + func (m HostAccountManager) Update(ctx context.Context, user *types.HostAccountSpec) error + type HostCertificateInfo struct + Certificate *x509.Certificate + Err error + ThumbprintSHA1 string + ThumbprintSHA256 string + func (info *HostCertificateInfo) FromCertificate(cert *x509.Certificate) *HostCertificateInfo + func (info *HostCertificateInfo) FromURL(u *url.URL, config *tls.Config) error + func (info *HostCertificateInfo) IssuerName() *pkix.Name + func (info *HostCertificateInfo) SubjectName() *pkix.Name + func (info *HostCertificateInfo) Write(w io.Writer) error + type HostCertificateManager struct + Host *HostSystem + func NewHostCertificateManager(c *vim25.Client, ref types.ManagedObjectReference, ...) *HostCertificateManager + func (m HostCertificateManager) CertificateInfo(ctx context.Context) (*HostCertificateInfo, error) + func (m HostCertificateManager) GenerateCertificateSigningRequest(ctx context.Context, useIPAddressAsCommonName bool) (string, error) + func (m HostCertificateManager) GenerateCertificateSigningRequestByDn(ctx context.Context, distinguishedName string) (string, error) + func (m HostCertificateManager) InstallServerCertificate(ctx context.Context, cert string) error + func (m HostCertificateManager) ListCACertificateRevocationLists(ctx context.Context) ([]string, error) + func (m HostCertificateManager) ListCACertificates(ctx context.Context) ([]string, error) + func (m HostCertificateManager) ReplaceCACertificatesAndCRLs(ctx context.Context, caCert []string, caCrl []string) error + type HostConfigManager struct + func NewHostConfigManager(c *vim25.Client, ref types.ManagedObjectReference) *HostConfigManager + func (m HostConfigManager) AccountManager(ctx context.Context) (*HostAccountManager, error) + func (m HostConfigManager) CertificateManager(ctx context.Context) (*HostCertificateManager, error) + func (m HostConfigManager) DatastoreSystem(ctx context.Context) (*HostDatastoreSystem, error) + func (m HostConfigManager) DateTimeSystem(ctx context.Context) (*HostDateTimeSystem, error) + func (m HostConfigManager) FirewallSystem(ctx context.Context) (*HostFirewallSystem, error) + func (m HostConfigManager) NetworkSystem(ctx context.Context) (*HostNetworkSystem, error) + func (m HostConfigManager) OptionManager(ctx context.Context) (*OptionManager, error) + func (m HostConfigManager) ServiceSystem(ctx context.Context) (*HostServiceSystem, error) + func (m HostConfigManager) StorageSystem(ctx context.Context) (*HostStorageSystem, error) + func (m HostConfigManager) VirtualNicManager(ctx context.Context) (*HostVirtualNicManager, error) + func (m HostConfigManager) VsanInternalSystem(ctx context.Context) (*HostVsanInternalSystem, error) + func (m HostConfigManager) VsanSystem(ctx context.Context) (*HostVsanSystem, error) + type HostDatastoreBrowser struct + func NewHostDatastoreBrowser(c *vim25.Client, ref types.ManagedObjectReference) *HostDatastoreBrowser + func (b HostDatastoreBrowser) SearchDatastore(ctx context.Context, datastorePath string, ...) (*Task, error) + func (b HostDatastoreBrowser) SearchDatastoreSubFolders(ctx context.Context, datastorePath string, ...) (*Task, error) + type HostDatastoreSystem struct + func NewHostDatastoreSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostDatastoreSystem + func (s HostDatastoreSystem) CreateLocalDatastore(ctx context.Context, name string, path string) (*Datastore, error) + 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 + func (s HostDatastoreSystem) ResignatureUnresolvedVmfsVolumes(ctx context.Context, devicePaths []string) (*Task, error) + type HostDateTimeSystem struct + func NewHostDateTimeSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostDateTimeSystem + func (s HostDateTimeSystem) Query(ctx context.Context) (*time.Time, error) + func (s HostDateTimeSystem) Update(ctx context.Context, date time.Time) error + func (s HostDateTimeSystem) UpdateConfig(ctx context.Context, config types.HostDateTimeConfig) error + type HostFirewallRulesetList []types.HostFirewallRuleset + 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 struct + func NewHostFirewallSystem(c *vim25.Client, ref types.ManagedObjectReference) *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 struct + func NewHostNetworkSystem(c *vim25.Client, ref types.ManagedObjectReference) *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) ([]types.PhysicalNicHintInfo, 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 HostServiceSystem struct + func NewHostServiceSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostServiceSystem + func (s HostServiceSystem) Restart(ctx context.Context, id string) error + func (s HostServiceSystem) Service(ctx context.Context) ([]types.HostService, error) + func (s HostServiceSystem) Start(ctx context.Context, id string) error + func (s HostServiceSystem) Stop(ctx context.Context, id string) error + func (s HostServiceSystem) UpdatePolicy(ctx context.Context, id string, policy string) error + type HostStorageSystem struct + func NewHostStorageSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostStorageSystem + func (s HostStorageSystem) AttachScsiLun(ctx context.Context, uuid string) error + func (s HostStorageSystem) ComputeDiskPartitionInfo(ctx context.Context, devicePath string, layout types.HostDiskPartitionLayout) (*types.HostDiskPartitionInfo, error) + func (s HostStorageSystem) MarkAsLocal(ctx context.Context, uuid string) (*Task, error) + func (s HostStorageSystem) MarkAsNonLocal(ctx context.Context, uuid string) (*Task, error) + func (s HostStorageSystem) MarkAsNonSsd(ctx context.Context, uuid string) (*Task, error) + func (s HostStorageSystem) MarkAsSsd(ctx context.Context, uuid string) (*Task, error) + func (s HostStorageSystem) QueryUnresolvedVmfsVolumes(ctx context.Context) ([]types.HostUnresolvedVmfsVolume, error) + func (s HostStorageSystem) Refresh(ctx context.Context) error + func (s HostStorageSystem) RescanAllHba(ctx context.Context) error + func (s HostStorageSystem) RescanVmfs(ctx context.Context) error + func (s HostStorageSystem) RetrieveDiskPartitionInfo(ctx context.Context, devicePath string) (*types.HostDiskPartitionInfo, error) + func (s HostStorageSystem) UnmountVmfsVolume(ctx context.Context, vmfsUuid string) error + func (s HostStorageSystem) UpdateDiskPartitionInfo(ctx context.Context, devicePath string, spec types.HostDiskPartitionSpec) error + type HostSystem struct + func NewHostSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostSystem + func (h HostSystem) ConfigManager() *HostConfigManager + func (h HostSystem) Disconnect(ctx context.Context) (*Task, error) + func (h HostSystem) EnterMaintenanceMode(ctx context.Context, timeout int32, evacuate bool, ...) (*Task, error) + func (h HostSystem) ExitMaintenanceMode(ctx context.Context, timeout int32) (*Task, error) + func (h HostSystem) ManagementIPs(ctx context.Context) ([]net.IP, error) + func (h HostSystem) Reconnect(ctx context.Context, cnxSpec *types.HostConnectSpec, ...) (*Task, error) + func (h HostSystem) ResourcePool(ctx context.Context) (*ResourcePool, error) + type HostVirtualNicManager struct + Host *HostSystem + func NewHostVirtualNicManager(c *vim25.Client, ref types.ManagedObjectReference, ...) *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 HostVsanInternalSystem struct + func NewHostVsanInternalSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostVsanInternalSystem + func (m HostVsanInternalSystem) DeleteVsanObjects(ctx context.Context, uuids []string, force *bool) ([]types.HostVsanInternalSystemDeleteVsanObjectsResult, error) + func (m HostVsanInternalSystem) GetVsanObjExtAttrs(ctx context.Context, uuids []string) (map[string]VsanObjExtAttrs, error) + func (m HostVsanInternalSystem) QueryVsanObjectUuidsByFilter(ctx context.Context, uuids []string, limit int32, version int32) ([]string, error) + type HostVsanSystem struct + func NewHostVsanSystem(c *vim25.Client, ref types.ManagedObjectReference) *HostVsanSystem + func (s HostVsanSystem) Update(ctx context.Context, config types.VsanHostConfigInfo) (*Task, error) + type Network struct + func NewNetwork(c *vim25.Client, ref types.ManagedObjectReference) *Network + func (n Network) EthernetCardBackingInfo(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error) + func (n Network) GetInventoryPath() string + type NetworkReference interface + EthernetCardBackingInfo func(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error) + GetInventoryPath func() string + type OpaqueNetwork struct + func NewOpaqueNetwork(c *vim25.Client, ref types.ManagedObjectReference) *OpaqueNetwork + func (n OpaqueNetwork) EthernetCardBackingInfo(ctx context.Context) (types.BaseVirtualDeviceBackingInfo, error) + func (n OpaqueNetwork) GetInventoryPath() string + func (n OpaqueNetwork) Summary(ctx context.Context) (*types.OpaqueNetworkSummary, error) + type OptionManager struct + func NewOptionManager(c *vim25.Client, ref types.ManagedObjectReference) *OptionManager + func (m OptionManager) Query(ctx context.Context, name string) ([]types.BaseOptionValue, error) + func (m OptionManager) Update(ctx context.Context, value []types.BaseOptionValue) error + type Reference interface + Reference func() types.ManagedObjectReference + func NewReference(c *vim25.Client, e types.ManagedObjectReference) Reference + type ResourcePool struct + func NewResourcePool(c *vim25.Client, ref types.ManagedObjectReference) *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, ...) (*nfc.Lease, error) + func (p ResourcePool) Owner(ctx context.Context) (Reference, error) + func (p ResourcePool) UpdateConfig(ctx context.Context, name string, config *types.ResourceConfigSpec) error + type SearchIndex struct + func NewSearchIndex(c *vim25.Client) *SearchIndex + func (s SearchIndex) FindAllByDnsName(ctx context.Context, dc *Datacenter, dnsName string, vmSearch bool) ([]Reference, error) + func (s SearchIndex) FindAllByIp(ctx context.Context, dc *Datacenter, ip string, vmSearch bool) ([]Reference, error) + func (s SearchIndex) FindAllByUuid(ctx context.Context, dc *Datacenter, uuid string, vmSearch bool, ...) ([]Reference, error) + 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 struct + func NewStoragePod(c *vim25.Client, ref types.ManagedObjectReference) *StoragePod + type StorageResourceManager struct + func NewStorageResourceManager(c *vim25.Client) *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 struct + func NewTask(c *vim25.Client, ref types.ManagedObjectReference) *Task + func (t *Task) Cancel(ctx context.Context) error + func (t *Task) SetDescription(ctx context.Context, description types.LocalizableMessage) error + func (t *Task) SetState(ctx context.Context, state types.TaskInfoState, result types.AnyType, ...) error + func (t *Task) UpdateProgress(ctx context.Context, percentDone int) error + func (t *Task) Wait(ctx context.Context) error + func (t *Task) WaitEx(ctx context.Context) error + func (t *Task) WaitForResult(ctx context.Context, s ...progress.Sinker) (taskInfo *types.TaskInfo, result error) + func (t *Task) WaitForResultEx(ctx context.Context, s ...progress.Sinker) (*types.TaskInfo, error) + type TenantManager struct + func NewTenantManager(c *vim25.Client) *TenantManager + func (t TenantManager) MarkServiceProviderEntities(ctx context.Context, entities []types.ManagedObjectReference) error + func (t TenantManager) RetrieveServiceProviderEntities(ctx context.Context) ([]types.ManagedObjectReference, error) + func (t TenantManager) UnmarkServiceProviderEntities(ctx context.Context, entities []types.ManagedObjectReference) error + type VirtualApp struct + func NewVirtualApp(c *vim25.Client, ref types.ManagedObjectReference) *VirtualApp + func (p VirtualApp) Clone(ctx context.Context, name string, target types.ManagedObjectReference, ...) (*Task, error) + func (p VirtualApp) CreateChildVM(ctx context.Context, config types.VirtualMachineConfigSpec, host *HostSystem) (*Task, error) + func (p VirtualApp) PowerOff(ctx context.Context, force bool) (*Task, error) + func (p VirtualApp) PowerOn(ctx context.Context) (*Task, error) + func (p VirtualApp) Suspend(ctx context.Context) (*Task, error) + func (p VirtualApp) UpdateConfig(ctx context.Context, spec types.VAppConfigSpec) error + type VirtualDeviceList []types.BaseVirtualDevice + func EthernetCardTypes() VirtualDeviceList + func SCSIControllerTypes() 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) ConfigSpec(op types.VirtualDeviceConfigSpecOperation) ([]types.BaseVirtualDeviceConfigSpec, error) + func (l VirtualDeviceList) Connect(device types.BaseVirtualDevice) error + func (l VirtualDeviceList) ConnectSerialPort(device *types.VirtualSerialPort, uri string, client bool, proxyuri string) *types.VirtualSerialPort + func (l VirtualDeviceList) CreateCdrom(c *types.VirtualIDEController) (*types.VirtualCdrom, error) + func (l VirtualDeviceList) CreateDisk(c types.BaseVirtualController, ds types.ManagedObjectReference, 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) CreateIDEController() (types.BaseVirtualDevice, error) + func (l VirtualDeviceList) CreateNVMEController() (types.BaseVirtualDevice, 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 int32) 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) FindNVMEController(name string) (*types.VirtualNVMEController, 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) NewKey() int32 + 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 VirtualDiskInfo struct + DiskType string + Name string + Parent string + type VirtualDiskManager struct + func NewVirtualDiskManager(c *vim25.Client) *VirtualDiskManager + func (m VirtualDiskManager) CopyVirtualDisk(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, ...) (*Task, error) + func (m VirtualDiskManager) CreateChildDisk(ctx context.Context, parent string, pdc *Datacenter, name string, ...) (*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) InflateVirtualDisk(ctx context.Context, name string, dc *Datacenter) (*Task, error) + func (m VirtualDiskManager) MoveVirtualDisk(ctx context.Context, sourceName string, sourceDatacenter *Datacenter, ...) (*Task, error) + func (m VirtualDiskManager) QueryVirtualDiskInfo(ctx context.Context, name string, dc *Datacenter, includeParents bool) ([]VirtualDiskInfo, error) + func (m VirtualDiskManager) QueryVirtualDiskUuid(ctx context.Context, name string, dc *Datacenter) (string, error) + func (m VirtualDiskManager) SetVirtualDiskUuid(ctx context.Context, name string, dc *Datacenter, uuid string) error + func (m VirtualDiskManager) ShrinkVirtualDisk(ctx context.Context, name string, dc *Datacenter, copy *bool) (*Task, error) + type VirtualMachine struct + func NewVirtualMachine(c *vim25.Client, ref types.ManagedObjectReference) *VirtualMachine + func (v *VirtualMachine) ExportSnapshot(ctx context.Context, snapshot *types.ManagedObjectReference) (*nfc.Lease, error) + func (v VirtualMachine) AcquireTicket(ctx context.Context, kind string) (*types.VirtualMachineTicket, error) + 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) AttachDisk(ctx context.Context, id string, datastore *Datastore, controllerKey int32, ...) 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) DetachDisk(ctx context.Context, id string) error + func (v VirtualMachine) Device(ctx context.Context) (VirtualDeviceList, error) + func (v VirtualMachine) EditDevice(ctx context.Context, device ...types.BaseVirtualDevice) error + func (v VirtualMachine) EnvironmentBrowser(ctx context.Context) (*EnvironmentBrowser, error) + func (v VirtualMachine) Export(ctx context.Context) (*nfc.Lease, error) + func (v VirtualMachine) FindSnapshot(ctx context.Context, name string) (*types.ManagedObjectReference, error) + func (v VirtualMachine) HostSystem(ctx context.Context) (*HostSystem, error) + func (v VirtualMachine) InstantClone(ctx context.Context, config types.VirtualMachineInstantCloneSpec) (*Task, error) + func (v VirtualMachine) IsTemplate(ctx context.Context) (bool, 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) Migrate(ctx context.Context, pool *ResourcePool, host *HostSystem, ...) (*Task, error) + func (v VirtualMachine) MountToolsInstaller(ctx context.Context) 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) PutUsbScanCodes(ctx context.Context, spec types.UsbScanCodeSpec) (int32, error) + func (v VirtualMachine) QueryChangedDiskAreas(ctx context.Context, baseSnapshot, curSnapshot *types.ManagedObjectReference, ...) (types.DiskChangeInfo, error) + func (v VirtualMachine) RebootGuest(ctx context.Context) error + func (v VirtualMachine) Reconfigure(ctx context.Context, config types.VirtualMachineConfigSpec) (*Task, error) + func (v VirtualMachine) RefreshStorageInfo(ctx context.Context) error + func (v VirtualMachine) Relocate(ctx context.Context, config types.VirtualMachineRelocateSpec, ...) (*Task, error) + func (v VirtualMachine) RemoveAllSnapshot(ctx context.Context, consolidate *bool) (*Task, error) + func (v VirtualMachine) RemoveDevice(ctx context.Context, keepFiles bool, device ...types.BaseVirtualDevice) error + func (v VirtualMachine) RemoveSnapshot(ctx context.Context, name string, removeChildren bool, consolidate *bool) (*Task, error) + func (v VirtualMachine) Reset(ctx context.Context) (*Task, error) + func (v VirtualMachine) ResourcePool(ctx context.Context) (*ResourcePool, error) + func (v VirtualMachine) RevertToCurrentSnapshot(ctx context.Context, suppressPowerOn bool) (*Task, error) + func (v VirtualMachine) RevertToSnapshot(ctx context.Context, name string, suppressPowerOn bool) (*Task, error) + func (v VirtualMachine) SetBootOptions(ctx context.Context, options *types.VirtualMachineBootOptions) error + func (v VirtualMachine) ShutdownGuest(ctx context.Context) error + func (v VirtualMachine) StandbyGuest(ctx context.Context) error + func (v VirtualMachine) Suspend(ctx context.Context) (*Task, error) + func (v VirtualMachine) UUID(ctx context.Context) string + func (v VirtualMachine) UnmountToolsInstaller(ctx context.Context) error + func (v VirtualMachine) Unregister(ctx context.Context) error + func (v VirtualMachine) UpgradeTools(ctx context.Context, options string) (*Task, error) + func (v VirtualMachine) UpgradeVM(ctx context.Context, version string) (*Task, error) + func (v VirtualMachine) WaitForIP(ctx context.Context, v4 ...bool) (string, error) + func (v VirtualMachine) WaitForNetIP(ctx context.Context, v4 bool, device ...string) (map[string][]string, error) + func (v VirtualMachine) WaitForPowerState(ctx context.Context, state types.VirtualMachinePowerState) error + type VmwareDistributedVirtualSwitch struct + func (s VmwareDistributedVirtualSwitch) GetInventoryPath() string + type VsanObjExtAttrs struct + Class string + Name string + Path string + Size string + Type string + func (a *VsanObjExtAttrs) DatastorePath(dir string) string