methods

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TypeFunc types.Func

Functions

func AddVmToVapp added in v1.0.0

func AddVmToVapp(ctx context.Context, r restful.RestAPITripper, vappID string, vmID []string) (types.Task, error)

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 CreateVolume

func CreateVolume(ctx context.Context, r restful.RestAPITripper, volume types.VolumeReq) (types.Task, error)

func DeleteVMById

func DeleteVMById(ctx context.Context, r restful.RestAPITripper, vmId string, deleteFile bool, removeData bool) (*types.Task, error)

func DeleteVapp added in v1.0.0

func DeleteVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)

func DeleteVmFromVapp added in v1.0.0

func DeleteVmFromVapp(ctx context.Context, r restful.RestAPITripper, vappID string, vmID []string) (types.Task, error)

func DeleteVolume

func DeleteVolume(ctx context.Context, r restful.RestAPITripper, volumeId string, deleteVolume bool) (types.Task, error)

func GenerateCheckParams added in v1.0.9

func GenerateCheckParams(ctx context.Context, r restful.RestAPITripper, params string) (string, error)

func GetAvailHostListByStorageID

func GetAvailHostListByStorageID(ctx context.Context, r restful.RestAPITripper, storageID string) ([]types.Host, error)

func GetClusterList

func GetClusterList(ctx context.Context, r restful.RestAPITripper) ([]types.Cluster, error)

func GetCurrentTime

func GetCurrentTime(ctx context.Context, r restful.RestAPITripper) (*time.Time, error)

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 GetHostAccessibleDatastoreList

func GetHostAccessibleDatastoreList(ctx context.Context, r restful.RestAPITripper, hostId string) ([]types.Storage, error)

func GetHostAvailStorages

func GetHostAvailStorages(ctx context.Context, r restful.RestAPITripper, hostUUID string) ([]types.Storage, error)

func GetHostById

func GetHostById(ctx context.Context, r restful.RestAPITripper, hostUUID string) (*types.Host, error)

func GetHostHealthInfoById added in v1.0.0

func GetHostHealthInfoById(ctx context.Context, r restful.RestAPITripper, hostUUID string) (*types.HostHealthInfo, 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 GetNetworkByID(ctx context.Context, r restful.RestAPITripper, networkID string) (types.Network, error)

func GetNetworkList

func GetNetworkList(ctx context.Context, r restful.RestAPITripper) ([]types.Network, error)

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 GetPublicKey(ctx context.Context, r restful.RestAPITripper) (string, error)

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 GetStorageInfo

func GetStorageInfo(ctx context.Context, r restful.RestAPITripper, storageId string) (*types.Storage, error)

func GetTagById

func GetTagById(ctx context.Context, r restful.RestAPITripper, id string) (*types.Tag, error)

func GetTaskInfo

func GetTaskInfo(ctx context.Context, r restful.RestAPITripper, req *types.Task) (*types.TaskInfo, error)

func GetVMByIP

func GetVMByIP(ctx context.Context, r restful.RestAPITripper, ipAddy string) (*types.VirtualMachine, error)

func GetVMTemplateById

func GetVMTemplateById(ctx context.Context, r restful.RestAPITripper, vmtId string) (*types.VirtualMachine, error)

func GetVappList added in v1.0.0

func GetVappList(ctx context.Context, r restful.RestAPITripper) ([]types.Vapp, error)

func GetVolumeInfoById

func GetVolumeInfoById(ctx context.Context, r restful.RestAPITripper, volumeId string) (types.Volume, error)

func GetVolumesInDatastore

func GetVolumesInDatastore(ctx context.Context, r restful.RestAPITripper, datastoreId string) (types.VolumeListRsp, error)

func HandleResponse

func HandleResponse(resp *restful.Response, errHttp error) ([]byte, error)

func ImportVM added in v1.0.9

func ImportVM(ctx context.Context, r restful.RestAPITripper, vmSpec types.VirtualMachine,
	ovaFilePath string, hostUUID string, rateLimit int) (*types.Task, error)

func JsonError

func JsonError(err error) error

func ListAttachedTags

func ListAttachedTags(ctx context.Context, r restful.RestAPITripper, targetType string, ref string) ([]types.TreeItem, error)

func Logout

func PowerOffVMById

func PowerOffVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)

func PowerOffVapp added in v1.0.0

func PowerOffVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)

func PowerOffVappSafely added in v1.0.0

func PowerOffVappSafely(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)

func PowerOnVMById

func PowerOnVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)

func PowerOnVapp added in v1.0.0

func PowerOnVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)

func RestartVMById added in v1.0.2

func RestartVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)

func RestartVapp added in v1.0.0

func RestartVapp(ctx context.Context, r restful.RestAPITripper, vappID string) (types.Task, error)

func SetVolume added in v1.0.3

func SetVolume(ctx context.Context, r restful.RestAPITripper, volumeId string, volume types.Volume) (types.Task, error)

func ShutdownVMById

func ShutdownVMById(ctx context.Context, r restful.RestAPITripper, vmId string) (*types.Task, error)

func ValidUserSession

func ValidUserSession(ctx context.Context, r restful.RestAPITripper, user *types.UserSession) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL