Documentation
¶
Index ¶
- func IsContain(items []string, item string) bool
- type IpAddr
- type VmWare
- func (vw *VmWare) CloneVM(TempName, Datacenter, Cluster, HostStr, Resources, Storage, VmName, ... string) (err error)
- func (vw *VmWare) CloneVMPlus(...) (err error)
- func (vw *VmWare) CreateVM()
- func (vw *VmWare) DestroyVM()
- func (vw *VmWare) GetAllCluster() (clusterList []structs.ClusterInfo, err error)
- func (vw *VmWare) GetAllDatacenter() (dataCenterList []structs.DataCenter, err error)
- func (vw *VmWare) GetAllDatastore() (datastoreList []structs.DatastoreSummary, err error)
- func (vw *VmWare) GetAllHost() (hostList []*structs.HostSummary, err error)
- func (vw *VmWare) GetAllNetwork() (networkList []map[string]string, err error)
- func (vw *VmWare) GetAllResourcePool() (resourceList []structs.ResourcePoolInfo, err error)
- func (vw *VmWare) GetAllVmClient() (vmList []structs.VirtualMachines, templateList []structs.TemplateInfo, ...)
- func (vw *VmWare) GetConfigData() (linuxResult map[string]map[string]string, err error)
- func (vw *VmWare) GetFolder() (folderList []structs.FolderInfo, err error)
- func (vw *VmWare) GetHostVm() (resVm map[string][]structs.VMS, err error)
- func (vw *VmWare) GetSourceData() (resultSource structs.SourceInfo)
- func (vw *VmWare) GetVMInterface() (interfaces [][]map[string]structs.InterfaceVM, err error)
- func (vw *VmWare) GetVMVersion() (version string, err error)
- func (vw *VmWare) GetVmIpData() (VmIpAddress map[string][]string, err error)
- func (vw *VmWare) MigrateVM()
- type VmWareHttp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VmWare ¶
func (*VmWare) CloneVMPlus ¶
func (vw *VmWare) CloneVMPlus(TempName, Datacenter, HostStr, Resources, Storage, VmName, SysHostName, cloneDoneVmPower, nicAddress, netMask, nicGateway string) (err error)
和CloneVM 可以整合为一个,这个是不需要集群,CloneVM是需要集群的克隆
func (*VmWare) GetAllCluster ¶
func (vw *VmWare) GetAllCluster() (clusterList []structs.ClusterInfo, err error)
func (*VmWare) GetAllDatacenter ¶
func (vw *VmWare) GetAllDatacenter() (dataCenterList []structs.DataCenter, err error)
func (*VmWare) GetAllDatastore ¶
func (vw *VmWare) GetAllDatastore() (datastoreList []structs.DatastoreSummary, err error)
func (*VmWare) GetAllHost ¶
func (vw *VmWare) GetAllHost() (hostList []*structs.HostSummary, err error)
func (*VmWare) GetAllNetwork ¶
func (*VmWare) GetAllResourcePool ¶
func (vw *VmWare) GetAllResourcePool() (resourceList []structs.ResourcePoolInfo, err error)
func (*VmWare) GetAllVmClient ¶
func (vw *VmWare) GetAllVmClient() (vmList []structs.VirtualMachines, templateList []structs.TemplateInfo, err error)
func (*VmWare) GetConfigData ¶
func (*VmWare) GetFolder ¶
func (vw *VmWare) GetFolder() (folderList []structs.FolderInfo, err error)
func (*VmWare) GetSourceData ¶
func (vw *VmWare) GetSourceData() (resultSource structs.SourceInfo)
func (*VmWare) GetVMInterface ¶
func (vw *VmWare) GetVMInterface() (interfaces [][]map[string]structs.InterfaceVM, err error)
func (*VmWare) GetVMVersion ¶
func (*VmWare) GetVmIpData ¶
type VmWareHttp ¶
func NewVmWareHttp ¶
func NewVmWareHttp(Ip, User, Pwd string) *VmWareHttp
func (*VmWareHttp) GetVmList ¶
func (vm *VmWareHttp) GetVmList()
Click to show internal directories.
Click to hide internal directories.