Documentation ¶
Index ¶
- Variables
- func AddVmToVapp(ctx context.Context, r restful.RestAPITripper, vappID string, vmID []string) (types.Task, error)
- func CreateVMByTemplate(ctx context.Context, r restful.RestAPITripper, vmSpec types.VirtualMachine, ...) (*types.Task, error)
- func CreateVapp(ctx context.Context, r restful.RestAPITripper, req types.VappCreateReq) (types.Task, error)
- func CreateVolume(ctx context.Context, r restful.RestAPITripper, volume types.VolumeReq) (types.Task, error)
- func DeleteVMById(ctx context.Context, r restful.RestAPITripper, vmId string, deleteFile bool, ...) (*types.Task, error)
- func DeleteVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)
- func DeleteVmFromVapp(ctx context.Context, r restful.RestAPITripper, vappID string, vmID []string) (types.Task, error)
- func DeleteVolume(ctx context.Context, r restful.RestAPITripper, volumeId string, ...) (types.Task, error)
- func GenerateCheckParams(ctx context.Context, r restful.RestAPITripper, params string) (string, error)
- func GetAllDatacenterList(ctx context.Context, r restful.RestAPITripper) (*types.DatacenterPageResponse, error)
- func GetAvailHostListByStorageID(ctx context.Context, r restful.RestAPITripper, storageID string) ([]types.Host, error)
- func GetClusterList(ctx context.Context, r restful.RestAPITripper) ([]types.Cluster, error)
- func GetCurrentTime(ctx context.Context, r restful.RestAPITripper) (*time.Time, error)
- func GetDatacenterById(ctx context.Context, r restful.RestAPITripper, datacenterId string) (*types.Datacenter, error)
- func GetDatacenterByName(ctx context.Context, r restful.RestAPITripper, datacenterName string) (*types.Datacenter, error)
- func GetDatacenterVMById(ctx context.Context, r restful.RestAPITripper, datacenterId string) (*types.VMPageResponse, error)
- func GetHostAccessibleDatastoreList(ctx context.Context, r restful.RestAPITripper, hostId string) ([]types.Storage, error)
- func GetHostAvailStorages(ctx context.Context, r restful.RestAPITripper, hostUUID string) ([]types.Storage, error)
- func GetHostById(ctx context.Context, r restful.RestAPITripper, hostUUID string) (*types.Host, error)
- func GetHostHealthInfoById(ctx context.Context, r restful.RestAPITripper, hostUUID string) (*types.HostHealthInfo, error)
- func GetHostList(ctx context.Context, r restful.RestAPITripper) (types.HostPageResponse, error)
- func GetHostListByDC(ctx context.Context, r restful.RestAPITripper, datacenterPath string) (*types.HostPageResponse, error)
- func GetHostListByStorageID(ctx context.Context, r restful.RestAPITripper, storageID string) (types.HostPageResponse, error)
- func GetHostListBySwitchID(ctx context.Context, r restful.RestAPITripper, switchID string) (types.HostPageResponse, error)
- func GetImageFileList(ctx context.Context, r restful.RestAPITripper, storageId string) (*types.ImageFilePageResponse, error)
- func GetImageStorageList(ctx context.Context, r restful.RestAPITripper) (*types.StoragePageResponse, error)
- func GetLoginPolicy(ctx context.Context, r restful.RestAPITripper) (*types.LoginPolicy, error)
- func GetNetworkByID(ctx context.Context, r restful.RestAPITripper, networkID string) (types.Network, error)
- func GetNetworkList(ctx context.Context, r restful.RestAPITripper) ([]types.Network, error)
- func GetOvaConfig(ctx context.Context, r restful.RestAPITripper, ovaFilePath string, ...) (*types.VirtualMachine, error)
- func GetPublicKey(ctx context.Context, r restful.RestAPITripper) (string, error)
- func GetSdnNetworkByID(ctx context.Context, r restful.RestAPITripper, sdnNetworkID string) (types.SdnNetwork, error)
- func GetSdnNetworkList(ctx context.Context, r restful.RestAPITripper) ([]types.SdnNetwork, error)
- func GetServiceContent(ctx context.Context, r restful.RestAPITripper) (types.ServiceContent, error)
- func GetStorageInfo(ctx context.Context, r restful.RestAPITripper, storageId string) (*types.Storage, error)
- func GetStorageList(ctx context.Context, r restful.RestAPITripper) (*types.StoragePageResponse, error)
- func GetStoragePageList(ctx context.Context, r restful.RestAPITripper, req *types.StoragePageReq) (*types.StoragePageResponse, error)
- func GetTagById(ctx context.Context, r restful.RestAPITripper, id string) (*types.Tag, error)
- func GetTaskInfo(ctx context.Context, r restful.RestAPITripper, req *types.Task) (*types.TaskInfo, error)
- func GetVMByIP(ctx context.Context, r restful.RestAPITripper, ipAddy string) (*types.VirtualMachine, error)
- func GetVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.VirtualMachine, error)
- func GetVMByName(ctx context.Context, r restful.RestAPITripper, name string) (*types.VirtualMachine, error)
- func GetVMList(ctx context.Context, r restful.RestAPITripper) (*types.VMPageResponse, error)
- func GetVMPageList(ctx context.Context, r restful.RestAPITripper, req *types.VMPageReq) (*types.VMPageResponse, error)
- func GetVMTemplateById(ctx context.Context, r restful.RestAPITripper, vmtId string) (*types.VirtualMachine, error)
- func GetVMTemplateList(ctx context.Context, r restful.RestAPITripper) (*types.VMPageResponse, error)
- func GetVappList(ctx context.Context, r restful.RestAPITripper) ([]types.Vapp, error)
- func GetVolumeInfoById(ctx context.Context, r restful.RestAPITripper, volumeId string) (types.Volume, error)
- func GetVolumesInDatastore(ctx context.Context, r restful.RestAPITripper, datastoreId string) (types.VolumeListRsp, error)
- func HandleResponse(resp *restful.Response, errHttp error) ([]byte, error)
- func ImportVM(ctx context.Context, r restful.RestAPITripper, vmSpec types.VirtualMachine, ...) (*types.Task, error)
- func JsonError(err error) error
- func ListAttachedTags(ctx context.Context, r restful.RestAPITripper, targetType string, ref string) ([]types.TreeItem, error)
- func Login(ctx context.Context, r restful.RestAPITripper, req *types.Login) (*types.LoginResponse, error)
- func Logout(ctx context.Context, r restful.RestAPITripper) (*types.Task, error)
- func PowerOffVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)
- func PowerOffVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)
- func PowerOffVappSafely(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)
- func PowerOnVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)
- func PowerOnVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)
- func RestartVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)
- func RestartVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)
- func SetVM(ctx context.Context, r restful.RestAPITripper, vmInfo types.VirtualMachine) (*types.Task, error)
- func SetVolume(ctx context.Context, r restful.RestAPITripper, volumeId string, ...) (types.Task, error)
- func ShutdownVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)
- func ValidUserSession(ctx context.Context, r restful.RestAPITripper, user *types.UserSession) error
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeFunc types.Func
Functions ¶
func AddVmToVapp ¶ added in v1.0.0
func CreateVMByTemplate ¶
func CreateVMByTemplate(ctx context.Context, r restful.RestAPITripper, vmSpec types.VirtualMachine, quickClone bool) (*types.Task, error)
func CreateVapp ¶ added in v1.0.0
func CreateVapp(ctx context.Context, r restful.RestAPITripper, req types.VappCreateReq) (types.Task, error)
func CreateVolume ¶
func DeleteVMById ¶
func DeleteVapp ¶ added in v1.0.0
func DeleteVmFromVapp ¶ added in v1.0.0
func DeleteVolume ¶
func GenerateCheckParams ¶ added in v1.0.9
func GetAllDatacenterList ¶
func GetAllDatacenterList(ctx context.Context, r restful.RestAPITripper) (*types.DatacenterPageResponse, error)
func GetClusterList ¶
func GetCurrentTime ¶
func GetDatacenterById ¶
func GetDatacenterById(ctx context.Context, r restful.RestAPITripper, datacenterId string) (*types.Datacenter, error)
func GetDatacenterByName ¶ added in v1.0.3
func GetDatacenterByName(ctx context.Context, r restful.RestAPITripper, datacenterName string) (*types.Datacenter, error)
func GetDatacenterVMById ¶
func GetDatacenterVMById(ctx context.Context, r restful.RestAPITripper, datacenterId string) (*types.VMPageResponse, error)
func GetHostAvailStorages ¶
func GetHostById ¶
func GetHostHealthInfoById ¶ added in v1.0.0
func GetHostHealthInfoById(ctx context.Context, r restful.RestAPITripper, hostUUID string) (*types.HostHealthInfo, error)
func GetHostList ¶
func GetHostList(ctx context.Context, r restful.RestAPITripper) (types.HostPageResponse, error)
func GetHostListByDC ¶
func GetHostListByDC(ctx context.Context, r restful.RestAPITripper, datacenterPath string) (*types.HostPageResponse, error)
func GetHostListByStorageID ¶
func GetHostListByStorageID(ctx context.Context, r restful.RestAPITripper, storageID string) (types.HostPageResponse, error)
func GetHostListBySwitchID ¶
func GetHostListBySwitchID(ctx context.Context, r restful.RestAPITripper, switchID string) (types.HostPageResponse, error)
func GetImageFileList ¶ added in v1.0.9
func GetImageFileList(ctx context.Context, r restful.RestAPITripper, storageId string) (*types.ImageFilePageResponse, error)
func GetImageStorageList ¶ added in v1.0.9
func GetImageStorageList(ctx context.Context, r restful.RestAPITripper) (*types.StoragePageResponse, error)
func GetLoginPolicy ¶ added in v1.0.9
func GetLoginPolicy(ctx context.Context, r restful.RestAPITripper) (*types.LoginPolicy, error)
func GetNetworkByID ¶
func GetNetworkList ¶
func GetOvaConfig ¶ added in v1.0.9
func GetOvaConfig(ctx context.Context, r restful.RestAPITripper, ovaFilePath string, hostUUID string, imageHostUUID string) (*types.VirtualMachine, error)
func GetPublicKey ¶ added in v1.0.9
func GetSdnNetworkByID ¶ added in v1.1.3
func GetSdnNetworkByID(ctx context.Context, r restful.RestAPITripper, sdnNetworkID string) (types.SdnNetwork, error)
func GetSdnNetworkList ¶ added in v1.1.3
func GetSdnNetworkList(ctx context.Context, r restful.RestAPITripper) ([]types.SdnNetwork, error)
func GetServiceContent ¶
func GetServiceContent(ctx context.Context, r restful.RestAPITripper) (types.ServiceContent, error)
func GetStorageInfo ¶
func GetStorageList ¶
func GetStorageList(ctx context.Context, r restful.RestAPITripper) (*types.StoragePageResponse, error)
func GetStoragePageList ¶
func GetStoragePageList(ctx context.Context, r restful.RestAPITripper, req *types.StoragePageReq) (*types.StoragePageResponse, error)
func GetTagById ¶
func GetTaskInfo ¶
func GetVMByIP ¶
func GetVMByIP(ctx context.Context, r restful.RestAPITripper, ipAddy string) (*types.VirtualMachine, error)
func GetVMById ¶
func GetVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.VirtualMachine, error)
func GetVMByName ¶
func GetVMByName(ctx context.Context, r restful.RestAPITripper, name string) (*types.VirtualMachine, error)
func GetVMList ¶
func GetVMList(ctx context.Context, r restful.RestAPITripper) (*types.VMPageResponse, error)
func GetVMPageList ¶
func GetVMPageList(ctx context.Context, r restful.RestAPITripper, req *types.VMPageReq) (*types.VMPageResponse, error)
func GetVMTemplateById ¶
func GetVMTemplateById(ctx context.Context, r restful.RestAPITripper, vmtId string) (*types.VirtualMachine, error)
func GetVMTemplateList ¶
func GetVMTemplateList(ctx context.Context, r restful.RestAPITripper) (*types.VMPageResponse, error)
func GetVappList ¶ added in v1.0.0
func GetVolumeInfoById ¶
func GetVolumesInDatastore ¶
func GetVolumesInDatastore(ctx context.Context, r restful.RestAPITripper, datastoreId string) (types.VolumeListRsp, error)
func ListAttachedTags ¶
func Login ¶
func Login(ctx context.Context, r restful.RestAPITripper, req *types.Login) (*types.LoginResponse, error)
func PowerOffVMById ¶
func PowerOffVapp ¶ added in v1.0.0
func PowerOffVappSafely ¶ added in v1.0.0
func PowerOnVMById ¶
func PowerOnVapp ¶ added in v1.0.0
func RestartVMById ¶ added in v1.0.2
func RestartVapp ¶ added in v1.0.0
func SetVM ¶
func SetVM(ctx context.Context, r restful.RestAPITripper, vmInfo types.VirtualMachine) (*types.Task, error)
func ShutdownVMById ¶
func ValidUserSession ¶
func ValidUserSession(ctx context.Context, r restful.RestAPITripper, user *types.UserSession) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.