Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2025 Changes in this version + const AUTHFAILURE_INVALID_AUTHORIZATION + const AUTHFAILURE_SIGNATURE_EXPIRED + const AUTHFAILURE_SIGNATURE_FAILURE + const AUTHFAILURE_UNAUTHORIZED_OPERATION + const DiskStatusAttaching + const DiskStatusAvaliable + const DiskStatusChanging + const DiskStatusCreating + const DiskStatusDeleted + const DiskStatusDeleting + const DiskStatusDetaching + const DiskStatusFailed + const DiskStatusInUse + const DiskStatusRecycled + const DiskStatusStable + const INTERNAL_SERVER_ERROR + const INVALID_PARAMETER_DATE_FORMAT_ERROR + const INVALID_PARAMETER_EXCEED_LENGTH + const INVALID_PARAMETER_EXCEED_MAXIMUM + const INVALID_PARAMETER_LESS_LENGTH + const INVALID_PARAMETER_LESS_MINIMUM + const INVALID_PARAMETER_PATTERN_ERROR + const INVALID_PARAMETER_TYPE + const INVALID_PARAMETER_VALUE + const MISSING_PARAMETER + const OPERATION_FAILED_FOR_RECYCLE_RESOURCE + const OPERATION_FAILED_RESOURCE_GROUP_NOT_FOUND + const OPERATION_FAILED_RESOURCE_NOT_FOUND + const REQUEST_TIMED_OUT + const SERVICE_TEMPORARY_UNAVAILABLE + const VmStatusBooting + const VmStatusCreateFailed + const VmStatusDeploying + const VmStatusImaging + const VmStatusReboot + const VmStatusRebuilding + const VmStatusRecycle + const VmStatusRecycling + const VmStatusReleasing + const VmStatusResizing + const VmStatusRunning + const VmStatusStopped + const VmStatusStopping + func NewZecCloudManager(CLOUDAK string, CLOUDSK string, drivertype string) (*zecCloudManager, error) + func WaitFor(f func() (bool, error)) error + func WaitForSpecific(f func() bool, timeout time.Duration, waitInterval time.Duration) error + func WaitForSpecificOrError(f func() (bool, error), timeout time.Duration, waitInterval time.Duration) error + type CloudManager interface + type SnapshotManager interface + CreateSnapshot func() (err error) + CreateVolumeFromSnapshot func() (err error) + DeleteSnapshot func() (err error) + FindSnapshot func() (err error) + FindSnapshotByName func() (err error) + type TimeoutError struct + func NewTimeoutError(timeout time.Duration) *TimeoutError + func (e *TimeoutError) Error() string + func (e *TimeoutError) Timeout() time.Duration + type UtilManager interface + AttachTags func() (err error) + FindInstance func(vmId string) (zecVmInfo *ZecVm, err error) + FindTag func() (err error) + GetVmStatus func(vmId string) (exist bool, status string, err error) + GetZone func(zoneId string) error + GetZoneList func() (zoneNameList []string, err error) + IsController func() bool + IsValidTags func() bool + Probe func() error + type VolumeManager interface + AttachVolume func(volId string, vmId string) (err error) + CloneVolume func() (err error) + CreateVolume func(volName string, volSize int, volCategory string, zoneId string, ...) (volId string, err error) + DeleteVolume func(volId string) (err error) + DetachVolume func(volId string) (err error) + FindVolume func(volId string) (zecVolInfo *ZecVolume, err error) + FindVolumeByName func(volName string, zoneID string, sizeGB int, diskType string) (zecVolInfo *ZecVolume, err error) + ResizeVolume func(volId string, requestSize int) (err error) + type ZecVm struct + ZecVm_Id string + ZecVm_Status string + ZecVm_Type int + ZecVm_Zone string + func NewZecVm() (zecVmInfo *ZecVm) + type ZecVolume struct + ZecVolume_Id string + ZecVolume_InstanceId string + ZecVolume_Name string + ZecVolume_Serial string + ZecVolume_Size int + ZecVolume_Status string + ZecVolume_Type int + ZecVolume_Zone string + func NewZecVolume() (zecVolInfo *ZecVolume) + func (zv ZecVolume) Check() bool