Versions in this module Expand all Collapse all v1 v1.2.0 Mar 1, 2023 v1.1.2 Mar 1, 2023 v1.1.1 Feb 13, 2023 v1.1.0 Jan 23, 2023 Changes in this version + type InfoDisk struct + ID uint64 + PCISlot uint64 type ItemCompute + VINSConnected uint64 type ItemComputeDisk + PresentTo []uint64 + Shareable bool v1.0.2 Dec 27, 2022 v1.0.1 Dec 22, 2022 Changes in this version + type AffinityGroupCheckStartRequest struct + AffinityLabel string + RGID uint64 + type AffinityLabelRemoveRequest struct + ComputeID uint64 + type AffinityLabelSetRequest struct + AffinityLabel string + ComputeID uint64 + type AffinityRelationsRequest struct + ComputeID uint64 + type AffinityRuleAddRequest struct + ComputeID uint64 + Key string + Mode string + Policy string + Topology string + Value string + type AffinityRuleRemoveRequest struct + ComputeID uint64 + Key string + Mode string + Policy string + Topology string + Value string + type AffinityRulesClearRequest struct + ComputeID uint64 + type AntiAffinityRuleAddRequest struct + ComputeID uint64 + Key string + Mode string + Policy string + Topology string + Value string + type AntiAffinityRuleRemoveRequest struct + ComputeID uint64 + Key string + Mode string + Policy string + Topology string + Value string + type AntiAffinityRulesClearRequest struct + ComputeID uint64 + type AttachGPURequest struct + ComputeID uint64 + VGPUID uint64 + type AttachPCIDeviceRequest struct + ComputeID uint64 + DeviceID uint64 + type AuditsRequest struct + ComputeID uint64 + type CDEjectRequest struct + ComputeID uint64 + type CDInsertRequest struct + CDROMID uint64 + ComputeID uint64 + type CloneRequest struct + ComputeID uint64 + Name string + SnapshotName string + SnapshotTimestamp uint64 + type Compute struct + func New(client interfaces.Caller) *Compute + func (c Compute) AffinityGroupCheckStart(ctx context.Context, req AffinityGroupCheckStartRequest) (string, error) + func (c Compute) AffinityLabelRemove(ctx context.Context, req AffinityLabelRemoveRequest) (bool, error) + func (c Compute) AffinityLabelSet(ctx context.Context, req AffinityLabelSetRequest) (bool, error) + func (c Compute) AffinityRelations(ctx context.Context, req AffinityRelationsRequest) (*RecordAffinityRelations, error) + func (c Compute) AffinityRuleAdd(ctx context.Context, req AffinityRuleAddRequest) (bool, error) + func (c Compute) AffinityRuleRemove(ctx context.Context, req AffinityRuleRemoveRequest) (bool, error) + func (c Compute) AffinityRulesClear(ctx context.Context, req AffinityRulesClearRequest) (bool, error) + func (c Compute) AntiAffinityRuleAdd(ctx context.Context, req AntiAffinityRuleAddRequest) (bool, error) + func (c Compute) AntiAffinityRuleRemove(ctx context.Context, req AntiAffinityRuleRemoveRequest) (bool, error) + func (c Compute) AntiAffinityRulesClear(ctx context.Context, req AntiAffinityRulesClearRequest) (bool, error) + func (c Compute) AttachGPU(ctx context.Context, req AttachGPURequest) (uint64, error) + func (c Compute) AttachPCIDevice(ctx context.Context, req AttachPCIDeviceRequest) (bool, error) + func (c Compute) Audits(ctx context.Context, req AuditsRequest) (ListAudits, error) + func (c Compute) CDEject(ctx context.Context, req CDEjectRequest) (bool, error) + func (c Compute) CDInsert(ctx context.Context, req CDInsertRequest) (bool, error) + func (c Compute) Clone(ctx context.Context, req CloneRequest) (uint64, error) + func (c Compute) CreateTemplate(ctx context.Context, req CreateTemplateRequest) (uint64, error) + func (c Compute) CreateTemplateAsync(ctx context.Context, req CreateTemplateRequest) (string, error) + func (c Compute) Delete(ctx context.Context, req DeleteRequest) (bool, error) + func (c Compute) DetachGPU(ctx context.Context, req DetachGPURequest) (bool, error) + func (c Compute) DetachPCIDevice(ctx context.Context, req DetachPCIDeviceRequest) (bool, error) + func (c Compute) Disable(ctx context.Context, req DisableRequest) (bool, error) + func (c Compute) DiskAdd(ctx context.Context, req DiskAddRequest) (uint64, error) + func (c Compute) DiskAttach(ctx context.Context, req DiskAttachRequest) (bool, error) + func (c Compute) DiskDel(ctx context.Context, req DiskDelRequest) (bool, error) + func (c Compute) DiskDetach(ctx context.Context, req DiskDetachRequest) (bool, error) + func (c Compute) DiskQOS(ctx context.Context, req DiskQOSRequest) (bool, error) + func (c Compute) DiskResize(ctx context.Context, req DiskResizeRequest) (bool, error) + func (c Compute) Enable(ctx context.Context, req EnableRequest) (bool, error) + func (c Compute) Get(ctx context.Context, req GetRequest) (*RecordCompute, error) + func (c Compute) GetAudits(ctx context.Context, req GetAuditsRequest) (ListShortAudits, error) + func (c Compute) GetConsoleURL(ctx context.Context, req GetConsoleURLRequest) (string, error) + func (c Compute) GetLog(ctx context.Context, req GetLogRequest) (string, error) + func (c Compute) GetLogGet(ctx context.Context, req GetLogRequest) (string, error) + func (c Compute) List(ctx context.Context, req ListRequest) (ListComputes, error) + func (c Compute) ListDeleted(ctx context.Context, req ListDeletedRequest) (ListComputes, error) + func (c Compute) ListPCIDevice(ctx context.Context, req ListPCIDeviceRequest) ([]interface{}, error) + func (c Compute) ListVGPU(ctx context.Context, req ListVGPURequest) ([]interface{}, error) + func (c Compute) MoveToRG(ctx context.Context, req MoveToRGRequest) (bool, error) + func (c Compute) NetAttach(ctx context.Context, req NetAttachRequest) (*RecordNetAttach, error) + func (c Compute) NetDetach(ctx context.Context, req NetDetachRequest) (bool, error) + func (c Compute) PFWAdd(ctx context.Context, req PFWAddRequest) (uint64, error) + func (c Compute) PFWDel(ctx context.Context, req PFWDelRequest) (bool, error) + func (c Compute) PFWList(ctx context.Context, req PFWListRequest) (ListPFWs, error) + func (c Compute) Pause(ctx context.Context, req PauseRequest) (bool, error) + func (c Compute) PinToStack(ctx context.Context, req PinToStackRequest) (uint64, error) + func (c Compute) PowerCycle(ctx context.Context, req PowerCycleRequest) (bool, error) + func (c Compute) Reboot(ctx context.Context, req RebootRequest) (bool, error) + func (c Compute) Redeploy(ctx context.Context, req RedeployRequest) (bool, error) + func (c Compute) Reset(ctx context.Context, req ResetRequest) (bool, error) + func (c Compute) Resize(ctx context.Context, req ResizeRequest) (bool, error) + func (c Compute) Restore(ctx context.Context, req RestoreRequest) (string, error) + func (c Compute) Resume(ctx context.Context, req ResumeRequest) (bool, error) + func (c Compute) SnapshotCreate(ctx context.Context, req SnapshotCreateRequest) (string, error) + func (c Compute) SnapshotDelete(ctx context.Context, req SnapshotDeleteRequest) (bool, error) + func (c Compute) SnapshotList(ctx context.Context, req SnapshotListRequest) (ListSnapShots, error) + func (c Compute) SnapshotRollback(ctx context.Context, req SnapshotRollbackRequest) (bool, error) + func (c Compute) SnapshotUsage(ctx context.Context, req SnapshotUsageRequest) (ListUsageSnapshots, error) + func (c Compute) Start(ctx context.Context, req StartRequest) (bool, error) + func (c Compute) Stop(ctx context.Context, req StopRequest) (bool, error) + func (c Compute) TagAdd(ctx context.Context, req TagAddRequest) (bool, error) + func (c Compute) TagRemove(ctx context.Context, req TagRemoveRequest) (bool, error) + func (c Compute) UnpinFromStack(ctx context.Context, req UnpinFromStackRequest) (bool, error) + func (c Compute) Update(ctx context.Context, req UpdateRequest) (bool, error) + func (c Compute) UserGrant(ctx context.Context, req UserGrantRequest) (bool, error) + func (c Compute) UserList(ctx context.Context, req UserListRequest) (*RecordACL, error) + func (c Compute) UserRevoke(ctx context.Context, req UserRevokeRequest) (bool, error) + func (c Compute) UserUpdate(ctx context.Context, req UserUpdateRequest) (bool, error) + type CreateTemplateRequest struct + ComputeID uint64 + Name string + type DeleteRequest struct + ComputeID uint64 + DetachDisks bool + Permanently bool + type DetachGPURequest struct + ComputeID uint64 + VGPUID int64 + type DetachPCIDeviceRequest struct + ComputeID uint64 + DeviceID uint64 + type DisableRequest struct + ComputeID uint64 + type DiskAddRequest struct + ComputeID uint64 + Description string + DiskName string + DiskType string + ImageID uint64 + Pool string + SepID uint64 + Size uint64 + type DiskAttachRequest struct + ComputeID uint64 + DiskID uint64 + type DiskDelRequest struct + ComputeID uint64 + DiskID uint64 + Permanently bool + type DiskDetachRequest struct + ComputeID uint64 + DiskID uint64 + type DiskQOSRequest struct + ComputeID uint64 + DiskID uint64 + Limits string + type DiskResizeRequest struct + ComputeID uint64 + DiskID uint64 + Size uint64 + type EnableRequest struct + ComputeID uint64 + type GetAuditsRequest struct + ComputeID uint64 + type GetConsoleURLRequest struct + ComputeID uint64 + type GetLogRequest struct + ComputeID uint64 + Path string + type GetRequest struct + ComputeID uint64 + type IOTune struct + ReadBytesSec uint64 + ReadBytesSecMax uint64 + ReadIOPSSec uint64 + ReadIOPSSecMax uint64 + SizeIOPSSec uint64 + TotalBytesSec uint64 + TotalBytesSecMax uint64 + TotalIOPSSec uint64 + TotalIOPSSecMax uint64 + WriteBytesSec uint64 + WriteBytesSecMax uint64 + WriteIOPSSec uint64 + WriteIOPSSecMax uint64 + type ItemACL struct + Explicit bool + GUID string + Right string + Status string + Type string + UserGroupID string + type ItemAudit struct + Call string + ResponseTime float64 + StatusCode uint64 + Timestamp float64 + User string + type ItemCompute struct + ACL []interface{} + AccountID uint64 + AccountName string + AffinityLabel string + AffinityRules ListRules + AffinityWeight uint64 + AntiAffinityRules ListRules + Architecture string + BootDiskSize uint64 + BootOrder []string + CPU uint64 + CloneReference uint64 + Clones []uint64 + ComputeCIID uint64 + CreatedBy string + CreatedTime uint64 + CustomFields map[string]interface{} + DeletedBy string + DeletedTime uint64 + Description string + Devices interface{} + Disks []uint64 + Driver string + GID uint64 + GUID uint64 + ID uint64 + ImageID uint64 + ImageName string + Interfaces ListInterfaces + LockStatus string + ManagerID uint64 + ManagerType string + MigrationJob uint64 + Milestones uint64 + Name string + Pinned bool + RAM uint64 + RGID uint64 + RGName string + ReferenceID string + Registered bool + ResName string + SnapSets ListSnapSets + StatelessSepID uint64 + StatelessSepType string + Status string + Tags map[string]string + TechStatus string + TotalDiskSize uint64 + UpdatedBy string + UpdatedTime uint64 + UserManaged bool + Userdata interface{} + VGPUs []uint64 + VirtualImageID uint64 + VirtualImageName string + type ItemComputeDisk struct + ACL map[string]interface{} + AccountID uint64 + BootPartition uint64 + CKey string + CreatedTime uint64 + DeletedTime uint64 + Description string + DestructionTime uint64 + DiskPath string + GID uint64 + GUID uint64 + ID uint64 + IOTune IOTune + IQN string + ImageID uint64 + Images []uint64 + Login string + Milestones uint64 + Name string + Order uint64 + PCISlot uint64 + Params string + ParentID uint64 + Passwd string + Pool string + PurgeTime uint64 + RealityDeviceNumber uint64 + ResID string + Role string + SepID uint64 + SizeMax uint64 + SizeUsed uint64 + Snapshots SnapshotExtendList + Status string + TechStatus string + Type string + VMID uint64 + type ItemOSUser struct + GUID string + Login string + Password string + PubKey string + type ItemPFW struct + ID uint64 + LocalIP string + LocalPort uint64 + Protocol string + PublicPortEnd uint64 + PublicPortStart uint64 + VMID uint64 + type ItemRule struct + GUID string + Key string + Mode string + Policy string + Topology string + Value string + type ItemShortAudit struct + Epoch float64 + Message string + type ItemSnapSet struct + Disks []uint64 + GUID string + Label string + Timestamp uint64 + type ItemSnapshot struct + Disks []uint64 + GUID string + Label string + Timestamp uint64 + type ItemUsageSnapshot struct + Count uint64 + Label string + Stored float64 + Timestamp uint64 + type ItemVNFInterface struct + ConnID uint64 + ConnType string + DefGW string + FLIPGroupID uint64 + GUID string + IPAddress string + ListenSSH bool + MAC string + Name string + NetID uint64 + NetMask uint64 + NetType string + PCISlot uint64 + QOS QOS + Target string + Type string + VNFs []uint64 + type ListACL []ItemACL + type ListAudits []ItemAudit + type ListComputeDisks []ItemComputeDisk + type ListComputes []ItemCompute + type ListDeletedRequest struct + Page uint64 + Size uint64 + type ListInterfaces []ItemVNFInterface + type ListOSUser []ItemOSUser + type ListPCIDeviceRequest struct + ComputeID uint64 + type ListPFWs []ItemPFW + type ListRequest struct + IncludeDeleted bool + Page uint64 + Size uint64 + type ListRules []ItemRule + type ListShortAudits []ItemShortAudit + type ListSnapSets []ItemSnapSet + type ListSnapShots []ItemSnapshot + type ListUsageSnapshots []ItemUsageSnapshot + type ListVGPURequest struct + ComputeID uint64 + type MoveToRGRequest struct + Autostart bool + ComputeID uint64 + ForceStop bool + Name string + RGID uint64 + type NetAttachRequest struct + ComputeID uint64 + IPAddr string + NetID uint64 + NetType string + type NetDetachRequest struct + ComputeID uint64 + IPAddr string + MAC string + type PFWAddRequest struct + ComputeID uint64 + LocalBasePort uint64 + Proto string + PublicPortEnd uint64 + PublicPortStart uint64 + type PFWDelRequest struct + ComputeID uint64 + LocalBasePort uint64 + PFWID uint64 + Proto string + PublicPortEnd uint64 + PublicPortStart uint64 + type PFWListRequest struct + ComputeID uint64 + type PauseRequest struct + ComputeID uint64 + type PinToStackRequest struct + ComputeID uint64 + type PowerCycleRequest struct + ComputeID uint64 + type QOS struct + ERate uint64 + GUID string + InBurst uint64 + InRate uint64 + type RebootRequest struct + ComputeID uint64 + type RecordACL struct + AccountACL ListACL + ComputeACL ListACL + RGACL ListACL + type RecordAffinityRelations struct + OtherNode []interface{} + OtherNodeIndirect []interface{} + OtherNodeIndirectSoft []interface{} + OtherNodeSoft []interface{} + SameNode []interface{} + SameNodeSoft []interface{} + type RecordCompute struct + ACL RecordACL + AccountID uint64 + AccountName string + AffinityLabel string + AffinityRules ListRules + AffinityWeight uint64 + AntiAffinityRules ListRules + Architecture string + BootDiskSize uint64 + BootOrder []string + CPU uint64 + CloneReference uint64 + Clones []uint64 + ComputeCIID uint64 + CreatedBy string + CreatedTime uint64 + CustomFields map[string]interface{} + DeletedBy string + DeletedTime uint64 + Description string + Devices interface{} + Disks ListComputeDisks + Driver string + GID uint64 + GUID uint64 + ID uint64 + ImageID uint64 + ImageName string + Interfaces ListInterfaces + LockStatus string + ManagerID uint64 + ManagerType string + MigrationJob uint64 + Milestones uint64 + Name string + NatableVINSID uint64 + NatableVINSIP string + NatableVINSName string + NatableVINSNetwork string + NatableVINSNetworkName string + OSUsers ListOSUser + Pinned bool + RAM uint64 + RGID uint64 + RGName string + ReferenceID string + Registered bool + ResName string + SnapSets ListSnapSets + StatelessSepID uint64 + StatelessSepType string + Status string + Tags map[string]string + TechStatus string + UpdatedBy string + UpdatedTime uint64 + UserManaged bool + Userdata interface{} + VGPUs []uint64 + VirtualImageID uint64 + VirtualImageName string + type RecordNetAttach struct + ConnID uint64 + ConnType string + DefGW string + FLIPGroupID uint64 + GUID string + IPAddress string + ListenSSH bool + MAC string + Name string + NetID uint64 + NetMask uint64 + NetType string + PCISlot uint64 + QOS QOS + Target string + Type string + VNFs []uint64 + type RedeployRequest struct + AutoStart bool + ComputeID uint64 + DataDisks string + DiskSize uint64 + ForceStop bool + ImageID uint64 + type ResetRequest struct + ComputeID uint64 + type ResizeRequest struct + CPU uint64 + ComputeID uint64 + Force bool + RAM uint64 + type RestoreRequest struct + ComputeID uint64 + type ResumeRequest struct + ComputeID uint64 + type SnapshotCreateRequest struct + ComputeID uint64 + Label string + type SnapshotDeleteRequest struct + ComputeID uint64 + Label string + type SnapshotExtend struct + GUID string + Label string + ResID string + SnapSetGUID string + SnapSetTime uint64 + TimeStamp uint64 + type SnapshotExtendList []SnapshotExtend + type SnapshotListRequest struct + ComputeID uint64 + type SnapshotRollbackRequest struct + ComputeID uint64 + Label string + type SnapshotUsageRequest struct + ComputeID uint64 + Label string + type StartRequest struct + AltBootID uint64 + ComputeID uint64 + type StopRequest struct + ComputeID uint64 + Force bool + type TagAddRequest struct + ComputeID uint64 + Key string + Value string + type TagRemoveRequest struct + ComputeID uint64 + Key string + type UnpinFromStackRequest struct + ComputeID uint64 + type UpdateRequest struct + ComputeID uint64 + Description string + Name string + type UserGrantRequest struct + AccessType string + ComputeID uint64 + Username string + type UserListRequest struct + ComputeID uint64 + type UserRevokeRequest struct + ComputeID uint64 + Username string + type UserUpdateRequest struct + AccessType string + ComputeID uint64 + Username string v1.0.0 Dec 22, 2022