Versions in this module Expand all Collapse all v0 v0.16.0 Nov 8, 2017 Changes in this version + var DefaultUserGroup = []*types.UserSearchResult + var EvalLicense = types.LicenseManagerLicenseInfo + var Map = NewRegistry() + var Trace = false + func AddReference(ref types.ManagedObjectReference, refs []types.ManagedObjectReference) []types.ManagedObjectReference + func CreateDefaultESX(f *Folder) + func DisableRuleset(info *types.HostFirewallInfo, id string) bool + func EnableRuleset(info *types.HostFirewallInfo, id string) bool + func Fault(msg string, fault types.BaseMethodFault) *soap.Fault + func FindReference(refs []types.ManagedObjectReference, match ...types.ManagedObjectReference) *types.ManagedObjectReference + func NewAuthorizationManager(ref types.ManagedObjectReference) object.Reference + func NewCustomFieldsManager(ref types.ManagedObjectReference) object.Reference + func NewFileManager(ref types.ManagedObjectReference) object.Reference + func NewLicenseManager(ref types.ManagedObjectReference) object.Reference + func NewOptionManager(ref *types.ManagedObjectReference, setting []types.BaseOptionValue) object.Reference + func NewPerformanceManager(ref types.ManagedObjectReference) object.Reference + func NewPropertyCollector(ref types.ManagedObjectReference) object.Reference + func NewSearchIndex(ref types.ManagedObjectReference) object.Reference + func NewSessionManager(ref types.ManagedObjectReference) object.Reference + func NewTaskManager(ref types.ManagedObjectReference) object.Reference + func NewUserDirectory(ref types.ManagedObjectReference) object.Reference + func NewVAppConfigSpec() types.VAppConfigSpec + func NewViewManager(ref types.ManagedObjectReference) object.Reference + func NewVirtualDiskManager(ref types.ManagedObjectReference) object.Reference + func RemoveReference(ref types.ManagedObjectReference, refs []types.ManagedObjectReference) []types.ManagedObjectReference + func RenameTask(e mo.Entity, r *types.Rename_Task) soap.HasFault + type AuthorizationManager struct + func (m *AuthorizationManager) AddAuthorizationRole(req *types.AddAuthorizationRole) soap.HasFault + func (m *AuthorizationManager) RemoveAuthorizationRole(req *types.RemoveAuthorizationRole) soap.HasFault + func (m *AuthorizationManager) RemoveEntityPermission(req *types.RemoveEntityPermission) soap.HasFault + func (m *AuthorizationManager) RetrieveAllPermissions(req *types.RetrieveAllPermissions) soap.HasFault + func (m *AuthorizationManager) RetrieveEntityPermissions(req *types.RetrieveEntityPermissions) soap.HasFault + func (m *AuthorizationManager) RetrieveRolePermissions(req *types.RetrieveRolePermissions) soap.HasFault + func (m *AuthorizationManager) SetEntityPermissions(req *types.SetEntityPermissions) soap.HasFault + func (m *AuthorizationManager) UpdateAuthorizationRole(req *types.UpdateAuthorizationRole) soap.HasFault + type ClusterComputeResource struct + func CreateClusterComputeResource(f *Folder, name string, spec types.ClusterConfigSpecEx) (*ClusterComputeResource, types.BaseMethodFault) + func (c *ClusterComputeResource) AddHostTask(add *types.AddHost_Task) soap.HasFault + type ContainerView struct + func (v *ContainerView) DestroyView(c *types.DestroyView) soap.HasFault + type CustomFieldsManager struct + func (c *CustomFieldsManager) AddCustomFieldDef(req *types.AddCustomFieldDef) soap.HasFault + func (c *CustomFieldsManager) RemoveCustomFieldDef(req *types.RemoveCustomFieldDef) soap.HasFault + func (c *CustomFieldsManager) RenameCustomFieldDef(req *types.RenameCustomFieldDef) soap.HasFault + func (c *CustomFieldsManager) SetField(req *types.SetField) soap.HasFault + type Datastore struct + func (ds *Datastore) RefreshDatastore(*types.RefreshDatastore) soap.HasFault + type DistributedVirtualPortgroup struct + func (s *DistributedVirtualPortgroup) DestroyTask(req *types.Destroy_Task) soap.HasFault + func (s *DistributedVirtualPortgroup) ReconfigureDVPortgroupTask(req *types.ReconfigureDVPortgroup_Task) soap.HasFault + type DistributedVirtualSwitch struct + func (s *DistributedVirtualSwitch) AddDVPortgroupTask(c *types.AddDVPortgroup_Task) soap.HasFault + func (s *DistributedVirtualSwitch) DestroyTask(req *types.Destroy_Task) soap.HasFault + func (s *DistributedVirtualSwitch) FetchDVPorts(req *types.FetchDVPorts) soap.HasFault + func (s *DistributedVirtualSwitch) ReconfigureDvsTask(req *types.ReconfigureDvs_Task) soap.HasFault + type FileManager struct + func (f *FileManager) CopyDatastoreFileTask(req *types.CopyDatastoreFile_Task) soap.HasFault + func (f *FileManager) DeleteDatastoreFileTask(req *types.DeleteDatastoreFile_Task) soap.HasFault + func (f *FileManager) MakeDirectory(req *types.MakeDirectory) soap.HasFault + func (f *FileManager) MoveDatastoreFileTask(req *types.MoveDatastoreFile_Task) soap.HasFault + type Folder struct + func (f *Folder) AddStandaloneHostTask(a *types.AddStandaloneHost_Task) soap.HasFault + func (f *Folder) CreateClusterEx(c *types.CreateClusterEx) soap.HasFault + func (f *Folder) CreateDVSTask(req *types.CreateDVS_Task) soap.HasFault + func (f *Folder) CreateDatacenter(c *types.CreateDatacenter) soap.HasFault + func (f *Folder) CreateFolder(c *types.CreateFolder) soap.HasFault + func (f *Folder) CreateStoragePod(c *types.CreateStoragePod) soap.HasFault + func (f *Folder) CreateVMTask(c *types.CreateVM_Task) soap.HasFault + func (f *Folder) MoveIntoFolderTask(c *types.MoveIntoFolder_Task) soap.HasFault + func (f *Folder) RegisterVMTask(c *types.RegisterVM_Task) soap.HasFault + func (f *Folder) RenameTask(r *types.Rename_Task) soap.HasFault + type HostDatastoreBrowser struct + func (b *HostDatastoreBrowser) SearchDatastoreSubFoldersTask(s *types.SearchDatastoreSubFolders_Task) soap.HasFault + func (b *HostDatastoreBrowser) SearchDatastoreTask(s *types.SearchDatastore_Task) soap.HasFault + type HostDatastoreSystem struct + Host *mo.HostSystem + func (dss *HostDatastoreSystem) CreateLocalDatastore(c *types.CreateLocalDatastore) soap.HasFault + func (dss *HostDatastoreSystem) CreateNasDatastore(c *types.CreateNasDatastore) soap.HasFault + type HostFirewallSystem struct + func NewHostFirewallSystem(_ *mo.HostSystem) *HostFirewallSystem + func (s *HostFirewallSystem) DisableRuleset(req *types.DisableRuleset) soap.HasFault + func (s *HostFirewallSystem) EnableRuleset(req *types.EnableRuleset) soap.HasFault + type HostNetworkSystem struct + Host *mo.HostSystem + func NewHostNetworkSystem(host *mo.HostSystem) *HostNetworkSystem + func (s *HostNetworkSystem) AddPortGroup(c *types.AddPortGroup) soap.HasFault + func (s *HostNetworkSystem) AddVirtualSwitch(c *types.AddVirtualSwitch) soap.HasFault + func (s *HostNetworkSystem) RemovePortGroup(c *types.RemovePortGroup) soap.HasFault + func (s *HostNetworkSystem) RemoveVirtualSwitch(c *types.RemoveVirtualSwitch) soap.HasFault + func (s *HostNetworkSystem) UpdateNetworkConfig(req *types.UpdateNetworkConfig) soap.HasFault + type HostSystem struct + func CreateStandaloneHost(f *Folder, spec types.HostConnectSpec) (*HostSystem, types.BaseMethodFault) + func NewHostSystem(host mo.HostSystem) *HostSystem + func (h *HostSystem) EnterMaintenanceModeTask(spec *types.EnterMaintenanceMode_Task) soap.HasFault + func (h *HostSystem) ExitMaintenanceModeTask(spec *types.ExitMaintenanceMode_Task) soap.HasFault + type IpPool struct + func MustNewIpPool(config *types.IpPool) *IpPool + func NewIpPool(config *types.IpPool) (*IpPool, error) + func (p *IpPool) AllocateIPv4(allocation string) (string, error) + func (p *IpPool) AllocateIpv6(allocation string) (string, error) + func (p *IpPool) ReleaseIpv4(allocation string) error + func (p *IpPool) ReleaseIpv6(allocation string) error + type IpPoolManager struct + func NewIpPoolManager(ref types.ManagedObjectReference) *IpPoolManager + func (m *IpPoolManager) AllocateIpv4Address(req *types.AllocateIpv4Address) soap.HasFault + func (m *IpPoolManager) AllocateIpv6Address(req *types.AllocateIpv6Address) soap.HasFault + func (m *IpPoolManager) CreateIpPool(req *types.CreateIpPool) soap.HasFault + func (m *IpPoolManager) DestroyIpPool(req *types.DestroyIpPool) soap.HasFault + func (m *IpPoolManager) QueryIPAllocations(req *types.QueryIPAllocations) soap.HasFault + func (m *IpPoolManager) QueryIpPools(req *types.QueryIpPools) soap.HasFault + func (m *IpPoolManager) ReleaseIpAllocation(req *types.ReleaseIpAllocation) soap.HasFault + func (m *IpPoolManager) UpdateIpPool(req *types.UpdateIpPool) soap.HasFault + type LicenseAssignmentManager struct + func (m *LicenseAssignmentManager) QueryAssignedLicenses(req *types.QueryAssignedLicenses) soap.HasFault + type LicenseManager struct + func (m *LicenseManager) AddLicense(req *types.AddLicense) soap.HasFault + func (m *LicenseManager) RemoveLicense(req *types.RemoveLicense) soap.HasFault + type Method struct + Body types.AnyType + Name string + This types.ManagedObjectReference + func UnmarshalBody(data []byte) (*Method, error) + type Model struct + App int + Autostart bool + Cluster int + ClusterHost int + Datacenter int + Datastore int + Folder int + Host int + Machine int + Pod int + Pool int + Portgroup int + RootFolder mo.Folder + Service *Service + ServiceContent types.ServiceContent + func ESX() *Model + func VPX() *Model + func (m *Model) Count() Model + func (m *Model) Create() error + func (m *Model) Remove() + type OptionManager struct + func (m *OptionManager) QueryOptions(req *types.QueryOptions) soap.HasFault + type PerformanceManager struct + type PropertyCollector struct + func (pc *PropertyCollector) CancelWaitForUpdates(r *types.CancelWaitForUpdates) soap.HasFault + func (pc *PropertyCollector) CreateFilter(c *types.CreateFilter) soap.HasFault + func (pc *PropertyCollector) CreatePropertyCollector(c *types.CreatePropertyCollector) soap.HasFault + func (pc *PropertyCollector) DestroyPropertyCollector(c *types.DestroyPropertyCollector) soap.HasFault + func (pc *PropertyCollector) RetrieveProperties(r *types.RetrieveProperties) soap.HasFault + func (pc *PropertyCollector) RetrievePropertiesEx(r *types.RetrievePropertiesEx) soap.HasFault + func (pc *PropertyCollector) WaitForUpdates(r *types.WaitForUpdates) soap.HasFault + func (pc *PropertyCollector) WaitForUpdatesEx(r *types.WaitForUpdatesEx) soap.HasFault + type PropertyFilter struct + func (f *PropertyFilter) DestroyPropertyFilter(c *types.DestroyPropertyFilter) soap.HasFault + type RegisterObject interface + PutObject func(mo.Reference) + RemoveObject func(types.ManagedObjectReference) + type Registry struct + func NewRegistry() *Registry + func (r *Registry) AddHandler(h RegisterObject) + func (r *Registry) Any(kind string) mo.Entity + func (r *Registry) FileManager() *FileManager + func (r *Registry) FindByName(name string, refs []types.ManagedObjectReference) mo.Entity + func (r *Registry) Get(ref types.ManagedObjectReference) mo.Reference + func (r *Registry) IsESX() bool + func (r *Registry) IsVPX() bool + func (r *Registry) NewEntity(item mo.Entity) mo.Entity + func (r *Registry) Put(item mo.Reference) mo.Reference + func (r *Registry) PutEntity(parent mo.Entity, item mo.Entity) mo.Entity + func (r *Registry) Remove(item types.ManagedObjectReference) + func (r *Registry) SearchIndex() *SearchIndex + func (r *Registry) ViewManager() *ViewManager + func (r *Registry) VirtualDiskManager() *VirtualDiskManager + type ResourcePool struct + func NewResourcePool() *ResourcePool + func (p *ResourcePool) CreateResourcePool(c *types.CreateResourcePool) soap.HasFault + func (p *ResourcePool) CreateVApp(req *types.CreateVApp) soap.HasFault + func (p *ResourcePool) DestroyTask(req *types.Destroy_Task) soap.HasFault + func (p *ResourcePool) UpdateConfig(c *types.UpdateConfig) soap.HasFault + type SearchIndex struct + func (s *SearchIndex) FindByDatastorePath(r *types.FindByDatastorePath) soap.HasFault + func (s *SearchIndex) FindByInventoryPath(req *types.FindByInventoryPath) soap.HasFault + func (s *SearchIndex) FindByUuid(req *types.FindByUuid) soap.HasFault + func (s *SearchIndex) FindChild(req *types.FindChild) soap.HasFault + type Server struct + URL *url.URL + func (s *Server) Certificate() *x509.Certificate + func (s *Server) CertificateFile() (string, error) + func (s *Server) CertificateInfo() *object.HostCertificateInfo + func (s *Server) Close() + type Service struct + TLS *tls.Config + func New(instance *ServiceInstance) *Service + func (*Service) ServiceVersions(w http.ResponseWriter, r *http.Request) + func (s *Service) About(w http.ResponseWriter, r *http.Request) + func (s *Service) NewServer() *Server + func (s *Service) RoundTrip(ctx context.Context, request, response soap.HasFault) error + func (s *Service) ServeDatastore(w http.ResponseWriter, r *http.Request) + func (s *Service) ServeSDK(w http.ResponseWriter, r *http.Request) + type ServiceInstance struct + func NewServiceInstance(content types.ServiceContent, folder mo.Folder) *ServiceInstance + func (*ServiceInstance) CurrentTime(*types.CurrentTime) soap.HasFault + func (s *ServiceInstance) RetrieveServiceContent(*types.RetrieveServiceContent) soap.HasFault + type SessionManager struct + ServiceHostName string + func (s *SessionManager) AcquireGenericServiceTicket(ticket *types.AcquireGenericServiceTicket) soap.HasFault + func (s *SessionManager) Login(login *types.Login) soap.HasFault + func (s *SessionManager) Logout(*types.Logout) soap.HasFault + type StoragePod struct + func (p *StoragePod) MoveIntoFolderTask(c *types.MoveIntoFolder_Task) soap.HasFault + type Task struct + Execute func(*Task) (types.AnyType, types.BaseMethodFault) + func CreateTask(e mo.Reference, name string, ...) *Task + func NewTask(runner TaskRunner) *Task + func (t *Task) Run() types.ManagedObjectReference + type TaskManager struct + func (m *TaskManager) PutObject(obj mo.Reference) + func (m *TaskManager) RemoveObject(_ types.ManagedObjectReference) + type TaskRunner interface + Run func(*Task) (types.AnyType, types.BaseMethodFault) + type UserDirectory struct + func (u *UserDirectory) RetrieveUserGroups(req *types.RetrieveUserGroups) soap.HasFault + type ViewManager struct + func (m *ViewManager) CreateContainerView(req *types.CreateContainerView) soap.HasFault + type VirtualApp struct + func (a *VirtualApp) CreateChildVMTask(req *types.CreateChildVM_Task) soap.HasFault + func (a *VirtualApp) DestroyTask(req *types.Destroy_Task) soap.HasFault + type VirtualDiskManager struct + func (m *VirtualDiskManager) CopyVirtualDiskTask(req *types.CopyVirtualDisk_Task) soap.HasFault + func (m *VirtualDiskManager) CreateVirtualDiskTask(req *types.CreateVirtualDisk_Task) soap.HasFault + func (m *VirtualDiskManager) DeleteVirtualDiskTask(req *types.DeleteVirtualDisk_Task) soap.HasFault + func (m *VirtualDiskManager) MoveVirtualDiskTask(req *types.MoveVirtualDisk_Task) soap.HasFault + type VirtualMachine struct + func NewVirtualMachine(parent types.ManagedObjectReference, spec *types.VirtualMachineConfigSpec) (*VirtualMachine, types.BaseMethodFault) + func (vm *VirtualMachine) CloneVMTask(req *types.CloneVM_Task) soap.HasFault + func (vm *VirtualMachine) CreateSnapshotTask(req *types.CreateSnapshot_Task) soap.HasFault + func (vm *VirtualMachine) DestroyTask(req *types.Destroy_Task) soap.HasFault + func (vm *VirtualMachine) PowerOffVMTask(c *types.PowerOffVM_Task) soap.HasFault + func (vm *VirtualMachine) PowerOnVMTask(c *types.PowerOnVM_Task) soap.HasFault + func (vm *VirtualMachine) ReconfigVMTask(req *types.ReconfigVM_Task) soap.HasFault + func (vm *VirtualMachine) RelocateVMTask(req *types.RelocateVM_Task) soap.HasFault + func (vm *VirtualMachine) RemoveAllSnapshotsTask(req *types.RemoveAllSnapshots_Task) soap.HasFault + func (vm *VirtualMachine) RevertToCurrentSnapshotTask(req *types.RevertToCurrentSnapshot_Task) soap.HasFault + func (vm *VirtualMachine) ShutdownGuest(c *types.ShutdownGuest) soap.HasFault + func (vm *VirtualMachine) UnregisterVM(c *types.UnregisterVM) soap.HasFault + type VirtualMachineSnapshot struct + func (v *VirtualMachineSnapshot) RemoveSnapshotTask(req *types.RemoveSnapshot_Task) soap.HasFault + func (v *VirtualMachineSnapshot) RevertToSnapshotTask(req *types.RevertToSnapshot_Task) soap.HasFault