Documentation
¶
Overview ¶
Package sifi implements the go language bindings for the HyperCloud SIFI API. The bindings will support exactly one version of the API at a time, even though the data types for all currently supported versions can be found in the v* directories.
The generated directory contains the generated code from the legacy XMLRPC API. Once all of these types have been forked and moved into the models directory, this directory can be removed. This should be a prerequisite for moving this code to public github.
Index ¶
- Constants
- type ACLService
- type Client
- type ClusterService
- func (s ClusterService) AddClusterDatastore(ctx context.Context, id, datastore int) (*cloud.AddClusterDatastoreResponse, error)
- func (s ClusterService) AddClusterHost(ctx context.Context, id, host int) (*cloud.AddClusterHostResponse, error)
- func (s ClusterService) AddClusterNetwork(ctx context.Context, id, network int) (*cloud.AddClusterNetworkResponse, error)
- func (s ClusterService) Cluster(ctx context.Context, id int) (*cloud.ListClusterResponse, error)
- func (s ClusterService) Clusters(ctx context.Context) (*cloud.ListClustersResponse, error)
- func (s ClusterService) CreateCluster(ctx context.Context, req cloud.CreateClusterRequest) (*cloud.CreateClusterResponse, error)
- func (s ClusterService) DeleteCluster(ctx context.Context, id int) error
- func (s ClusterService) DeleteClusterDatastore(ctx context.Context, id, datastore int) error
- func (s ClusterService) DeleteClusterHost(ctx context.Context, id, host int) error
- func (s ClusterService) DeleteClusterNetwork(ctx context.Context, id, network int) error
- func (s ClusterService) RenameCluster(ctx context.Context, id int, req cloud.RenameClusterRequest) (*cloud.RenameClusterResponse, error)
- func (s ClusterService) UpdateCluster(ctx context.Context, id int, req cloud.UpdateClusterRequest) (*cloud.UpdateClusterResponse, error)
- type ComputeService
- func (s ComputeService) ComputeHost(ctx context.Context, id int) (*cloud.ListComputeHostResponse, error)
- func (s ComputeService) ComputeHostMonitoring(ctx context.Context, id int) (*cloud.ListComputeHostMonitoringResponse, error)
- func (s ComputeService) ComputeHosts(ctx context.Context) (*cloud.ListComputeHostsResponse, error)
- func (s ComputeService) ComputeHostsMonitoring(ctx context.Context, interval time.Duration) (*cloud.ListComputeHostsMonitoringResponse, error)
- func (s ComputeService) CreateComputeHost(ctx context.Context, req cloud.CreateComputeHostRequest) (*cloud.CreateComputeHostResponse, error)
- func (s ComputeService) DeleteComputeHost(ctx context.Context, id int) error
- func (s ComputeService) RenameComputeHost(ctx context.Context, id int, req cloud.RenameComputeHostRequest) (*cloud.RenameComputeHostResponse, error)
- func (s ComputeService) SetComputeHostStatus(ctx context.Context, id int, req cloud.SetComputeHostStatusRequest) (*cloud.SetComputeHostStatusResponse, error)
- func (s ComputeService) UpdateComputeHost(ctx context.Context, id int, req cloud.UpdateComputeHostRequest) (*cloud.UpdateComputeHostResponse, error)
- type DatastoreService
- func (s DatastoreService) ChangeDatastoreOwnership(ctx context.Context, id string, req cloud.ChangeDatastoreOwnershipRequest) (*cloud.ChangeDatastoreOwnershipResponse, error)
- func (s DatastoreService) ChangeDatastorePermissions(ctx context.Context, id string, req cloud.ChangeDatastorePermissionsRequest) (*cloud.ChangeDatastorePermissionsResponse, error)
- func (s DatastoreService) CreateDatastore(ctx context.Context, req cloud.CreateDatastoreRequest) (*cloud.CreateDatastoreResponse, error)
- func (s DatastoreService) Datastore(ctx context.Context, id int) (*cloud.ListDatastoreResponse, error)
- func (s DatastoreService) Datastores(ctx context.Context) (*cloud.ListDatastoresResponse, error)
- func (s DatastoreService) DeleteDatastore(ctx context.Context, id string) error
- func (s DatastoreService) EnableDatastore(ctx context.Context, id int, req cloud.EnableDatastoreRequest) (*cloud.EnableDatastoreResponse, error)
- func (s DatastoreService) RenameDatastore(ctx context.Context, id string, req cloud.RenameDatastoreRequest) (*cloud.RenameDatastoreResponse, error)
- func (s DatastoreService) UpdateDatastore(ctx context.Context, id int, req cloud.UpdateDatastoreRequest) (*cloud.UpdateDatastoreResponse, error)
- type DocumentService
- func (s DocumentService) AllocateDocument(ctx context.Context, req cloud.AllocateDocumentRequest) (*cloud.AllocateDocumentResponse, error)
- func (s DocumentService) ChangeDocumentOwnership(ctx context.Context, id int, req cloud.ChangeDocumentOwnershipRequest) (*cloud.ChangeDocumentOwnershipResponse, error)
- func (s DocumentService) ChangeDocumentPermissions(ctx context.Context, id int, req cloud.ChangeDocumentPermissionsRequest) (*cloud.ChangeDocumentPermissionsResponse, error)
- func (s DocumentService) CloneDocument(ctx context.Context, id int, req cloud.CloneDocumentRequest) (*cloud.CloneDocumentResponse, error)
- func (s DocumentService) DeleteDocument(ctx context.Context, id int) error
- func (s DocumentService) Document(ctx context.Context, id int) (*cloud.ListDocumentResponse, error)
- func (s DocumentService) Documents(ctx context.Context) (*cloud.ListDocumentsResponse, error)
- func (s DocumentService) LockDocument(ctx context.Context, id int, req cloud.LockDocumentRequest) (*cloud.LockDocumentResponse, error)
- func (s DocumentService) RenameDocument(ctx context.Context, id int, req cloud.RenameDocumentRequest) (*cloud.RenameDocumentResponse, error)
- func (s DocumentService) UnlockDocument(ctx context.Context, id int) (*cloud.UnlockDocumentResponse, error)
- func (s DocumentService) UpdateDocument(ctx context.Context, id int, req cloud.UpdateDocumentRequest) (*cloud.UpdateDocumentResponse, error)
- type GroupService
- func (s GroupService) AddGroupAdmin(ctx context.Context, id int, req cloud.AddGroupAdminRequest) (*cloud.AddGroupAdminResponse, error)
- func (s GroupService) CreateGroup(ctx context.Context, req cloud.CreateGroupRequest) (*cloud.CreateGroupResponse, error)
- func (s GroupService) DeleteGroup(ctx context.Context, id int) error
- func (s GroupService) DeleteGroupAdmin(ctx context.Context, id, user int) error
- func (s GroupService) Group(ctx context.Context, id int) (*cloud.ListGroupResponse, error)
- func (s GroupService) GroupQuota(ctx context.Context) (*cloud.ListGroupQuotaResponse, error)
- func (s GroupService) Groups(ctx context.Context) (*cloud.ListGroupsResponse, error)
- func (s GroupService) SetGroupQuota(ctx context.Context, id int, req cloud.SetGroupQuotaRequest) (*cloud.SetGroupQuotaResponse, error)
- func (s GroupService) UpdateGroup(ctx context.Context, id int, req cloud.UpdateGroupRequest) (*cloud.UpdateGroupResponse, error)
- func (s GroupService) UpdateGroupQuota(ctx context.Context, req cloud.UpdateGroupQuotaRequest) (*cloud.UpdateGroupQuotaResponse, error)
- type HookService
- func (s HookService) CreateHook(ctx context.Context, req cloud.CreateHookRequest) (*cloud.CreateHookResponse, error)
- func (s HookService) DeleteHook(ctx context.Context, id int) error
- func (s HookService) Hook(ctx context.Context, id int) (*cloud.ListHookResponse, error)
- func (s HookService) HookLog(ctx context.Context, id int, start, end string) (*cloud.ListHookLogResponse, error)
- func (s HookService) Hooks(ctx context.Context) (*cloud.ListHooksResponse, error)
- func (s HookService) LockHook(ctx context.Context, id int, req cloud.LockHookRequest) (*cloud.LockHookResponse, error)
- func (s HookService) RenameHook(ctx context.Context, id int, req cloud.RenameHookRequest) (*cloud.RenameHookResponse, error)
- func (s HookService) RetryHook(ctx context.Context, id int, req cloud.RetryHookRequest) (*cloud.RetryHookResponse, error)
- func (s HookService) UnlockHook(ctx context.Context, id int, req cloud.UnlockHookRequest) (*cloud.UnlockHookResponse, error)
- func (s HookService) UpdateHook(ctx context.Context, id int, req cloud.UpdateHookRequest) (*cloud.UpdateHookResponse, error)
- type HostService
- type ImageService
- func (s ImageService) ChangeImageOwnership(ctx context.Context, id int, req cloud.ChangeImageOwnershipRequest) (*cloud.ChangeImageOwnershipResponse, error)
- func (s ImageService) ChangeImagePermissions(ctx context.Context, id int, req cloud.ChangeImagePermissionsRequest) (*cloud.ChangeImagePermissionsResponse, error)
- func (s ImageService) ChangeImageType(ctx context.Context, id int, req cloud.ChangeImageTypeRequest) (*cloud.ChangeImageTypeResponse, error)
- func (s ImageService) CloneImage(ctx context.Context, id int, req cloud.CloneImageRequest) (*cloud.CloneImageResponse, error)
- func (s ImageService) CreateImage(ctx context.Context, req cloud.CreateImageRequest) (*cloud.CreateImageResponse, error)
- func (s ImageService) DeleteImage(ctx context.Context, id int) error
- func (s ImageService) DeleteImageSnapshot(ctx context.Context, id, snapshot int) error
- func (s ImageService) EnableImage(ctx context.Context, id int, req cloud.EnableImageRequest) (*cloud.EnableImageResponse, error)
- func (s ImageService) FlattenImageSnapshot(ctx context.Context, id, snapshot int) (*cloud.FlattenImageSnapshotResponse, error)
- func (s ImageService) Image(ctx context.Context, id int) (*cloud.ListImageResponse, error)
- func (s ImageService) Images(ctx context.Context) (*cloud.ListImagesResponse, error)
- func (s ImageService) LockImage(ctx context.Context, id int, req cloud.LockImageRequest) (*cloud.LockImageResponse, error)
- func (s ImageService) RenameImage(ctx context.Context, id int, req cloud.RenameImageRequest) (*cloud.RenameImageResponse, error)
- func (s ImageService) RevertImageSnapshot(ctx context.Context, id, snapshot int) (*cloud.RevertImageSnapshotResponse, error)
- func (s ImageService) SetImagePersistent(ctx context.Context, id int, req cloud.SetImagePersistentRequest) (*cloud.SetImagePersistentResponse, error)
- func (s ImageService) UnlockImage(ctx context.Context, id int) (*cloud.UnlockImageResponse, error)
- func (s ImageService) UpdateImage(ctx context.Context, id int, req cloud.UpdateImageRequest) (*cloud.UpdateImageResponse, error)
- type InstanceService
- func (s InstanceService) AddInstanceSchedule(ctx context.Context, id int, req cloud.AddInstanceScheduleRequest) (*cloud.AddInstanceScheduleResponse, error)
- func (s InstanceService) AddInstanceSecurityGroup(ctx context.Context, id, nic, sg int) (*cloud.AddInstanceSecurityGroupResponse, error)
- func (s InstanceService) CalculateInstancesShowback(ctx context.Context, req cloud.CalculateInstancesShowbackRequest) error
- func (s InstanceService) ChangeInstanceGroupOwnership(ctx context.Context, id int, req cloud.ChangeInstanceGroupOwnershipRequest) (*cloud.ChangeInstanceGroupOwnershipResponse, error)
- func (s InstanceService) ChangeInstanceGroupPermissions(ctx context.Context, id int, req cloud.ChangeInstanceGroupPermissionsRequest) (*cloud.ChangeInstanceGroupPermissionsResponse, error)
- func (s InstanceService) ChangeInstanceOwnership(ctx context.Context, id int, req cloud.ChangeInstanceOwnershipRequest) (*cloud.ChangeInstanceOwnershipResponse, error)
- func (s InstanceService) ChangeInstancePermissions(ctx context.Context, id int, req cloud.ChangeInstancePermissionsRequest) (*cloud.ChangeInstancePermissionsResponse, error)
- func (s InstanceService) CreateInstance(ctx context.Context, req cloud.CreateInstanceRequest) (*cloud.CreateInstanceResponse, error)
- func (s InstanceService) CreateInstanceDisk(ctx context.Context, id int, req cloud.CreateInstanceDiskRequest) (*cloud.CreateInstanceDiskResponse, error)
- func (s InstanceService) CreateInstanceDiskImage(ctx context.Context, id, disk int, req cloud.CreateInstanceDiskImageRequest) (*cloud.CreateInstanceDiskImageResponse, error)
- func (s InstanceService) CreateInstanceDiskSnapshot(ctx context.Context, id, disk int, req cloud.CreateInstanceDiskSnapshotRequest) (*cloud.CreateInstanceDiskSnapshotResponse, error)
- func (s InstanceService) CreateInstanceNIC(ctx context.Context, id int, req cloud.CreateInstanceNICRequest) (*cloud.CreateInstanceNICResponse, error)
- func (s InstanceService) CreateInstanceSnapshot(ctx context.Context, id int, req cloud.CreateInstanceSnapshotRequest) (*cloud.CreateInstanceSnapshotResponse, error)
- func (s InstanceService) CreateVNCProxy(ctx context.Context, id int, req cloud.CreateVNCProxyRequest) (*cloud.CreateVNCProxyResponse, error)
- func (s InstanceService) DeleteInstanceDisk(ctx context.Context, id, disk int) error
- func (s InstanceService) DeleteInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int) error
- func (s InstanceService) DeleteInstanceGroup(ctx context.Context, id int) error
- func (s InstanceService) DeleteInstanceNIC(ctx context.Context, id, nic int) error
- func (s InstanceService) DeleteInstanceSchedule(ctx context.Context, id, schedule int) error
- func (s InstanceService) DeleteInstanceSecurityGroup(ctx context.Context, id, nic int) error
- func (s InstanceService) DeleteInstanceSnapshot(ctx context.Context, id, snapshot int) error
- func (s InstanceService) DeployInstance(ctx context.Context, id int, req cloud.DeployInstanceRequest) (*cloud.DeployInstanceResponse, error)
- func (s InstanceService) Instance(ctx context.Context, id int) (*cloud.ListInstanceResponse, error)
- func (s InstanceService) InstanceGroup(ctx context.Context, id int) (*cloud.ListInstanceGroupResponse, error)
- func (s InstanceService) InstanceGroups(ctx context.Context) (*cloud.ListInstanceGroupsResponse, error)
- func (s InstanceService) InstanceMonitoringData(ctx context.Context, id int) (*cloud.ListInstanceMonitoringResponse, error)
- func (s InstanceService) InstanceShowback(ctx context.Context, filter cloud.Filter, monthStart, monthEnd time.Month, ...) (*cloud.ListInstancesShowbackResponse, error)
- func (s InstanceService) Instances(ctx context.Context, state instance.State, extended bool) (*cloud.ListInstancesResponse, error)
- func (s InstanceService) InstancesAccountingData(ctx context.Context, filter cloud.Filter, start, end time.Time) (*cloud.ListInstancesAccountingResponse, error)
- func (s InstanceService) InstancesMonitoringData(ctx context.Context, filter cloud.Filter, seconds int) (*cloud.ListInstancesMonitoringResponse, error)
- func (s InstanceService) InstancesSet(ctx context.Context, ids ...int) (*cloud.ListInstancesResponse, error)
- func (s InstanceService) LockInstance(ctx context.Context, id int, req cloud.LockInstanceRequest) (*cloud.LockInstanceResponse, error)
- func (s InstanceService) LockInstanceGroup(ctx context.Context, id int, req cloud.LockInstanceGroupRequest) (*cloud.LockInstanceGroupResponse, error)
- func (s InstanceService) MoveInstance(ctx context.Context, id int, req cloud.MoveInstanceRequest) (*cloud.MoveInstanceResponse, error)
- func (s InstanceService) RecoverInstance(ctx context.Context, id int, req cloud.RecoverInstanceRequest) (*cloud.RecoverInstanceResponse, error)
- func (s InstanceService) RenameInstance(ctx context.Context, id int, req cloud.RenameInstanceRequest) (*cloud.RenameInstanceResponse, error)
- func (s InstanceService) RenameInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int, ...) (*cloud.RenameInstanceDiskSnapshotResponse, error)
- func (s InstanceService) RenameInstanceGroup(ctx context.Context, id int, req cloud.RenameInstanceGroupRequest) (*cloud.RenameInstanceGroupResponse, error)
- func (s InstanceService) ResizeInstance(ctx context.Context, id int, req cloud.ResizeInstanceRequest) (*cloud.ResizeInstanceResponse, error)
- func (s InstanceService) ResizeInstanceDisk(ctx context.Context, id, disk int, req cloud.ResizeInstanceDiskRequest) (*cloud.ResizeInstanceDiskResponse, error)
- func (s InstanceService) RevertInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int) (*cloud.RevertInstanceDiskSnapshotResponse, error)
- func (s InstanceService) RevertInstanceSnapshot(ctx context.Context, id, snapshot int) (*cloud.RevertInstanceSnapshotResponse, error)
- func (s InstanceService) SetInstanceAction(ctx context.Context, id int, req cloud.SetInstanceActionRequest) (*cloud.SetInstanceActionResponse, error)
- func (s InstanceService) UnlockInstance(ctx context.Context, id int) (*cloud.UnlockInstanceResponse, error)
- func (s InstanceService) UnlockInstanceGroup(ctx context.Context, id int) (*cloud.UnlockInstanceGroupResponse, error)
- func (s InstanceService) UpdateInstanceConfig(ctx context.Context, id int, req cloud.UpdateInstanceConfigRequest) (*cloud.UpdateInstanceConfigResponse, error)
- func (s InstanceService) UpdateInstanceGroup(ctx context.Context, id int, req *cloud.UpdateInstanceGroupRequest) (*cloud.UpdateInstanceGroupResponse, error)
- func (s InstanceService) UpdateInstanceSchedule(ctx context.Context, id int, req cloud.UpdateInstanceScheduleRequest) (*cloud.UpdateInstanceScheduleResponse, error)
- func (s InstanceService) UpdateInstanceTemplate(ctx context.Context, id int, req cloud.UpdateInstanceTemplateRequest) (*cloud.UpdateInstanceTemplateResponse, error)
- type MarketService
- func (s MarketService) ChangeMarketAppOwnership(ctx context.Context, id, app int, req cloud.ChangeMarketAppOwnershipRequest) (*cloud.ChangeMarketAppOwnershipResponse, error)
- func (s MarketService) ChangeMarketAppPermissions(ctx context.Context, id, app int, req cloud.ChangeMarketAppPermissionsRequest) (*cloud.ChangeMarketAppPermissionsResponse, error)
- func (s MarketService) ChangeMarketOwnership(ctx context.Context, id int, req cloud.ChangeMarketOwnershipRequest) (*cloud.ChangeMarketOwnershipResponse, error)
- func (s MarketService) ChangeMarketPermissions(ctx context.Context, id int, req cloud.ChangeMarketPermissionsRequest) (*cloud.ChangeMarketPermissionsResponse, error)
- func (s MarketService) CreateMarket(ctx context.Context, req cloud.CreateMarketRequest) (*cloud.CreateMarketResponse, error)
- func (s MarketService) CreateMarketApp(ctx context.Context, id int, req cloud.CreateMarketAppRequest) (*cloud.CreateMarketAppResponse, error)
- func (s MarketService) DeleteMarket(ctx context.Context, id int) error
- func (s MarketService) DeleteMarketApp(ctx context.Context, id, app int) error
- func (s MarketService) EnableMarket(ctx context.Context, id int, req cloud.EnableMarketRequest) (*cloud.EnableMarketResponse, error)
- func (s MarketService) EnableMarketApp(ctx context.Context, id, app int, req cloud.EnableMarketAppRequest) (*cloud.EnableMarketAppResponse, error)
- func (s MarketService) LockMarketApp(ctx context.Context, id, app int, req cloud.LockMarketAppRequest) (*cloud.LockMarketAppResponse, error)
- func (s MarketService) Market(ctx context.Context, id int) (*cloud.ListMarketResponse, error)
- func (s MarketService) MarketApp(ctx context.Context, id int) (*cloud.ListMarketAppResponse, error)
- func (s MarketService) MarketApps(ctx context.Context) (*cloud.ListMarketAppsResponse, error)
- func (s MarketService) Markets(ctx context.Context) (*cloud.ListMarketsResponse, error)
- func (s MarketService) RenameMarket(ctx context.Context, id int, req cloud.RenameMarketRequest) (*cloud.RenameMarketResponse, error)
- func (s MarketService) RenameMarketApp(ctx context.Context, id, app int, req cloud.RenameMarketAppRequest) (*cloud.RenameMarketAppResponse, error)
- func (s MarketService) UnlockMarketApp(ctx context.Context, id, app int) (*cloud.UnlockMarketAppResponse, error)
- func (s MarketService) UpdateMarket(ctx context.Context, id int, req cloud.UpdateMarketRequest) (*cloud.UpdateMarketResponse, error)
- func (s MarketService) UpdateMarketApp(ctx context.Context, id, app int, req cloud.UpdateMarketAppRequest) (*cloud.UpdateMarketAppResponse, error)
- type SecurityGroupService
- func (s SecurityGroupService) ChangeSecurityGroupOwnership(ctx context.Context, id int, req cloud.ChangeSecurityGroupOwnershipRequest) (*cloud.ChangeSecurityGroupOwnershipResponse, error)
- func (s SecurityGroupService) ChangeSecurityGroupPermissions(ctx context.Context, id int, req cloud.ChangeSecurityGroupPermissionsRequest) (*cloud.ChangeSecurityGroupPermissionsResponse, error)
- func (s SecurityGroupService) CloneSecurityGroup(ctx context.Context, id int, req cloud.CloneSecurityGroupRequest) (*cloud.CloneSecurityGroupResponse, error)
- func (s SecurityGroupService) CommitSecurityGroup(ctx context.Context, id int, req cloud.CommitSecurityGroupRequest) (*cloud.CommitSecurityGroupResponse, error)
- func (s SecurityGroupService) CreateSecurityGroup(ctx context.Context, req cloud.CreateSecurityGroupRequest) (*cloud.CreateSecurityGroupResponse, error)
- func (s SecurityGroupService) DeleteSecurityGroup(ctx context.Context, id int) error
- func (s SecurityGroupService) RenameSecurityGroup(ctx context.Context, id int, req cloud.RenameSecurityGroupRequest) (*cloud.RenameSecurityGroupResponse, error)
- func (s SecurityGroupService) SecurityGroup(ctx context.Context, id int) (*cloud.ListSecurityGroupResponse, error)
- func (s SecurityGroupService) SecurityGroups(ctx context.Context) (*cloud.ListSecurityGroupsResponse, error)
- func (s SecurityGroupService) UpdateSecurityGroup(ctx context.Context, id int, req cloud.UpdateSecurityGroupRequest) (*cloud.UpdateSecurityGroupResponse, error)
- type StorageService
- func (s StorageService) StorageDisks(ctx context.Context) (*storage.ListDisksResponse, error)
- func (s StorageService) StorageHost(ctx context.Context, host string) (*storage.ListHostResponse, error)
- func (s StorageService) StorageHostDisk(ctx context.Context, host, disk string) (*storage.ListHostDiskResponse, error)
- func (s StorageService) StorageHostDisks(ctx context.Context, host string) (*storage.ListHostDisksResponse, error)
- func (s StorageService) StorageHostVolumeGroup(ctx context.Context, host, vg string) (*storage.ListHostVolumeGroupResponse, error)
- func (s StorageService) StorageHostVolumeGroups(ctx context.Context, host string) (*storage.ListHostVolumeGroupsResponse, error)
- func (s StorageService) StorageHosts(ctx context.Context) (*storage.ListHostsResponse, error)
- func (s StorageService) StorageOSD(ctx context.Context, osd uint) (*storage.ListOSDResponse, error)
- func (s StorageService) StorageOSDs(ctx context.Context) (*storage.ListOSDsResponse, error)
- func (s StorageService) StoragePool(ctx context.Context, pool uint) (*storage.ListPoolResponse, error)
- func (s StorageService) StoragePools(ctx context.Context) (*storage.ListPoolsResponse, error)
- func (s StorageService) StorageShareRBD(ctx context.Context, rbd string) (*storage.ListShareRBDResponse, error)
- func (s StorageService) StorageShareRBDs(ctx context.Context) (*storage.ListShareRBDsResponse, error)
- func (s StorageService) StorageSummary(ctx context.Context) (*storage.ListSummaryResponse, error)
- type SystemService
- type TemplateService
- func (s TemplateService) ChangeTemplateOwnership(ctx context.Context, id int, req cloud.ChangeTemplateOwnershipRequest) (*cloud.ChangeTemplateOwnershipResponse, error)
- func (s TemplateService) ChangeTemplatePermissions(ctx context.Context, id int, req cloud.ChangeTemplatePermissionsRequest) (*cloud.ChangeTemplatePermissionsResponse, error)
- func (s TemplateService) CloneTemplate(ctx context.Context, id int, req cloud.CloneTemplateRequest) (*cloud.CloneTemplateResponse, error)
- func (s TemplateService) CreateTemplate(ctx context.Context, req cloud.CreateTemplateRequest) (*cloud.CreateTemplateResponse, error)
- func (s TemplateService) DeleteTemplate(ctx context.Context, id int) error
- func (s TemplateService) InstantiateTemplate(ctx context.Context, id int, req cloud.InstantiateTemplateRequest) (*cloud.InstantiateTemplateResponse, error)
- func (s TemplateService) LockTemplate(ctx context.Context, id int, req cloud.LockTemplateRequest) (*cloud.LockTemplateResponse, error)
- func (s TemplateService) RenameTemplate(ctx context.Context, id int, req cloud.RenameTemplateRequest) (*cloud.RenameTemplateResponse, error)
- func (s TemplateService) Template(ctx context.Context, id int) (*cloud.ListTemplateResponse, error)
- func (s TemplateService) Templates(ctx context.Context) (*cloud.ListTemplatesResponse, error)
- func (s TemplateService) UnlockTemplate(ctx context.Context, id int) (*cloud.UnlockTemplateResponse, error)
- func (s TemplateService) UpdateTemplate(ctx context.Context, id int, req cloud.UpdateTemplateRequest) (*cloud.UpdateTemplateResponse, error)
- type UserService
- func (s UserService) AddUserGroup(ctx context.Context, id, group int) (*cloud.AddUserGroupResponse, error)
- func (s UserService) ChangeUserAuth(ctx context.Context, id int, req cloud.ChangeUserAuthRequest) (*cloud.ChangeUserAuthResponse, error)
- func (s UserService) ChangeUserGroup(ctx context.Context, id, group int) (*cloud.ChangeUserGroupResponse, error)
- func (s UserService) ChangeUserPassword(ctx context.Context, id int, req cloud.ChangeUserPasswordRequest) (*cloud.ChangeUserPasswordResponse, error)
- func (s UserService) CreateUser(ctx context.Context, req cloud.CreateUserRequest) (*cloud.CreateUserResponse, error)
- func (s UserService) DeleteUser(ctx context.Context, id int) error
- func (s UserService) DeleteUserGroup(ctx context.Context, id, group int) error
- func (s UserService) EnableUser(ctx context.Context, id int, req cloud.EnableUserRequest) (*cloud.EnableUserResponse, error)
- func (s UserService) SetUserQuota(ctx context.Context, id int, req cloud.SetUserQuotaRequest) (*cloud.SetUserQuotaResponse, error)
- func (s UserService) UpdateDefaultUserQuota(ctx context.Context, req cloud.UpdateDefaultUserQuotaRequest) (*cloud.UpdateDefaultUserQuotaResponse, error)
- func (s UserService) UpdateUser(ctx context.Context, id int, req cloud.UpdateUserRequest) (*cloud.UpdateUserResponse, error)
- func (s UserService) User(ctx context.Context, id int) (*cloud.ListUserResponse, error)
- func (s UserService) UserQuota(ctx context.Context) (*cloud.ListUserQuotaResponse, error)
- func (s UserService) Users(ctx context.Context) (*cloud.ListUsersResponse, error)
- type VNetService
- func (s VNetService) AddVNetAddressRange(ctx context.Context, id int, req cloud.AddVNetAddressRangeRequest) (*cloud.AddVNetAddressRangeResponse, error)
- func (s VNetService) ChangeVNetOwnership(ctx context.Context, id int, req cloud.ChangeVNetOwnershipRequest) (*cloud.ChangeVNetOwnershipResponse, error)
- func (s VNetService) ChangeVNetPermissions(ctx context.Context, id int, req cloud.ChangeVNetPermissionsRequest) (*cloud.ChangeVNetPermissionsResponse, error)
- func (s VNetService) ChangeVNetTemplateOwnership(ctx context.Context, id int, req cloud.ChangeVNetTemplateOwnershipRequest) (*cloud.ChangeVNetTemplateOwnershipResponse, error)
- func (s VNetService) ChangeVNetTemplatePermissions(ctx context.Context, id int, req cloud.ChangeVNetTemplatePermissionsRequest) (*cloud.ChangeVNetTemplatePermissionsResponse, error)
- func (s VNetService) CloneVNetTemplate(ctx context.Context, id int, req cloud.CloneVNetTemplateRequest) (*cloud.CloneVNetTemplateResponse, error)
- func (s VNetService) CreateVNet(ctx context.Context, req cloud.CreateVNetRequest) (*cloud.CreateVNetResponse, error)
- func (s VNetService) CreateVNetTemplate(ctx context.Context, req cloud.CreateVNetTemplateRequest) (*cloud.CreateVNetTemplateResponse, error)
- func (s VNetService) DeleteVNet(ctx context.Context, id int) error
- func (s VNetService) DeleteVNetAddressRange(ctx context.Context, id, ar int) error
- func (s VNetService) DeleteVNetTemplate(ctx context.Context, id int) error
- func (s VNetService) FreeVNetAddressRange(ctx context.Context, id, ar int) error
- func (s VNetService) HoldVNet(ctx context.Context, id int, req cloud.HoldVNetRequest) (*cloud.HoldVNetResponse, error)
- func (s VNetService) InstantiateVNetTemplate(ctx context.Context, id int, req cloud.InstantiateVNetTemplateRequest) (*cloud.InstantiateVNetTemplateResponse, error)
- func (s VNetService) LockVNet(ctx context.Context, id int, req cloud.LockVNetRequest) (*cloud.LockVNetResponse, error)
- func (s VNetService) LockVNetTemplate(ctx context.Context, id int, req cloud.LockVNetTemplateRequest) (*cloud.LockVNetTemplateResponse, error)
- func (s VNetService) RecoverVNets(ctx context.Context, id int, req cloud.RecoverVNetRequest) (*cloud.RecoverVNetResponse, error)
- func (s VNetService) ReleaseVNet(ctx context.Context, id int, req cloud.ReleaseVNetRequest) (*cloud.ReleaseVNetResponse, error)
- func (s VNetService) RenameVNet(ctx context.Context, id int, req cloud.RenameVNetRequest) (*cloud.RenameVNetResponse, error)
- func (s VNetService) RenameVNetTemplate(ctx context.Context, id int, req cloud.RenameVNetTemplateRequest) (*cloud.RenameVNetTemplateResponse, error)
- func (s VNetService) ReserveVNet(ctx context.Context, id int, req cloud.ReserveVNetRequest) (*cloud.ReserveVNetResponse, error)
- func (s VNetService) UnlockVNet(ctx context.Context, id int) (*cloud.UnlockVNetResponse, error)
- func (s VNetService) UnlockVNetTemplate(ctx context.Context, id int) (*cloud.UnlockVNetTemplateResponse, error)
- func (s VNetService) UpdateVNet(ctx context.Context, id int, req cloud.UpdateVNetRequest) (*cloud.UpdateVNetResponse, error)
- func (s VNetService) UpdateVNetAddressRange(ctx context.Context, id int, req cloud.UpdateVNetAddressRangeRequest) (*cloud.UpdateVNetAddressRangeResponse, error)
- func (s VNetService) UpdateVNetTemplate(ctx context.Context, id int, req cloud.UpdateVNetTemplateRequest) (*cloud.UpdateVNetTemplateResponse, error)
- func (s VNetService) VNet(ctx context.Context, id int) (*cloud.ListVNetResponse, error)
- func (s VNetService) VNetTemplate(ctx context.Context, id int) (*cloud.ListVNetTemplateResponse, error)
- func (s VNetService) VNetTemplates(ctx context.Context) (*cloud.ListVNetTemplatesResponse, error)
- func (s VNetService) VNets(ctx context.Context) (*cloud.ListVNetsResponse, error)
- type VRouterService
- func (s VRouterService) ChangeVRouterOwnership(ctx context.Context, id int, req cloud.ChangeVRouterOwnershipRequest) (*cloud.ChangeVRouterOwnershipResponse, error)
- func (s VRouterService) ChangeVRouterPermissions(ctx context.Context, id int, req cloud.ChangeVRouterPermissionsRequest) (*cloud.ChangeVRouterPermissionsResponse, error)
- func (s VRouterService) CreateVRouter(ctx context.Context, req cloud.CreateVRouterRequest) (*cloud.CreateVRouterResponse, error)
- func (s VRouterService) CreateVRouterNIC(ctx context.Context, id int, req cloud.CreateVRouterNICRequest) (*cloud.CreateVRouterNICResponse, error)
- func (s VRouterService) DeleteVRouter(ctx context.Context, id int) error
- func (s VRouterService) DeleteVRouterNIC(ctx context.Context, id int) error
- func (s VRouterService) InstantiateVRouter(ctx context.Context, id int, req cloud.InstantiateVRouterRequest) (*cloud.InstantiateVRouterResponse, error)
- func (s VRouterService) LockVRouter(ctx context.Context, id int, req cloud.LockVRouterRequest) (*cloud.LockVRouterResponse, error)
- func (s VRouterService) RenameVRouter(ctx context.Context, id int, req cloud.RenameVRouterRequest) (*cloud.RenameVRouterResponse, error)
- func (s VRouterService) UnlockVRouter(ctx context.Context, id int) (*cloud.UnlockVRouterResponse, error)
- func (s VRouterService) UpdateVRouter(ctx context.Context, id int, req cloud.UpdateVRouterRequest) (*cloud.UpdateVRouterResponse, error)
- func (s VRouterService) VRouter(ctx context.Context, id int) (*cloud.ListVRouterResponse, error)
- func (s VRouterService) VRouters(ctx context.Context) (*cloud.ListVRoutersResponse, error)
- type VirtualDataCenterService
- func (s VirtualDataCenterService) AddVirtualDataCenterCluster(ctx context.Context, id, zone, cluster int) (*cloud.AddVDCClusterResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterDatastore(ctx context.Context, id, zone, datastore int) (*cloud.AddVDCDatastoreResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterGroup(ctx context.Context, id int) (*cloud.AddVDCGroupResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterHost(ctx context.Context, id, zone, host int) (*cloud.AddVDCHostResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterNetwork(ctx context.Context, id, zone, network int) (*cloud.AddVDCNetworkResponse, error)
- func (s VirtualDataCenterService) CreateVirtualDataCenter(ctx context.Context, req cloud.CreateVDCRequest) (*cloud.CreateVDCResponse, error)
- func (s VirtualDataCenterService) DeleteVirtualDataCenter(ctx context.Context, id int) error
- func (s VirtualDataCenterService) RemoveVDCCluster(ctx context.Context, id, zone, cluster int) error
- func (s VirtualDataCenterService) RemoveVDCDatastore(ctx context.Context, id, zone, datastore int) error
- func (s VirtualDataCenterService) RemoveVDCGroup(ctx context.Context, id, group int) error
- func (s VirtualDataCenterService) RemoveVDCHost(ctx context.Context, id, zone, host int) error
- func (s VirtualDataCenterService) RemoveVDCNetwork(ctx context.Context, id, zone, network int) error
- func (s VirtualDataCenterService) RenameVirtualDataCenter(ctx context.Context, id int, req cloud.RenameVDCRequest) (*cloud.RenameVDCResponse, error)
- func (s VirtualDataCenterService) UpdateVirtualDataCenter(ctx context.Context, id int, req cloud.UpdateVDCRequest) (*cloud.UpdateVDCResponse, error)
- func (s VirtualDataCenterService) VirtualDataCenter(ctx context.Context, id int) (*cloud.ListVDCResponse, error)
- func (s VirtualDataCenterService) VirtualDataCenters(ctx context.Context) (*cloud.ListVDCsResponse, error)
- type ZoneService
- func (s ZoneService) CreateZone(ctx context.Context, req cloud.CreateZoneRequest) (*cloud.CreateZoneResponse, error)
- func (s ZoneService) DeleteZone(ctx context.Context, id int) error
- func (s ZoneService) EnableZone(ctx context.Context, id int, req cloud.EnableZoneRequest) (*cloud.EnableZoneResponse, error)
- func (s ZoneService) RenameZone(ctx context.Context, id int, req cloud.RenameZoneRequest) (*cloud.RenameZoneResponse, error)
- func (s ZoneService) UpdateZone(ctx context.Context, id int, req cloud.UpdateZoneRequest) (*cloud.UpdateZoneResponse, error)
- func (s ZoneService) Zone(ctx context.Context, id int) (*cloud.ListZoneResponse, error)
- func (s ZoneService) Zones(ctx context.Context) (*cloud.ListZonesResponse, error)
- func (s ZoneService) ZonesRaftStatus(ctx context.Context) (*cloud.ListZonesRaftStatusResponse, error)
Constants ¶
const ( PortNumber = 7434 // PortNumber is the default port for `sifid` (sifi on a keypad). ServiceName = "sifid" // ServiceName is the public name of the SIFI service. )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLService ¶
ACLService owns the /acl methods.
func (ACLService) ACLs ¶
func (s ACLService) ACLs(ctx context.Context) (*cloud.ListACLsResponse, error)
ACLs returns a slice containing all of the Access Control Lists.
func (ACLService) CreateACL ¶
func (s ACLService) CreateACL(ctx context.Context, req cloud.CreateACLRequest) (*cloud.CreateACLResponse, error)
CreateACL creates a new Access Control List and returns its id.
type Client ¶
type Client struct {
ACLService
ClusterService
ComputeService
DatastoreService
DocumentService
GroupService
HookService
HostService
ImageService
InstanceService
MarketService
SecurityGroupService
StorageService
SystemService
TemplateService
UserService
VNetService
VRouterService
VirtualDataCenterService
ZoneService
*client.Client
V1 v1.Client // deprecated API
}
Client is a connection to the SIFI service.
type ClusterService ¶
ClusterService owns the /cluster methods.
func (ClusterService) AddClusterDatastore ¶
func (s ClusterService) AddClusterDatastore(ctx context.Context, id, datastore int) (*cloud.AddClusterDatastoreResponse, error)
AddClusterDatastore adds the datastore to the cluster.
func (ClusterService) AddClusterHost ¶
func (s ClusterService) AddClusterHost(ctx context.Context, id, host int) (*cloud.AddClusterHostResponse, error)
AddClusterHost adds the host to the cluster.
func (ClusterService) AddClusterNetwork ¶
func (s ClusterService) AddClusterNetwork(ctx context.Context, id, network int) (*cloud.AddClusterNetworkResponse, error)
AddClusterNetwork adds the network to the cluster.
func (ClusterService) Cluster ¶
func (s ClusterService) Cluster(ctx context.Context, id int) (*cloud.ListClusterResponse, error)
Cluster returns information about a cluster.
func (ClusterService) Clusters ¶
func (s ClusterService) Clusters(ctx context.Context) (*cloud.ListClustersResponse, error)
Clusters returns information about all clusters.
func (ClusterService) CreateCluster ¶
func (s ClusterService) CreateCluster(ctx context.Context, req cloud.CreateClusterRequest) (*cloud.CreateClusterResponse, error)
CreateCluster creates a cluster.
func (ClusterService) DeleteCluster ¶
func (s ClusterService) DeleteCluster(ctx context.Context, id int) error
DeleteCluster deletes the cluster with the given ID.
func (ClusterService) DeleteClusterDatastore ¶
func (s ClusterService) DeleteClusterDatastore(ctx context.Context, id, datastore int) error
DeleteClusterDatastore deletes the datastore from the cluster.
func (ClusterService) DeleteClusterHost ¶
func (s ClusterService) DeleteClusterHost(ctx context.Context, id, host int) error
DeleteClusterHost deletes the host from the cluster.
func (ClusterService) DeleteClusterNetwork ¶
func (s ClusterService) DeleteClusterNetwork(ctx context.Context, id, network int) error
DeleteClusterNetwork deletes the network from the cluster.
func (ClusterService) RenameCluster ¶
func (s ClusterService) RenameCluster(ctx context.Context, id int, req cloud.RenameClusterRequest) (*cloud.RenameClusterResponse, error)
RenameCluster updates the name of the cluster.
func (ClusterService) UpdateCluster ¶
func (s ClusterService) UpdateCluster(ctx context.Context, id int, req cloud.UpdateClusterRequest) (*cloud.UpdateClusterResponse, error)
UpdateCluster updates the cluster.
type ComputeService ¶
ComputeService owns the /compute methods.
func (ComputeService) ComputeHost ¶
func (s ComputeService) ComputeHost(ctx context.Context, id int) (*cloud.ListComputeHostResponse, error)
ComputeHost returns information about a compute host.
func (ComputeService) ComputeHostMonitoring ¶
func (s ComputeService) ComputeHostMonitoring(ctx context.Context, id int) (*cloud.ListComputeHostMonitoringResponse, error)
ComputeHostMonitoring returns monitoring data for a compute host.
func (ComputeService) ComputeHosts ¶
func (s ComputeService) ComputeHosts(ctx context.Context) (*cloud.ListComputeHostsResponse, error)
ComputeHosts returns information about all compute hosts.
func (ComputeService) ComputeHostsMonitoring ¶
func (s ComputeService) ComputeHostsMonitoring(ctx context.Context, interval time.Duration) (*cloud.ListComputeHostsMonitoringResponse, error)
ComputeHostsMonitoring returns monitoring data for all compute hosts.
func (ComputeService) CreateComputeHost ¶
func (s ComputeService) CreateComputeHost(ctx context.Context, req cloud.CreateComputeHostRequest) (*cloud.CreateComputeHostResponse, error)
CreateComputeHost creates a new compute host.
func (ComputeService) DeleteComputeHost ¶
func (s ComputeService) DeleteComputeHost(ctx context.Context, id int) error
DeleteComputeHost deletes the compute host with the given ID.
func (ComputeService) RenameComputeHost ¶
func (s ComputeService) RenameComputeHost(ctx context.Context, id int, req cloud.RenameComputeHostRequest) (*cloud.RenameComputeHostResponse, error)
RenameComputeHost renames the compute host with the given ID.
func (ComputeService) SetComputeHostStatus ¶
func (s ComputeService) SetComputeHostStatus(ctx context.Context, id int, req cloud.SetComputeHostStatusRequest) (*cloud.SetComputeHostStatusResponse, error)
SetComputeHostStatus sets the status of the compute host with the given ID.
func (ComputeService) UpdateComputeHost ¶
func (s ComputeService) UpdateComputeHost(ctx context.Context, id int, req cloud.UpdateComputeHostRequest) (*cloud.UpdateComputeHostResponse, error)
UpdateComputeHost updates the compute host with the given ID.
type DatastoreService ¶
DatastoreService owns the /datastore methods.
func (DatastoreService) ChangeDatastoreOwnership ¶
func (s DatastoreService) ChangeDatastoreOwnership(ctx context.Context, id string, req cloud.ChangeDatastoreOwnershipRequest) (*cloud.ChangeDatastoreOwnershipResponse, error)
ChangeDatastoreOwnership changes the datastore ownership with the given ID.
func (DatastoreService) ChangeDatastorePermissions ¶
func (s DatastoreService) ChangeDatastorePermissions(ctx context.Context, id string, req cloud.ChangeDatastorePermissionsRequest) (*cloud.ChangeDatastorePermissionsResponse, error)
ChangeDatastorePermissions changes the datastore permissions with the given ID.
func (DatastoreService) CreateDatastore ¶
func (s DatastoreService) CreateDatastore(ctx context.Context, req cloud.CreateDatastoreRequest) (*cloud.CreateDatastoreResponse, error)
CreateDatastore creates a new datastore.
func (DatastoreService) Datastore ¶
func (s DatastoreService) Datastore(ctx context.Context, id int) (*cloud.ListDatastoreResponse, error)
Datastore returns information about a datastore.
func (DatastoreService) Datastores ¶
func (s DatastoreService) Datastores(ctx context.Context) (*cloud.ListDatastoresResponse, error)
Datastores returns information about all datastores.
func (DatastoreService) DeleteDatastore ¶
func (s DatastoreService) DeleteDatastore(ctx context.Context, id string) error
DeleteDatastore deletes the datastore with the given ID.
func (DatastoreService) EnableDatastore ¶
func (s DatastoreService) EnableDatastore(ctx context.Context, id int, req cloud.EnableDatastoreRequest) (*cloud.EnableDatastoreResponse, error)
EnableDatastore enables the datastore with the given ID.
func (DatastoreService) RenameDatastore ¶
func (s DatastoreService) RenameDatastore(ctx context.Context, id string, req cloud.RenameDatastoreRequest) (*cloud.RenameDatastoreResponse, error)
RenameDatastore renames the datastore with the given ID.
func (DatastoreService) UpdateDatastore ¶
func (s DatastoreService) UpdateDatastore(ctx context.Context, id int, req cloud.UpdateDatastoreRequest) (*cloud.UpdateDatastoreResponse, error)
UpdateDatastore updates the datastore with the given ID.
type DocumentService ¶
DocumentService owns the /document methods.
func (DocumentService) AllocateDocument ¶
func (s DocumentService) AllocateDocument(ctx context.Context, req cloud.AllocateDocumentRequest) (*cloud.AllocateDocumentResponse, error)
AllocateDocument allocates a document.
func (DocumentService) ChangeDocumentOwnership ¶
func (s DocumentService) ChangeDocumentOwnership(ctx context.Context, id int, req cloud.ChangeDocumentOwnershipRequest) (*cloud.ChangeDocumentOwnershipResponse, error)
ChangeDocumentOwnership changes the ownership of the document with the given ID.
func (DocumentService) ChangeDocumentPermissions ¶
func (s DocumentService) ChangeDocumentPermissions(ctx context.Context, id int, req cloud.ChangeDocumentPermissionsRequest) (*cloud.ChangeDocumentPermissionsResponse, error)
ChangeDocumentPermissions changes the permissions of the document with the given ID.
func (DocumentService) CloneDocument ¶
func (s DocumentService) CloneDocument(ctx context.Context, id int, req cloud.CloneDocumentRequest) (*cloud.CloneDocumentResponse, error)
CloneDocument clones the document with the given ID.
func (DocumentService) DeleteDocument ¶
func (s DocumentService) DeleteDocument(ctx context.Context, id int) error
DeleteDocument deletes a document with the given ID.
func (DocumentService) Document ¶
func (s DocumentService) Document(ctx context.Context, id int) (*cloud.ListDocumentResponse, error)
Document returns information about the document with the given ID.
func (DocumentService) Documents ¶
func (s DocumentService) Documents(ctx context.Context) (*cloud.ListDocumentsResponse, error)
Documents returns information about all documents.
func (DocumentService) LockDocument ¶
func (s DocumentService) LockDocument(ctx context.Context, id int, req cloud.LockDocumentRequest) (*cloud.LockDocumentResponse, error)
LockDocument locks the document with the given ID.
func (DocumentService) RenameDocument ¶
func (s DocumentService) RenameDocument(ctx context.Context, id int, req cloud.RenameDocumentRequest) (*cloud.RenameDocumentResponse, error)
RenameDocument renames the document with the given ID.
func (DocumentService) UnlockDocument ¶
func (s DocumentService) UnlockDocument(ctx context.Context, id int) (*cloud.UnlockDocumentResponse, error)
UnlockDocument unlocks the document with the given ID.
func (DocumentService) UpdateDocument ¶
func (s DocumentService) UpdateDocument(ctx context.Context, id int, req cloud.UpdateDocumentRequest) (*cloud.UpdateDocumentResponse, error)
UpdateDocument updates the document with the given ID.
type GroupService ¶
GroupService owns the /group methods.
func (GroupService) AddGroupAdmin ¶
func (s GroupService) AddGroupAdmin(ctx context.Context, id int, req cloud.AddGroupAdminRequest) (*cloud.AddGroupAdminResponse, error)
AddGroupAdmin adds a group admin to the group with the given ID.
func (GroupService) CreateGroup ¶
func (s GroupService) CreateGroup(ctx context.Context, req cloud.CreateGroupRequest) (*cloud.CreateGroupResponse, error)
CreateGroup creates a new group.
func (GroupService) DeleteGroup ¶
func (s GroupService) DeleteGroup(ctx context.Context, id int) error
DeleteGroup deletes the group with the given ID.
func (GroupService) DeleteGroupAdmin ¶
func (s GroupService) DeleteGroupAdmin(ctx context.Context, id, user int) error
DeleteGroupAdmin deletes the group admin from the group with the given ID.
func (GroupService) Group ¶
func (s GroupService) Group(ctx context.Context, id int) (*cloud.ListGroupResponse, error)
Group returns information about a group.
func (GroupService) GroupQuota ¶
func (s GroupService) GroupQuota(ctx context.Context) (*cloud.ListGroupQuotaResponse, error)
GroupQuota returns the default group quota.
func (GroupService) Groups ¶
func (s GroupService) Groups(ctx context.Context) (*cloud.ListGroupsResponse, error)
Groups returns information about all groups.
func (GroupService) SetGroupQuota ¶
func (s GroupService) SetGroupQuota(ctx context.Context, id int, req cloud.SetGroupQuotaRequest) (*cloud.SetGroupQuotaResponse, error)
SetGroupQuota sets the quota for the group with the given ID.
func (GroupService) UpdateGroup ¶
func (s GroupService) UpdateGroup(ctx context.Context, id int, req cloud.UpdateGroupRequest) (*cloud.UpdateGroupResponse, error)
UpdateGroup updates the group with the given ID.
func (GroupService) UpdateGroupQuota ¶
func (s GroupService) UpdateGroupQuota(ctx context.Context, req cloud.UpdateGroupQuotaRequest) (*cloud.UpdateGroupQuotaResponse, error)
UpdateGroupQuota updates the default group quota.
type HookService ¶
HookService own the /hook methods.
func (HookService) CreateHook ¶
func (s HookService) CreateHook(ctx context.Context, req cloud.CreateHookRequest) (*cloud.CreateHookResponse, error)
CreateHook creates a new hook.
func (HookService) DeleteHook ¶
func (s HookService) DeleteHook(ctx context.Context, id int) error
DeleteHook deletes the hook with the given id.
func (HookService) Hook ¶
func (s HookService) Hook(ctx context.Context, id int) (*cloud.ListHookResponse, error)
Hook returns information about a hook.
func (HookService) HookLog ¶
func (s HookService) HookLog(ctx context.Context, id int, start, end string) (*cloud.ListHookLogResponse, error)
HookLog returns the logs for a hook.
func (HookService) Hooks ¶
func (s HookService) Hooks(ctx context.Context) (*cloud.ListHooksResponse, error)
Hooks returns information about all hooks.
func (HookService) LockHook ¶
func (s HookService) LockHook(ctx context.Context, id int, req cloud.LockHookRequest) (*cloud.LockHookResponse, error)
LockHook locks the hook with the given id.
func (HookService) RenameHook ¶
func (s HookService) RenameHook(ctx context.Context, id int, req cloud.RenameHookRequest) (*cloud.RenameHookResponse, error)
RenameHook renames the hook with the given id.
func (HookService) RetryHook ¶
func (s HookService) RetryHook(ctx context.Context, id int, req cloud.RetryHookRequest) (*cloud.RetryHookResponse, error)
RetryHook retries the hook with the given id.
func (HookService) UnlockHook ¶
func (s HookService) UnlockHook(ctx context.Context, id int, req cloud.UnlockHookRequest) (*cloud.UnlockHookResponse, error)
UnlockHook unlocks the hook with the given id.
func (HookService) UpdateHook ¶
func (s HookService) UpdateHook(ctx context.Context, id int, req cloud.UpdateHookRequest) (*cloud.UpdateHookResponse, error)
UpdateHook updates the hook with the given id.
type HostService ¶
HostService owns the /host methods.
func (HostService) Hosts ¶
func (s HostService) Hosts(ctx context.Context) (*cloud.ListHostsResponse, error)
Hosts returns information about all physical hosts.
type ImageService ¶
ImageService owns the /image methods.
func (ImageService) ChangeImageOwnership ¶
func (s ImageService) ChangeImageOwnership(ctx context.Context, id int, req cloud.ChangeImageOwnershipRequest) (*cloud.ChangeImageOwnershipResponse, error)
ChangeImageOwnership changes the ownership of the image with the given ID.
func (ImageService) ChangeImagePermissions ¶
func (s ImageService) ChangeImagePermissions(ctx context.Context, id int, req cloud.ChangeImagePermissionsRequest) (*cloud.ChangeImagePermissionsResponse, error)
ChangeImagePermissions changes the permissions of the image with the given ID.
func (ImageService) ChangeImageType ¶
func (s ImageService) ChangeImageType(ctx context.Context, id int, req cloud.ChangeImageTypeRequest) (*cloud.ChangeImageTypeResponse, error)
ChangeImageType changes the type of the image with the given ID.
func (ImageService) CloneImage ¶
func (s ImageService) CloneImage(ctx context.Context, id int, req cloud.CloneImageRequest) (*cloud.CloneImageResponse, error)
CloneImage clones the image with the given ID.
func (ImageService) CreateImage ¶
func (s ImageService) CreateImage(ctx context.Context, req cloud.CreateImageRequest) (*cloud.CreateImageResponse, error)
CreateImage creates a new image.
func (ImageService) DeleteImage ¶
func (s ImageService) DeleteImage(ctx context.Context, id int) error
DeleteImage deletes the image with the given ID.
func (ImageService) DeleteImageSnapshot ¶
func (s ImageService) DeleteImageSnapshot(ctx context.Context, id, snapshot int) error
DeleteImageSnapshot deletes a snapshot for the image with the given ID.
func (ImageService) EnableImage ¶
func (s ImageService) EnableImage(ctx context.Context, id int, req cloud.EnableImageRequest) (*cloud.EnableImageResponse, error)
EnableImage enables the image with the given ID.
func (ImageService) FlattenImageSnapshot ¶
func (s ImageService) FlattenImageSnapshot(ctx context.Context, id, snapshot int) (*cloud.FlattenImageSnapshotResponse, error)
FlattenImageSnapshot flattens the snapshot of the image with the given ID.
func (ImageService) Image ¶
func (s ImageService) Image(ctx context.Context, id int) (*cloud.ListImageResponse, error)
Image returns information about a image.
func (ImageService) Images ¶
func (s ImageService) Images(ctx context.Context) (*cloud.ListImagesResponse, error)
Images returns information about all images.
func (ImageService) LockImage ¶
func (s ImageService) LockImage(ctx context.Context, id int, req cloud.LockImageRequest) (*cloud.LockImageResponse, error)
LockImage locks the image with the given ID.
func (ImageService) RenameImage ¶
func (s ImageService) RenameImage(ctx context.Context, id int, req cloud.RenameImageRequest) (*cloud.RenameImageResponse, error)
RenameImage renames the image with the given ID.
func (ImageService) RevertImageSnapshot ¶
func (s ImageService) RevertImageSnapshot(ctx context.Context, id, snapshot int) (*cloud.RevertImageSnapshotResponse, error)
RevertImageSnapshot reverts the snapshot of the image with the given ID.
func (ImageService) SetImagePersistent ¶
func (s ImageService) SetImagePersistent(ctx context.Context, id int, req cloud.SetImagePersistentRequest) (*cloud.SetImagePersistentResponse, error)
SetImagePersistent sets the image with the given ID to be persistent.
func (ImageService) UnlockImage ¶
func (s ImageService) UnlockImage(ctx context.Context, id int) (*cloud.UnlockImageResponse, error)
UnlockImage unlocks the image with the given ID.
func (ImageService) UpdateImage ¶
func (s ImageService) UpdateImage(ctx context.Context, id int, req cloud.UpdateImageRequest) (*cloud.UpdateImageResponse, error)
UpdateImage updates the image with the given ID.
type InstanceService ¶
InstanceService owns the /instance and /instance-group methods.
func (InstanceService) AddInstanceSchedule ¶
func (s InstanceService) AddInstanceSchedule(ctx context.Context, id int, req cloud.AddInstanceScheduleRequest) (*cloud.AddInstanceScheduleResponse, error)
AddInstanceSchedule adds a schedule to the instance with the given id.
func (InstanceService) AddInstanceSecurityGroup ¶
func (s InstanceService) AddInstanceSecurityGroup(ctx context.Context, id, nic, sg int) (*cloud.AddInstanceSecurityGroupResponse, error)
AddInstanceSecurityGroup adds a security group to the instance with the given id.
func (InstanceService) CalculateInstancesShowback ¶
func (s InstanceService) CalculateInstancesShowback(ctx context.Context, req cloud.CalculateInstancesShowbackRequest) error
CalculateInstancesShowback calculates the showback for all the instances.
func (InstanceService) ChangeInstanceGroupOwnership ¶
func (s InstanceService) ChangeInstanceGroupOwnership(ctx context.Context, id int, req cloud.ChangeInstanceGroupOwnershipRequest) (*cloud.ChangeInstanceGroupOwnershipResponse, error)
ChangeInstanceGroupOwnership changes the ownership of the instance group with the given ID.
func (InstanceService) ChangeInstanceGroupPermissions ¶
func (s InstanceService) ChangeInstanceGroupPermissions(ctx context.Context, id int, req cloud.ChangeInstanceGroupPermissionsRequest) (*cloud.ChangeInstanceGroupPermissionsResponse, error)
ChangeInstanceGroupPermissions changes the permissions of the instance group with the given ID.
func (InstanceService) ChangeInstanceOwnership ¶
func (s InstanceService) ChangeInstanceOwnership(ctx context.Context, id int, req cloud.ChangeInstanceOwnershipRequest) (*cloud.ChangeInstanceOwnershipResponse, error)
ChangeInstanceOwnership changes the ownership of the instance with the given id.
func (InstanceService) ChangeInstancePermissions ¶
func (s InstanceService) ChangeInstancePermissions(ctx context.Context, id int, req cloud.ChangeInstancePermissionsRequest) (*cloud.ChangeInstancePermissionsResponse, error)
ChangeInstancePermissions changes the permissions of the instance with the given id.
func (InstanceService) CreateInstance ¶
func (s InstanceService) CreateInstance(ctx context.Context, req cloud.CreateInstanceRequest) (*cloud.CreateInstanceResponse, error)
CreateInstance creates a new instance.
func (InstanceService) CreateInstanceDisk ¶
func (s InstanceService) CreateInstanceDisk(ctx context.Context, id int, req cloud.CreateInstanceDiskRequest) (*cloud.CreateInstanceDiskResponse, error)
CreateInstanceDisk creates a new disk for the instance with the given id.
func (InstanceService) CreateInstanceDiskImage ¶
func (s InstanceService) CreateInstanceDiskImage(ctx context.Context, id, disk int, req cloud.CreateInstanceDiskImageRequest) (*cloud.CreateInstanceDiskImageResponse, error)
CreateInstanceDiskImage creates a new disk image for the instance with the given id.
func (InstanceService) CreateInstanceDiskSnapshot ¶
func (s InstanceService) CreateInstanceDiskSnapshot(ctx context.Context, id, disk int, req cloud.CreateInstanceDiskSnapshotRequest) (*cloud.CreateInstanceDiskSnapshotResponse, error)
CreateInstanceDiskSnapshot creates a new disk snapshot for the instance with the given id.
func (InstanceService) CreateInstanceNIC ¶
func (s InstanceService) CreateInstanceNIC(ctx context.Context, id int, req cloud.CreateInstanceNICRequest) (*cloud.CreateInstanceNICResponse, error)
CreateInstanceNIC creates a new NIC for the instance with the given id.
func (InstanceService) CreateInstanceSnapshot ¶
func (s InstanceService) CreateInstanceSnapshot(ctx context.Context, id int, req cloud.CreateInstanceSnapshotRequest) (*cloud.CreateInstanceSnapshotResponse, error)
CreateInstanceSnapshot creates a new snapshot for the instance with the given id.
func (InstanceService) CreateVNCProxy ¶
func (s InstanceService) CreateVNCProxy(ctx context.Context, id int, req cloud.CreateVNCProxyRequest) (*cloud.CreateVNCProxyResponse, error)
CreateVNCProxy creates a new VNC proxy on the server for a specific VM.
func (InstanceService) DeleteInstanceDisk ¶
func (s InstanceService) DeleteInstanceDisk(ctx context.Context, id, disk int) error
DeleteInstanceDisk deletes a disk from the instance with the given id.
func (InstanceService) DeleteInstanceDiskSnapshot ¶
func (s InstanceService) DeleteInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int) error
DeleteInstanceDiskSnapshot deletes a snapshot from the instance with the given id.
func (InstanceService) DeleteInstanceGroup ¶
func (s InstanceService) DeleteInstanceGroup(ctx context.Context, id int) error
DeleteInstanceGroup deletes the instance group with the given ID.
func (InstanceService) DeleteInstanceNIC ¶
func (s InstanceService) DeleteInstanceNIC(ctx context.Context, id, nic int) error
DeleteInstanceNIC deletes a NIC from the instance with the given id.
func (InstanceService) DeleteInstanceSchedule ¶
func (s InstanceService) DeleteInstanceSchedule(ctx context.Context, id, schedule int) error
DeleteInstanceSchedule deletes a schedule from the instance with the given id.
func (InstanceService) DeleteInstanceSecurityGroup ¶
func (s InstanceService) DeleteInstanceSecurityGroup(ctx context.Context, id, nic int) error
DeleteInstanceSecurityGroup deletes a security group from the instance with the given id.
func (InstanceService) DeleteInstanceSnapshot ¶
func (s InstanceService) DeleteInstanceSnapshot(ctx context.Context, id, snapshot int) error
DeleteInstanceSnapshot deletes a snapshot from the instance with the given id.
func (InstanceService) DeployInstance ¶
func (s InstanceService) DeployInstance(ctx context.Context, id int, req cloud.DeployInstanceRequest) (*cloud.DeployInstanceResponse, error)
DeployInstance deploys the instance with the given id.
func (InstanceService) Instance ¶
func (s InstanceService) Instance(ctx context.Context, id int) (*cloud.ListInstanceResponse, error)
Instance returns the Instance for the given id.
func (InstanceService) InstanceGroup ¶
func (s InstanceService) InstanceGroup(ctx context.Context, id int) (*cloud.ListInstanceGroupResponse, error)
InstanceGroup returns information about an instance group.
func (InstanceService) InstanceGroups ¶
func (s InstanceService) InstanceGroups(ctx context.Context) (*cloud.ListInstanceGroupsResponse, error)
InstanceGroups returns information about all instance groups.
func (InstanceService) InstanceMonitoringData ¶
func (s InstanceService) InstanceMonitoringData(ctx context.Context, id int) (*cloud.ListInstanceMonitoringResponse, error)
InstanceMonitoringData returns monitoring data for id.
func (InstanceService) InstanceShowback ¶
func (s InstanceService) InstanceShowback(ctx context.Context, filter cloud.Filter, monthStart, monthEnd time.Month, yearStart, yearEnd int) (*cloud.ListInstancesShowbackResponse, error)
InstanceShowback returns showback data for a set of instances.
func (InstanceService) Instances ¶
func (s InstanceService) Instances(ctx context.Context, state instance.State, extended bool) (*cloud.ListInstancesResponse, error)
Instances returns a slice of all the Instances in the given state.
func (InstanceService) InstancesAccountingData ¶
func (s InstanceService) InstancesAccountingData(ctx context.Context, filter cloud.Filter, start, end time.Time) (*cloud.ListInstancesAccountingResponse, error)
InstancesAccountingData returns accounting data for a set of instances.
func (InstanceService) InstancesMonitoringData ¶
func (s InstanceService) InstancesMonitoringData(ctx context.Context, filter cloud.Filter, seconds int) (*cloud.ListInstancesMonitoringResponse, error)
InstancesMonitoringData returns monitoring data for a set of instances.
func (InstanceService) InstancesSet ¶
func (s InstanceService) InstancesSet(ctx context.Context, ids ...int) (*cloud.ListInstancesResponse, error)
InstancesSet returns a slice of Instances.
func (InstanceService) LockInstance ¶
func (s InstanceService) LockInstance(ctx context.Context, id int, req cloud.LockInstanceRequest) (*cloud.LockInstanceResponse, error)
LockInstance locks the instance with the given id.
func (InstanceService) LockInstanceGroup ¶
func (s InstanceService) LockInstanceGroup(ctx context.Context, id int, req cloud.LockInstanceGroupRequest) (*cloud.LockInstanceGroupResponse, error)
LockInstanceGroup locks the instance group with the given ID.
func (InstanceService) MoveInstance ¶
func (s InstanceService) MoveInstance(ctx context.Context, id int, req cloud.MoveInstanceRequest) (*cloud.MoveInstanceResponse, error)
MoveInstance moves the instance with the given id.
func (InstanceService) RecoverInstance ¶
func (s InstanceService) RecoverInstance(ctx context.Context, id int, req cloud.RecoverInstanceRequest) (*cloud.RecoverInstanceResponse, error)
RecoverInstance recovers the instance with the given id.
func (InstanceService) RenameInstance ¶
func (s InstanceService) RenameInstance(ctx context.Context, id int, req cloud.RenameInstanceRequest) (*cloud.RenameInstanceResponse, error)
RenameInstance renames the instance with the given id.
func (InstanceService) RenameInstanceDiskSnapshot ¶
func (s InstanceService) RenameInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int, req cloud.RenameInstanceDiskSnapshotRequest) (*cloud.RenameInstanceDiskSnapshotResponse, error)
RenameInstanceDiskSnapshot renames the disk snapshot for the instance with the given id.
func (InstanceService) RenameInstanceGroup ¶
func (s InstanceService) RenameInstanceGroup(ctx context.Context, id int, req cloud.RenameInstanceGroupRequest) (*cloud.RenameInstanceGroupResponse, error)
RenameInstanceGroup renames the instance group with the given ID.
func (InstanceService) ResizeInstance ¶
func (s InstanceService) ResizeInstance(ctx context.Context, id int, req cloud.ResizeInstanceRequest) (*cloud.ResizeInstanceResponse, error)
ResizeInstance resizes the instance with the given id.
func (InstanceService) ResizeInstanceDisk ¶
func (s InstanceService) ResizeInstanceDisk(ctx context.Context, id, disk int, req cloud.ResizeInstanceDiskRequest) (*cloud.ResizeInstanceDiskResponse, error)
ResizeInstanceDisk resizes the disk for the instance with the given id.
func (InstanceService) RevertInstanceDiskSnapshot ¶
func (s InstanceService) RevertInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int) (*cloud.RevertInstanceDiskSnapshotResponse, error)
RevertInstanceDiskSnapshot reverts the disk snapshot for the instance with the given id.
func (InstanceService) RevertInstanceSnapshot ¶
func (s InstanceService) RevertInstanceSnapshot(ctx context.Context, id, snapshot int) (*cloud.RevertInstanceSnapshotResponse, error)
RevertInstanceSnapshot reverts the snapshot for the instance with the given id.
func (InstanceService) SetInstanceAction ¶
func (s InstanceService) SetInstanceAction(ctx context.Context, id int, req cloud.SetInstanceActionRequest) (*cloud.SetInstanceActionResponse, error)
SetInstanceAction sets the action for the instance with the given id.
func (InstanceService) UnlockInstance ¶
func (s InstanceService) UnlockInstance(ctx context.Context, id int) (*cloud.UnlockInstanceResponse, error)
UnlockInstance unlocks the instance with the given id.
func (InstanceService) UnlockInstanceGroup ¶
func (s InstanceService) UnlockInstanceGroup(ctx context.Context, id int) (*cloud.UnlockInstanceGroupResponse, error)
UnlockInstanceGroup unlocks the instance group with the given ID.
func (InstanceService) UpdateInstanceConfig ¶
func (s InstanceService) UpdateInstanceConfig(ctx context.Context, id int, req cloud.UpdateInstanceConfigRequest) (*cloud.UpdateInstanceConfigResponse, error)
UpdateInstanceConfig updates the config for the instance with the given id.
func (InstanceService) UpdateInstanceGroup ¶
func (s InstanceService) UpdateInstanceGroup(ctx context.Context, id int, req *cloud.UpdateInstanceGroupRequest) (*cloud.UpdateInstanceGroupResponse, error)
UpdateInstanceGroup updates the instance group with the given ID.
func (InstanceService) UpdateInstanceSchedule ¶
func (s InstanceService) UpdateInstanceSchedule(ctx context.Context, id int, req cloud.UpdateInstanceScheduleRequest) (*cloud.UpdateInstanceScheduleResponse, error)
UpdateInstanceSchedule updates the schedule for the instance with the given id.
func (InstanceService) UpdateInstanceTemplate ¶
func (s InstanceService) UpdateInstanceTemplate(ctx context.Context, id int, req cloud.UpdateInstanceTemplateRequest) (*cloud.UpdateInstanceTemplateResponse, error)
UpdateInstanceTemplate updates the template for the instance with the given id.
type MarketService ¶
MarketService owns the /market methods.
func (MarketService) ChangeMarketAppOwnership ¶
func (s MarketService) ChangeMarketAppOwnership(ctx context.Context, id, app int, req cloud.ChangeMarketAppOwnershipRequest) (*cloud.ChangeMarketAppOwnershipResponse, error)
ChangeMarketAppOwnership changes the ownership of the marketplace application with the given ID.
func (MarketService) ChangeMarketAppPermissions ¶
func (s MarketService) ChangeMarketAppPermissions(ctx context.Context, id, app int, req cloud.ChangeMarketAppPermissionsRequest) (*cloud.ChangeMarketAppPermissionsResponse, error)
ChangeMarketAppPermissions changes the permissions of the marketplace application with the given ID.
func (MarketService) ChangeMarketOwnership ¶
func (s MarketService) ChangeMarketOwnership(ctx context.Context, id int, req cloud.ChangeMarketOwnershipRequest) (*cloud.ChangeMarketOwnershipResponse, error)
ChangeMarketOwnership changes the ownership of the marketplace with the given ID.
func (MarketService) ChangeMarketPermissions ¶
func (s MarketService) ChangeMarketPermissions(ctx context.Context, id int, req cloud.ChangeMarketPermissionsRequest) (*cloud.ChangeMarketPermissionsResponse, error)
ChangeMarketPermissions changes the permissions of the marketplace with the given ID.
func (MarketService) CreateMarket ¶
func (s MarketService) CreateMarket(ctx context.Context, req cloud.CreateMarketRequest) (*cloud.CreateMarketResponse, error)
CreateMarket creates a new marketplace.
func (MarketService) CreateMarketApp ¶
func (s MarketService) CreateMarketApp(ctx context.Context, id int, req cloud.CreateMarketAppRequest) (*cloud.CreateMarketAppResponse, error)
CreateMarketApp creates a new marketplace application.
func (MarketService) DeleteMarket ¶
func (s MarketService) DeleteMarket(ctx context.Context, id int) error
DeleteMarket deletes the market with the given ID.
func (MarketService) DeleteMarketApp ¶
func (s MarketService) DeleteMarketApp(ctx context.Context, id, app int) error
DeleteMarketApp deletes the marketplace application with the given ID.
func (MarketService) EnableMarket ¶
func (s MarketService) EnableMarket(ctx context.Context, id int, req cloud.EnableMarketRequest) (*cloud.EnableMarketResponse, error)
EnableMarket enables the marketplace with the given ID.
func (MarketService) EnableMarketApp ¶
func (s MarketService) EnableMarketApp(ctx context.Context, id, app int, req cloud.EnableMarketAppRequest) (*cloud.EnableMarketAppResponse, error)
EnableMarketApp enables the marketplace application with the given ID.
func (MarketService) LockMarketApp ¶
func (s MarketService) LockMarketApp(ctx context.Context, id, app int, req cloud.LockMarketAppRequest) (*cloud.LockMarketAppResponse, error)
LockMarketApp locks the marketplace application with the given ID.
func (MarketService) Market ¶
func (s MarketService) Market(ctx context.Context, id int) (*cloud.ListMarketResponse, error)
Market returns information about a marketplace.
func (MarketService) MarketApp ¶
func (s MarketService) MarketApp(ctx context.Context, id int) (*cloud.ListMarketAppResponse, error)
MarketApp returns information about a marketplace application.
func (MarketService) MarketApps ¶
func (s MarketService) MarketApps(ctx context.Context) (*cloud.ListMarketAppsResponse, error)
MarketApps returns information about all marketplace applications.
func (MarketService) Markets ¶
func (s MarketService) Markets(ctx context.Context) (*cloud.ListMarketsResponse, error)
Markets returns information about all marketplaces.
func (MarketService) RenameMarket ¶
func (s MarketService) RenameMarket(ctx context.Context, id int, req cloud.RenameMarketRequest) (*cloud.RenameMarketResponse, error)
RenameMarket renames the marketplace with the given ID.
func (MarketService) RenameMarketApp ¶
func (s MarketService) RenameMarketApp(ctx context.Context, id, app int, req cloud.RenameMarketAppRequest) (*cloud.RenameMarketAppResponse, error)
RenameMarketApp renames the marketplace application with the given ID.
func (MarketService) UnlockMarketApp ¶
func (s MarketService) UnlockMarketApp(ctx context.Context, id, app int) (*cloud.UnlockMarketAppResponse, error)
UnlockMarketApp unlocks the marketplace application with the given ID.
func (MarketService) UpdateMarket ¶
func (s MarketService) UpdateMarket(ctx context.Context, id int, req cloud.UpdateMarketRequest) (*cloud.UpdateMarketResponse, error)
UpdateMarket updates the marketplace with the given ID.
func (MarketService) UpdateMarketApp ¶
func (s MarketService) UpdateMarketApp(ctx context.Context, id, app int, req cloud.UpdateMarketAppRequest) (*cloud.UpdateMarketAppResponse, error)
UpdateMarketApp updates the marketplace application with the given ID.
type SecurityGroupService ¶
SecurityGroupService owns the /security-group methods.
func (SecurityGroupService) ChangeSecurityGroupOwnership ¶
func (s SecurityGroupService) ChangeSecurityGroupOwnership(ctx context.Context, id int, req cloud.ChangeSecurityGroupOwnershipRequest) (*cloud.ChangeSecurityGroupOwnershipResponse, error)
ChangeSecurityGroupOwnership changes the ownership of the security group with the given ID.
func (SecurityGroupService) ChangeSecurityGroupPermissions ¶
func (s SecurityGroupService) ChangeSecurityGroupPermissions(ctx context.Context, id int, req cloud.ChangeSecurityGroupPermissionsRequest) (*cloud.ChangeSecurityGroupPermissionsResponse, error)
ChangeSecurityGroupPermissions changes the permissions of the security group with the given ID.
func (SecurityGroupService) CloneSecurityGroup ¶
func (s SecurityGroupService) CloneSecurityGroup(ctx context.Context, id int, req cloud.CloneSecurityGroupRequest) (*cloud.CloneSecurityGroupResponse, error)
CloneSecurityGroup clones the security group with the given ID.
func (SecurityGroupService) CommitSecurityGroup ¶
func (s SecurityGroupService) CommitSecurityGroup(ctx context.Context, id int, req cloud.CommitSecurityGroupRequest) (*cloud.CommitSecurityGroupResponse, error)
CommitSecurityGroup commits the security group with the given ID.
func (SecurityGroupService) CreateSecurityGroup ¶
func (s SecurityGroupService) CreateSecurityGroup(ctx context.Context, req cloud.CreateSecurityGroupRequest) (*cloud.CreateSecurityGroupResponse, error)
CreateSecurityGroup creates a new security group.
func (SecurityGroupService) DeleteSecurityGroup ¶
func (s SecurityGroupService) DeleteSecurityGroup(ctx context.Context, id int) error
DeleteSecurityGroup deletes the security group with the given ID.
func (SecurityGroupService) RenameSecurityGroup ¶
func (s SecurityGroupService) RenameSecurityGroup(ctx context.Context, id int, req cloud.RenameSecurityGroupRequest) (*cloud.RenameSecurityGroupResponse, error)
RenameSecurityGroup renames the security group with the given ID.
func (SecurityGroupService) SecurityGroup ¶
func (s SecurityGroupService) SecurityGroup(ctx context.Context, id int) (*cloud.ListSecurityGroupResponse, error)
SecurityGroup returns information about a image.
func (SecurityGroupService) SecurityGroups ¶
func (s SecurityGroupService) SecurityGroups(ctx context.Context) (*cloud.ListSecurityGroupsResponse, error)
SecurityGroups returns information about all images.
func (SecurityGroupService) UpdateSecurityGroup ¶
func (s SecurityGroupService) UpdateSecurityGroup(ctx context.Context, id int, req cloud.UpdateSecurityGroupRequest) (*cloud.UpdateSecurityGroupResponse, error)
UpdateSecurityGroup updates the security group with the given ID.
type StorageService ¶
StorageService owns the /storage methods.
func (StorageService) StorageDisks ¶
func (s StorageService) StorageDisks(ctx context.Context) (*storage.ListDisksResponse, error)
StorageDisks returns information about all disks.
func (StorageService) StorageHost ¶
func (s StorageService) StorageHost(ctx context.Context, host string) (*storage.ListHostResponse, error)
StorageHost returns information about a specific storage host.
func (StorageService) StorageHostDisk ¶
func (s StorageService) StorageHostDisk(ctx context.Context, host, disk string) (*storage.ListHostDiskResponse, error)
StorageHostDisk returns information about a specific disk on a specific storage host.
func (StorageService) StorageHostDisks ¶
func (s StorageService) StorageHostDisks(ctx context.Context, host string) (*storage.ListHostDisksResponse, error)
StorageHostDisks returns information about all disks on a specific storage host.
func (StorageService) StorageHostVolumeGroup ¶
func (s StorageService) StorageHostVolumeGroup(ctx context.Context, host, vg string) (*storage.ListHostVolumeGroupResponse, error)
StorageHostVolumeGroup returns information about a specific volume group on a specific storage host.
func (StorageService) StorageHostVolumeGroups ¶
func (s StorageService) StorageHostVolumeGroups(ctx context.Context, host string) (*storage.ListHostVolumeGroupsResponse, error)
StorageHostVolumeGroups returns information about all volume groups on a specific storage host.
func (StorageService) StorageHosts ¶
func (s StorageService) StorageHosts(ctx context.Context) (*storage.ListHostsResponse, error)
StorageHosts returns information about all storage hosts.
func (StorageService) StorageOSD ¶
func (s StorageService) StorageOSD(ctx context.Context, osd uint) (*storage.ListOSDResponse, error)
StorageOSD returns information about a specific OSD.
func (StorageService) StorageOSDs ¶
func (s StorageService) StorageOSDs(ctx context.Context) (*storage.ListOSDsResponse, error)
StorageOSDs returns information about all OSDs.
func (StorageService) StoragePool ¶
func (s StorageService) StoragePool(ctx context.Context, pool uint) (*storage.ListPoolResponse, error)
StoragePool returns information about a specific storage pool.
func (StorageService) StoragePools ¶
func (s StorageService) StoragePools(ctx context.Context) (*storage.ListPoolsResponse, error)
StoragePools returns information about all storage pools.
func (StorageService) StorageShareRBD ¶
func (s StorageService) StorageShareRBD(ctx context.Context, rbd string) (*storage.ListShareRBDResponse, error)
StorageShareRBD returns information about a specific RBD.
func (StorageService) StorageShareRBDs ¶
func (s StorageService) StorageShareRBDs(ctx context.Context) (*storage.ListShareRBDsResponse, error)
StorageShareRBDs returns information about all RBDs.
func (StorageService) StorageSummary ¶
func (s StorageService) StorageSummary(ctx context.Context) (*storage.ListSummaryResponse, error)
StorageSummary returns summary information about all storage.
type SystemService ¶
SystemService owns the /system methods.
func (SystemService) SystemConfig ¶
func (s SystemService) SystemConfig(ctx context.Context) (*cloud.ListSystemConfigResponse, error)
SystemConfig returns HC config.
func (SystemService) SystemVersion ¶
func (s SystemService) SystemVersion(ctx context.Context) (*cloud.ListSystemVersionResponse, error)
SystemVersion returns the version of HC.
type TemplateService ¶
TemplateService own the /template methods.
func (TemplateService) ChangeTemplateOwnership ¶
func (s TemplateService) ChangeTemplateOwnership(ctx context.Context, id int, req cloud.ChangeTemplateOwnershipRequest) (*cloud.ChangeTemplateOwnershipResponse, error)
ChangeTemplateOwnership changes the ownership of the template with the given ID.
func (TemplateService) ChangeTemplatePermissions ¶
func (s TemplateService) ChangeTemplatePermissions(ctx context.Context, id int, req cloud.ChangeTemplatePermissionsRequest) (*cloud.ChangeTemplatePermissionsResponse, error)
ChangeTemplatePermissions changes the permissions of the template with the given ID.
func (TemplateService) CloneTemplate ¶
func (s TemplateService) CloneTemplate(ctx context.Context, id int, req cloud.CloneTemplateRequest) (*cloud.CloneTemplateResponse, error)
CloneTemplate clones the template with the given ID.
func (TemplateService) CreateTemplate ¶
func (s TemplateService) CreateTemplate(ctx context.Context, req cloud.CreateTemplateRequest) (*cloud.CreateTemplateResponse, error)
CreateTemplate creates a new template.
func (TemplateService) DeleteTemplate ¶
func (s TemplateService) DeleteTemplate(ctx context.Context, id int) error
DeleteTemplate deletes the template with the given ID.
func (TemplateService) InstantiateTemplate ¶
func (s TemplateService) InstantiateTemplate(ctx context.Context, id int, req cloud.InstantiateTemplateRequest) (*cloud.InstantiateTemplateResponse, error)
InstantiateTemplate instantiates the template with the given ID.
func (TemplateService) LockTemplate ¶
func (s TemplateService) LockTemplate(ctx context.Context, id int, req cloud.LockTemplateRequest) (*cloud.LockTemplateResponse, error)
LockTemplate locks the template with the given ID.
func (TemplateService) RenameTemplate ¶
func (s TemplateService) RenameTemplate(ctx context.Context, id int, req cloud.RenameTemplateRequest) (*cloud.RenameTemplateResponse, error)
RenameTemplate renames the template with the given ID.
func (TemplateService) Template ¶
func (s TemplateService) Template(ctx context.Context, id int) (*cloud.ListTemplateResponse, error)
Template returns information about a template.
func (TemplateService) Templates ¶
func (s TemplateService) Templates(ctx context.Context) (*cloud.ListTemplatesResponse, error)
Templates returns information about all templates.
func (TemplateService) UnlockTemplate ¶
func (s TemplateService) UnlockTemplate(ctx context.Context, id int) (*cloud.UnlockTemplateResponse, error)
UnlockTemplate unlocks the template with the given ID.
func (TemplateService) UpdateTemplate ¶
func (s TemplateService) UpdateTemplate(ctx context.Context, id int, req cloud.UpdateTemplateRequest) (*cloud.UpdateTemplateResponse, error)
UpdateTemplate updates the template with the given ID.
type UserService ¶
UserService owns the /user methods.
func (UserService) AddUserGroup ¶
func (s UserService) AddUserGroup(ctx context.Context, id, group int) (*cloud.AddUserGroupResponse, error)
AddUserGroup adds the user to the group with the given ID.
func (UserService) ChangeUserAuth ¶
func (s UserService) ChangeUserAuth(ctx context.Context, id int, req cloud.ChangeUserAuthRequest) (*cloud.ChangeUserAuthResponse, error)
ChangeUserAuth changes the user's authentication method.
func (UserService) ChangeUserGroup ¶
func (s UserService) ChangeUserGroup(ctx context.Context, id, group int) (*cloud.ChangeUserGroupResponse, error)
ChangeUserGroup changes the user's group.
func (UserService) ChangeUserPassword ¶
func (s UserService) ChangeUserPassword(ctx context.Context, id int, req cloud.ChangeUserPasswordRequest) (*cloud.ChangeUserPasswordResponse, error)
ChangeUserPassword changes the user's password.
func (UserService) CreateUser ¶
func (s UserService) CreateUser(ctx context.Context, req cloud.CreateUserRequest) (*cloud.CreateUserResponse, error)
CreateUser creates a new user.
func (UserService) DeleteUser ¶
func (s UserService) DeleteUser(ctx context.Context, id int) error
DeleteUser deletes the user with the given ID.
func (UserService) DeleteUserGroup ¶
func (s UserService) DeleteUserGroup(ctx context.Context, id, group int) error
DeleteUserGroup deletes the user from the group with the given ID.
func (UserService) EnableUser ¶
func (s UserService) EnableUser(ctx context.Context, id int, req cloud.EnableUserRequest) (*cloud.EnableUserResponse, error)
EnableUser enables the user with the given ID.
func (UserService) SetUserQuota ¶
func (s UserService) SetUserQuota(ctx context.Context, id int, req cloud.SetUserQuotaRequest) (*cloud.SetUserQuotaResponse, error)
SetUserQuota sets the user's quota.
func (UserService) UpdateDefaultUserQuota ¶
func (s UserService) UpdateDefaultUserQuota(ctx context.Context, req cloud.UpdateDefaultUserQuotaRequest) (*cloud.UpdateDefaultUserQuotaResponse, error)
UpdateDefaultUserQuota updates the default user quota.
func (UserService) UpdateUser ¶
func (s UserService) UpdateUser(ctx context.Context, id int, req cloud.UpdateUserRequest) (*cloud.UpdateUserResponse, error)
UpdateUser updates the user with the given ID.
func (UserService) User ¶
func (s UserService) User(ctx context.Context, id int) (*cloud.ListUserResponse, error)
User returns information about a user.
func (UserService) UserQuota ¶
func (s UserService) UserQuota(ctx context.Context) (*cloud.ListUserQuotaResponse, error)
UserQuota returns the default user quota.
func (UserService) Users ¶
func (s UserService) Users(ctx context.Context) (*cloud.ListUsersResponse, error)
Users returns information about all users.
type VNetService ¶
VNetService owns the /vnet methods.
func (VNetService) AddVNetAddressRange ¶
func (s VNetService) AddVNetAddressRange(ctx context.Context, id int, req cloud.AddVNetAddressRangeRequest) (*cloud.AddVNetAddressRangeResponse, error)
AddVNetAddressRange adds an address range to the virtual network with the given ID.
func (VNetService) ChangeVNetOwnership ¶
func (s VNetService) ChangeVNetOwnership(ctx context.Context, id int, req cloud.ChangeVNetOwnershipRequest) (*cloud.ChangeVNetOwnershipResponse, error)
ChangeVNetOwnership changes the ownership of the virtual network with the given ID.
func (VNetService) ChangeVNetPermissions ¶
func (s VNetService) ChangeVNetPermissions(ctx context.Context, id int, req cloud.ChangeVNetPermissionsRequest) (*cloud.ChangeVNetPermissionsResponse, error)
ChangeVNetPermissions changes the permissions of the virtual network with the given ID.
func (VNetService) ChangeVNetTemplateOwnership ¶
func (s VNetService) ChangeVNetTemplateOwnership(ctx context.Context, id int, req cloud.ChangeVNetTemplateOwnershipRequest) (*cloud.ChangeVNetTemplateOwnershipResponse, error)
ChangeVNetTemplateOwnership changes the ownership of the virtual network template with the given ID.
func (VNetService) ChangeVNetTemplatePermissions ¶
func (s VNetService) ChangeVNetTemplatePermissions(ctx context.Context, id int, req cloud.ChangeVNetTemplatePermissionsRequest) (*cloud.ChangeVNetTemplatePermissionsResponse, error)
ChangeVNetTemplatePermissions changes the permissions of the virtual network template with the given ID.
func (VNetService) CloneVNetTemplate ¶
func (s VNetService) CloneVNetTemplate(ctx context.Context, id int, req cloud.CloneVNetTemplateRequest) (*cloud.CloneVNetTemplateResponse, error)
CloneVNetTemplate clones the virtual network template with the given ID.
func (VNetService) CreateVNet ¶
func (s VNetService) CreateVNet(ctx context.Context, req cloud.CreateVNetRequest) (*cloud.CreateVNetResponse, error)
CreateVNet creates a new virtual network.
func (VNetService) CreateVNetTemplate ¶
func (s VNetService) CreateVNetTemplate(ctx context.Context, req cloud.CreateVNetTemplateRequest) (*cloud.CreateVNetTemplateResponse, error)
CreateVNetTemplate creates a new virtual network template.
func (VNetService) DeleteVNet ¶
func (s VNetService) DeleteVNet(ctx context.Context, id int) error
DeleteVNet deletes the virtual network with the given ID.
func (VNetService) DeleteVNetAddressRange ¶
func (s VNetService) DeleteVNetAddressRange(ctx context.Context, id, ar int) error
DeleteVNetAddressRange deletes an address range from the virtual network with the given ID.
func (VNetService) DeleteVNetTemplate ¶
func (s VNetService) DeleteVNetTemplate(ctx context.Context, id int) error
DeleteVNetTemplate deletes the virtual network template with the given ID.
func (VNetService) FreeVNetAddressRange ¶
func (s VNetService) FreeVNetAddressRange(ctx context.Context, id, ar int) error
FreeVNetAddressRange free an address range from the virtual network with the given ID.
func (VNetService) HoldVNet ¶
func (s VNetService) HoldVNet(ctx context.Context, id int, req cloud.HoldVNetRequest) (*cloud.HoldVNetResponse, error)
HoldVNet holds the virtual network with the given ID.
func (VNetService) InstantiateVNetTemplate ¶
func (s VNetService) InstantiateVNetTemplate(ctx context.Context, id int, req cloud.InstantiateVNetTemplateRequest) (*cloud.InstantiateVNetTemplateResponse, error)
InstantiateVNetTemplate instantiates the virtual network template with the given ID.
func (VNetService) LockVNet ¶
func (s VNetService) LockVNet(ctx context.Context, id int, req cloud.LockVNetRequest) (*cloud.LockVNetResponse, error)
LockVNet locks the virtual network with the given ID.
func (VNetService) LockVNetTemplate ¶
func (s VNetService) LockVNetTemplate(ctx context.Context, id int, req cloud.LockVNetTemplateRequest) (*cloud.LockVNetTemplateResponse, error)
LockVNetTemplate locks the virtual network template with the given ID.
func (VNetService) RecoverVNets ¶
func (s VNetService) RecoverVNets(ctx context.Context, id int, req cloud.RecoverVNetRequest) (*cloud.RecoverVNetResponse, error)
RecoverVNets recovers the virtual network with the given ID.
func (VNetService) ReleaseVNet ¶
func (s VNetService) ReleaseVNet(ctx context.Context, id int, req cloud.ReleaseVNetRequest) (*cloud.ReleaseVNetResponse, error)
ReleaseVNet releases the virtual network with the given ID.
func (VNetService) RenameVNet ¶
func (s VNetService) RenameVNet(ctx context.Context, id int, req cloud.RenameVNetRequest) (*cloud.RenameVNetResponse, error)
RenameVNet renames the virtual network with the given ID.
func (VNetService) RenameVNetTemplate ¶
func (s VNetService) RenameVNetTemplate(ctx context.Context, id int, req cloud.RenameVNetTemplateRequest) (*cloud.RenameVNetTemplateResponse, error)
RenameVNetTemplate renames the virtual network template with the given ID.
func (VNetService) ReserveVNet ¶
func (s VNetService) ReserveVNet(ctx context.Context, id int, req cloud.ReserveVNetRequest) (*cloud.ReserveVNetResponse, error)
ReserveVNet reserves the virtual network with the given ID.
func (VNetService) UnlockVNet ¶
func (s VNetService) UnlockVNet(ctx context.Context, id int) (*cloud.UnlockVNetResponse, error)
UnlockVNet unlocks the virtual network with the given ID.
func (VNetService) UnlockVNetTemplate ¶
func (s VNetService) UnlockVNetTemplate(ctx context.Context, id int) (*cloud.UnlockVNetTemplateResponse, error)
UnlockVNetTemplate unlocks the virtual network template with the given ID.
func (VNetService) UpdateVNet ¶
func (s VNetService) UpdateVNet(ctx context.Context, id int, req cloud.UpdateVNetRequest) (*cloud.UpdateVNetResponse, error)
UpdateVNet updates the virtual network with the given ID.
func (VNetService) UpdateVNetAddressRange ¶
func (s VNetService) UpdateVNetAddressRange(ctx context.Context, id int, req cloud.UpdateVNetAddressRangeRequest) (*cloud.UpdateVNetAddressRangeResponse, error)
UpdateVNetAddressRange updates an address range from the virtual network with the given ID.
func (VNetService) UpdateVNetTemplate ¶
func (s VNetService) UpdateVNetTemplate(ctx context.Context, id int, req cloud.UpdateVNetTemplateRequest) (*cloud.UpdateVNetTemplateResponse, error)
UpdateVNetTemplate updates the virtual network template with the given ID.
func (VNetService) VNet ¶
func (s VNetService) VNet(ctx context.Context, id int) (*cloud.ListVNetResponse, error)
VNet returns information about a virtual network.
func (VNetService) VNetTemplate ¶
func (s VNetService) VNetTemplate(ctx context.Context, id int) (*cloud.ListVNetTemplateResponse, error)
VNetTemplate returns information about a virtual networks.
func (VNetService) VNetTemplates ¶
func (s VNetService) VNetTemplates(ctx context.Context) (*cloud.ListVNetTemplatesResponse, error)
VNetTemplates returns information about all virtual networkss.
func (VNetService) VNets ¶
func (s VNetService) VNets(ctx context.Context) (*cloud.ListVNetsResponse, error)
VNets returns information about all virtual networks.
type VRouterService ¶
VRouterService own the /vrouter methods.
func (VRouterService) ChangeVRouterOwnership ¶
func (s VRouterService) ChangeVRouterOwnership(ctx context.Context, id int, req cloud.ChangeVRouterOwnershipRequest) (*cloud.ChangeVRouterOwnershipResponse, error)
ChangeVRouterOwnership changes the ownership of a Virtual Router with the given ID.
func (VRouterService) ChangeVRouterPermissions ¶
func (s VRouterService) ChangeVRouterPermissions(ctx context.Context, id int, req cloud.ChangeVRouterPermissionsRequest) (*cloud.ChangeVRouterPermissionsResponse, error)
ChangeVRouterPermissions changes the permissions of a Virtual Router with the given ID.
func (VRouterService) CreateVRouter ¶
func (s VRouterService) CreateVRouter(ctx context.Context, req cloud.CreateVRouterRequest) (*cloud.CreateVRouterResponse, error)
CreateVRouter creates a new Virtual Router.
func (VRouterService) CreateVRouterNIC ¶
func (s VRouterService) CreateVRouterNIC(ctx context.Context, id int, req cloud.CreateVRouterNICRequest) (*cloud.CreateVRouterNICResponse, error)
CreateVRouterNIC creates a new NIC for the Virtual Router with the given ID.
func (VRouterService) DeleteVRouter ¶
func (s VRouterService) DeleteVRouter(ctx context.Context, id int) error
DeleteVRouter deletes a Virtual Router with the given ID.
func (VRouterService) DeleteVRouterNIC ¶
func (s VRouterService) DeleteVRouterNIC(ctx context.Context, id int) error
DeleteVRouterNIC deletes a NIC from the Virtual Router with the given ID.
func (VRouterService) InstantiateVRouter ¶
func (s VRouterService) InstantiateVRouter(ctx context.Context, id int, req cloud.InstantiateVRouterRequest) (*cloud.InstantiateVRouterResponse, error)
InstantiateVRouter instantiates a Virtual Router with the given ID.
func (VRouterService) LockVRouter ¶
func (s VRouterService) LockVRouter(ctx context.Context, id int, req cloud.LockVRouterRequest) (*cloud.LockVRouterResponse, error)
LockVRouter locks a Virtual Router with the given ID.
func (VRouterService) RenameVRouter ¶
func (s VRouterService) RenameVRouter(ctx context.Context, id int, req cloud.RenameVRouterRequest) (*cloud.RenameVRouterResponse, error)
RenameVRouter renames a Virtual Router with the given ID.
func (VRouterService) UnlockVRouter ¶
func (s VRouterService) UnlockVRouter(ctx context.Context, id int) (*cloud.UnlockVRouterResponse, error)
UnlockVRouter unlocks a Virtual Router with the given ID.
func (VRouterService) UpdateVRouter ¶
func (s VRouterService) UpdateVRouter(ctx context.Context, id int, req cloud.UpdateVRouterRequest) (*cloud.UpdateVRouterResponse, error)
UpdateVRouter updates a Virtual Router with the given ID.
func (VRouterService) VRouter ¶
func (s VRouterService) VRouter(ctx context.Context, id int) (*cloud.ListVRouterResponse, error)
VRouter returns information about a vrouter.
func (VRouterService) VRouters ¶
func (s VRouterService) VRouters(ctx context.Context) (*cloud.ListVRoutersResponse, error)
VRouters returns information about all vrouters.
type VirtualDataCenterService ¶
VirtualDataCenterService owns the /vdc methods.
func (VirtualDataCenterService) AddVirtualDataCenterCluster ¶
func (s VirtualDataCenterService) AddVirtualDataCenterCluster(ctx context.Context, id, zone, cluster int) (*cloud.AddVDCClusterResponse, error)
AddVirtualDataCenterCluster adds a cluster to the VDC with the given ID.
func (VirtualDataCenterService) AddVirtualDataCenterDatastore ¶
func (s VirtualDataCenterService) AddVirtualDataCenterDatastore(ctx context.Context, id, zone, datastore int) (*cloud.AddVDCDatastoreResponse, error)
AddVirtualDataCenterDatastore adds a datastore to the VDC with the given ID.
func (VirtualDataCenterService) AddVirtualDataCenterGroup ¶
func (s VirtualDataCenterService) AddVirtualDataCenterGroup(ctx context.Context, id int) (*cloud.AddVDCGroupResponse, error)
AddVirtualDataCenterGroup adds a group to the VDC with the given ID.
func (VirtualDataCenterService) AddVirtualDataCenterHost ¶
func (s VirtualDataCenterService) AddVirtualDataCenterHost(ctx context.Context, id, zone, host int) (*cloud.AddVDCHostResponse, error)
AddVirtualDataCenterHost adds a host to the VDC with the given ID.
func (VirtualDataCenterService) AddVirtualDataCenterNetwork ¶
func (s VirtualDataCenterService) AddVirtualDataCenterNetwork(ctx context.Context, id, zone, network int) (*cloud.AddVDCNetworkResponse, error)
AddVirtualDataCenterNetwork adds a network to the VDC with the given ID.
func (VirtualDataCenterService) CreateVirtualDataCenter ¶
func (s VirtualDataCenterService) CreateVirtualDataCenter(ctx context.Context, req cloud.CreateVDCRequest) (*cloud.CreateVDCResponse, error)
CreateVirtualDataCenter creates a new VDC.
func (VirtualDataCenterService) DeleteVirtualDataCenter ¶
func (s VirtualDataCenterService) DeleteVirtualDataCenter(ctx context.Context, id int) error
DeleteVirtualDataCenter deletes the VDC with the given ID.
func (VirtualDataCenterService) RemoveVDCCluster ¶
func (s VirtualDataCenterService) RemoveVDCCluster(ctx context.Context, id, zone, cluster int) error
RemoveVDCCluster removes a cluster from the VDC with the given ID.
func (VirtualDataCenterService) RemoveVDCDatastore ¶
func (s VirtualDataCenterService) RemoveVDCDatastore(ctx context.Context, id, zone, datastore int) error
RemoveVDCDatastore removes a datastore from the VDC with the given ID.
func (VirtualDataCenterService) RemoveVDCGroup ¶
func (s VirtualDataCenterService) RemoveVDCGroup(ctx context.Context, id, group int) error
RemoveVDCGroup removes a group from the VDC with the given ID.
func (VirtualDataCenterService) RemoveVDCHost ¶
func (s VirtualDataCenterService) RemoveVDCHost(ctx context.Context, id, zone, host int) error
RemoveVDCHost removes a host from the VDC with the given ID.
func (VirtualDataCenterService) RemoveVDCNetwork ¶
func (s VirtualDataCenterService) RemoveVDCNetwork(ctx context.Context, id, zone, network int) error
RemoveVDCNetwork removes a network from the VDC with the given ID.
func (VirtualDataCenterService) RenameVirtualDataCenter ¶
func (s VirtualDataCenterService) RenameVirtualDataCenter(ctx context.Context, id int, req cloud.RenameVDCRequest) (*cloud.RenameVDCResponse, error)
RenameVirtualDataCenter renames the VDC with the given ID.
func (VirtualDataCenterService) UpdateVirtualDataCenter ¶
func (s VirtualDataCenterService) UpdateVirtualDataCenter(ctx context.Context, id int, req cloud.UpdateVDCRequest) (*cloud.UpdateVDCResponse, error)
UpdateVirtualDataCenter updates the VDC with the given ID.
func (VirtualDataCenterService) VirtualDataCenter ¶
func (s VirtualDataCenterService) VirtualDataCenter(ctx context.Context, id int) (*cloud.ListVDCResponse, error)
VirtualDataCenter returns information about a vdc.
func (VirtualDataCenterService) VirtualDataCenters ¶
func (s VirtualDataCenterService) VirtualDataCenters(ctx context.Context) (*cloud.ListVDCsResponse, error)
VirtualDataCenters returns information about all vdcs.
type ZoneService ¶
ZoneService owns the /zone methods.
func (ZoneService) CreateZone ¶
func (s ZoneService) CreateZone(ctx context.Context, req cloud.CreateZoneRequest) (*cloud.CreateZoneResponse, error)
CreateZone creates a new zone.
func (ZoneService) DeleteZone ¶
func (s ZoneService) DeleteZone(ctx context.Context, id int) error
DeleteZone deletes the zone with the given ID.
func (ZoneService) EnableZone ¶
func (s ZoneService) EnableZone(ctx context.Context, id int, req cloud.EnableZoneRequest) (*cloud.EnableZoneResponse, error)
EnableZone enables the zone with the given ID.
func (ZoneService) RenameZone ¶
func (s ZoneService) RenameZone(ctx context.Context, id int, req cloud.RenameZoneRequest) (*cloud.RenameZoneResponse, error)
RenameZone renames the zone with the given ID.
func (ZoneService) UpdateZone ¶
func (s ZoneService) UpdateZone(ctx context.Context, id int, req cloud.UpdateZoneRequest) (*cloud.UpdateZoneResponse, error)
UpdateZone updates the zone with the given ID.
func (ZoneService) Zone ¶
func (s ZoneService) Zone(ctx context.Context, id int) (*cloud.ListZoneResponse, error)
Zone returns information about a zone.
func (ZoneService) Zones ¶
func (s ZoneService) Zones(ctx context.Context) (*cloud.ListZonesResponse, error)
Zones returns information about all zones.
func (ZoneService) ZonesRaftStatus ¶
func (s ZoneService) ZonesRaftStatus(ctx context.Context) (*cloud.ListZonesRaftStatusResponse, error)
ZonesRaftStatus returns the raft status for all zones.