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) (*hc.AddClusterDatastoreResponse, error)
- func (s ClusterService) AddClusterHost(ctx context.Context, id, host int) (*hc.AddClusterHostResponse, error)
- func (s ClusterService) AddClusterNetwork(ctx context.Context, id, network int) (*hc.AddClusterNetworkResponse, error)
- func (s ClusterService) Cluster(ctx context.Context, id int) (*hc.ListClusterResponse, error)
- func (s ClusterService) Clusters(ctx context.Context) (*hc.ListClustersResponse, error)
- func (s ClusterService) CreateCluster(ctx context.Context, req hc.CreateClusterRequest) (*hc.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 hc.RenameClusterRequest) (*hc.RenameClusterResponse, error)
- func (s ClusterService) UpdateCluster(ctx context.Context, id int, req hc.UpdateClusterRequest) (*hc.UpdateClusterResponse, error)
- type DatastoreService
- func (s DatastoreService) ChangeDatastoreOwnership(ctx context.Context, id string, req hc.ChangeDatastoreOwnershipRequest) (*hc.ChangeDatastoreOwnershipResponse, error)
- func (s DatastoreService) ChangeDatastorePermissions(ctx context.Context, id string, req hc.ChangeDatastorePermissionsRequest) (*hc.ChangeDatastorePermissionsResponse, error)
- func (s DatastoreService) CreateDatastore(ctx context.Context, req hc.CreateDatastoreRequest) (*hc.CreateDatastoreResponse, error)
- func (s DatastoreService) Datastore(ctx context.Context, id int) (*hc.ListDatastoreResponse, error)
- func (s DatastoreService) Datastores(ctx context.Context) (*hc.ListDatastoresResponse, error)
- func (s DatastoreService) DeleteDatastore(ctx context.Context, id string) error
- func (s DatastoreService) EnableDatastore(ctx context.Context, id int, req hc.EnableDatastoreRequest) (*hc.EnableDatastoreResponse, error)
- func (s DatastoreService) RenameDatastore(ctx context.Context, id string, req hc.RenameDatastoreRequest) (*hc.RenameDatastoreResponse, error)
- func (s DatastoreService) UpdateDatastore(ctx context.Context, id int, req hc.UpdateDatastoreRequest) (*hc.UpdateDatastoreResponse, error)
- type DocumentService
- func (s DocumentService) AllocateDocument(ctx context.Context, req hc.AllocateDocumentRequest) (*hc.AllocateDocumentResponse, error)
- func (s DocumentService) ChangeDocumentOwnership(ctx context.Context, id int, req hc.ChangeDocumentOwnershipRequest) (*hc.ChangeDocumentOwnershipResponse, error)
- func (s DocumentService) ChangeDocumentPermissions(ctx context.Context, id int, req hc.ChangeDocumentPermissionsRequest) (*hc.ChangeDocumentPermissionsResponse, error)
- func (s DocumentService) CloneDocument(ctx context.Context, id int, req hc.CloneDocumentRequest) (*hc.CloneDocumentResponse, error)
- func (s DocumentService) DeleteDocument(ctx context.Context, id int) error
- func (s DocumentService) Document(ctx context.Context, id int) (*hc.ListDocumentResponse, error)
- func (s DocumentService) Documents(ctx context.Context) (*hc.ListDocumentsResponse, error)
- func (s DocumentService) LockDocument(ctx context.Context, id int, req hc.LockDocumentRequest) (*hc.LockDocumentResponse, error)
- func (s DocumentService) RenameDocument(ctx context.Context, id int, req hc.RenameDocumentRequest) (*hc.RenameDocumentResponse, error)
- func (s DocumentService) UnlockDocument(ctx context.Context, id int) (*hc.UnlockDocumentResponse, error)
- func (s DocumentService) UpdateDocument(ctx context.Context, id int, req hc.UpdateDocumentRequest) (*hc.UpdateDocumentResponse, error)
- type GroupService
- func (s GroupService) AddGroupAdmin(ctx context.Context, id int, req hc.AddGroupAdminRequest) (*hc.AddGroupAdminResponse, error)
- func (s GroupService) CreateGroup(ctx context.Context, req hc.CreateGroupRequest) (*hc.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) (*hc.ListGroupResponse, error)
- func (s GroupService) GroupQuota(ctx context.Context) (*hc.ListGroupQuotaResponse, error)
- func (s GroupService) Groups(ctx context.Context) (*hc.ListGroupsResponse, error)
- func (s GroupService) SetGroupQuota(ctx context.Context, id int, req hc.SetGroupQuotaRequest) (*hc.SetGroupQuotaResponse, error)
- func (s GroupService) UpdateGroup(ctx context.Context, id int, req hc.UpdateGroupRequest) (*hc.UpdateGroupResponse, error)
- func (s GroupService) UpdateGroupQuota(ctx context.Context, req hc.UpdateGroupQuotaRequest) (*hc.UpdateGroupQuotaResponse, error)
- type HookService
- func (s HookService) CreateHook(ctx context.Context, req hc.CreateHookRequest) (*hc.CreateHookResponse, error)
- func (s HookService) DeleteHook(ctx context.Context, id int) error
- func (s HookService) Hook(ctx context.Context, id int) (*hc.ListHookResponse, error)
- func (s HookService) HookLog(ctx context.Context, id int, start, end string) (*hc.ListHookLogResponse, error)
- func (s HookService) Hooks(ctx context.Context) (*hc.ListHooksResponse, error)
- func (s HookService) LockHook(ctx context.Context, id int, req hc.LockHookRequest) (*hc.LockHookResponse, error)
- func (s HookService) RenameHook(ctx context.Context, id int, req hc.RenameHookRequest) (*hc.RenameHookResponse, error)
- func (s HookService) RetryHook(ctx context.Context, id int, req hc.RetryHookRequest) (*hc.RetryHookResponse, error)
- func (s HookService) UnlockHook(ctx context.Context, id int, req hc.UnlockHookRequest) (*hc.UnlockHookResponse, error)
- func (s HookService) UpdateHook(ctx context.Context, id int, req hc.UpdateHookRequest) (*hc.UpdateHookResponse, error)
- type HostService
- func (s HostService) CreateHost(ctx context.Context, req hc.CreateHostRequest) (*hc.CreateHostResponse, error)
- func (s HostService) DeleteHost(ctx context.Context, id int) error
- func (s HostService) Host(ctx context.Context, id int) (*hc.ListHostResponse, error)
- func (s HostService) HostMonitoring(ctx context.Context, id int) (*hc.ListHostMonitoringResponse, error)
- func (s HostService) Hosts(ctx context.Context) (*hc.ListHostsResponse, error)
- func (s HostService) HostsMonitoring(ctx context.Context, interval time.Duration) (*hc.ListHostsMonitoringResponse, error)
- func (s HostService) RenameHost(ctx context.Context, id int, req hc.RenameHostRequest) (*hc.RenameHostResponse, error)
- func (s HostService) SetHostStatus(ctx context.Context, id int, req hc.SetHostStatusRequest) (*hc.SetHostStatusResponse, error)
- func (s HostService) UpdateHost(ctx context.Context, id int, req hc.UpdateHostRequest) (*hc.UpdateHostResponse, error)
- type ImageService
- func (s ImageService) ChangeImageOwnership(ctx context.Context, id int, req hc.ChangeImageOwnershipRequest) (*hc.ChangeImageOwnershipResponse, error)
- func (s ImageService) ChangeImagePermissions(ctx context.Context, id int, req hc.ChangeImagePermissionsRequest) (*hc.ChangeImagePermissionsResponse, error)
- func (s ImageService) ChangeImageType(ctx context.Context, id int, req hc.ChangeImageTypeRequest) (*hc.ChangeImageTypeResponse, error)
- func (s ImageService) CloneImage(ctx context.Context, id int, req hc.CloneImageRequest) (*hc.CloneImageResponse, error)
- func (s ImageService) CreateImage(ctx context.Context, req hc.CreateImageRequest) (*hc.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 hc.EnableImageRequest) (*hc.EnableImageResponse, error)
- func (s ImageService) FlattenImageSnapshot(ctx context.Context, id, snapshot int) (*hc.FlattenImageSnapshotResponse, error)
- func (s ImageService) Image(ctx context.Context, id int) (*hc.ListImageResponse, error)
- func (s ImageService) Images(ctx context.Context) (*hc.ListImagesResponse, error)
- func (s ImageService) LockImage(ctx context.Context, id int, req hc.LockImageRequest) (*hc.LockImageResponse, error)
- func (s ImageService) RenameImage(ctx context.Context, id int, req hc.RenameImageRequest) (*hc.RenameImageResponse, error)
- func (s ImageService) RevertImageSnapshot(ctx context.Context, id, snapshot int) (*hc.RevertImageSnapshotResponse, error)
- func (s ImageService) SetImagePersistent(ctx context.Context, id int, req hc.SetImagePersistentRequest) (*hc.SetImagePersistentResponse, error)
- func (s ImageService) UnlockImage(ctx context.Context, id int) (*hc.UnlockImageResponse, error)
- func (s ImageService) UpdateImage(ctx context.Context, id int, req hc.UpdateImageRequest) (*hc.UpdateImageResponse, error)
- type InstanceService
- func (s InstanceService) AddInstanceSchedule(ctx context.Context, id int, req hc.AddInstanceScheduleRequest) (*hc.AddInstanceScheduleResponse, error)
- func (s InstanceService) AddInstanceSecurityGroup(ctx context.Context, id, nic, sg int) (*hc.AddInstanceSecurityGroupResponse, error)
- func (s InstanceService) CalculateInstancesShowback(ctx context.Context, req hc.CalculateInstancesShowbackRequest) error
- func (s InstanceService) ChangeInstanceGroupOwnership(ctx context.Context, id int, req hc.ChangeInstanceGroupOwnershipRequest) (*hc.ChangeInstanceGroupOwnershipResponse, error)
- func (s InstanceService) ChangeInstanceGroupPermissions(ctx context.Context, id int, req hc.ChangeInstanceGroupPermissionsRequest) (*hc.ChangeInstanceGroupPermissionsResponse, error)
- func (s InstanceService) ChangeInstanceOwnership(ctx context.Context, id int, req hc.ChangeInstanceOwnershipRequest) (*hc.ChangeInstanceOwnershipResponse, error)
- func (s InstanceService) ChangeInstancePermissions(ctx context.Context, id int, req hc.ChangeInstancePermissionsRequest) (*hc.ChangeInstancePermissionsResponse, error)
- func (s InstanceService) CreateInstance(ctx context.Context, req hc.CreateInstanceRequest) (*hc.CreateInstanceResponse, error)
- func (s InstanceService) CreateInstanceDisk(ctx context.Context, id int, req hc.CreateInstanceDiskRequest) (*hc.CreateInstanceDiskResponse, error)
- func (s InstanceService) CreateInstanceDiskImage(ctx context.Context, id, disk int, req hc.CreateInstanceDiskImageRequest) (*hc.CreateInstanceDiskImageResponse, error)
- func (s InstanceService) CreateInstanceDiskSnapshot(ctx context.Context, id, disk int, req hc.CreateInstanceDiskSnapshotRequest) (*hc.CreateInstanceDiskSnapshotResponse, error)
- func (s InstanceService) CreateInstanceNIC(ctx context.Context, id int, req hc.CreateInstanceNICRequest) (*hc.CreateInstanceNICResponse, error)
- func (s InstanceService) CreateInstanceSnapshot(ctx context.Context, id int, req hc.CreateInstanceSnapshotRequest) (*hc.CreateInstanceSnapshotResponse, 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 hc.DeployInstanceRequest) (*hc.DeployInstanceResponse, error)
- func (s InstanceService) Instance(ctx context.Context, id int) (*hc.ListInstanceResponse, error)
- func (s InstanceService) InstanceGroup(ctx context.Context, id int) (*hc.ListInstanceGroupResponse, error)
- func (s InstanceService) InstanceGroups(ctx context.Context) (*hc.ListInstanceGroupsResponse, error)
- func (s InstanceService) InstanceMonitoringData(ctx context.Context, id int) (*hc.ListInstanceMonitoringResponse, error)
- func (s InstanceService) InstanceShowback(ctx context.Context, filter hc.Filter, monthStart, monthEnd time.Month, ...) (*hc.ListInstancesShowbackResponse, error)
- func (s InstanceService) Instances(ctx context.Context, state hc.InstanceState, extended bool) (*hc.ListInstancesResponse, error)
- func (s InstanceService) InstancesAccountingData(ctx context.Context, filter hc.Filter, start, end time.Time) (*hc.ListInstancesAccountingResponse, error)
- func (s InstanceService) InstancesMonitoringData(ctx context.Context, filter hc.Filter, seconds int) (*hc.ListInstancesMonitoringResponse, error)
- func (s InstanceService) InstancesSet(ctx context.Context, ids ...int) (*hc.ListInstancesResponse, error)
- func (s InstanceService) LockInstance(ctx context.Context, id int, req hc.LockInstanceRequest) (*hc.LockInstanceResponse, error)
- func (s InstanceService) LockInstanceGroup(ctx context.Context, id int, req hc.LockInstanceGroupRequest) (*hc.LockInstanceGroupResponse, error)
- func (s InstanceService) MoveInstance(ctx context.Context, id int, req hc.MoveInstanceRequest) (*hc.MoveInstanceResponse, error)
- func (s InstanceService) RecoverInstance(ctx context.Context, id int, req hc.RecoverInstanceRequest) (*hc.RecoverInstanceResponse, error)
- func (s InstanceService) RenameInstance(ctx context.Context, id int, req hc.RenameInstanceRequest) (*hc.RenameInstanceResponse, error)
- func (s InstanceService) RenameInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int, ...) (*hc.RenameInstanceDiskSnapshotResponse, error)
- func (s InstanceService) RenameInstanceGroup(ctx context.Context, id int, req hc.RenameInstanceGroupRequest) (*hc.RenameInstanceGroupResponse, error)
- func (s InstanceService) ResizeInstance(ctx context.Context, id int, req hc.ResizeInstanceRequest) (*hc.ResizeInstanceResponse, error)
- func (s InstanceService) ResizeInstanceDisk(ctx context.Context, id, disk int, req hc.ResizeInstanceDiskRequest) (*hc.ResizeInstanceDiskResponse, error)
- func (s InstanceService) RevertInstanceDiskSnapshot(ctx context.Context, id, disk, snapshot int) (*hc.RevertInstanceDiskSnapshotResponse, error)
- func (s InstanceService) RevertInstanceSnapshot(ctx context.Context, id, snapshot int) (*hc.RevertInstanceSnapshotResponse, error)
- func (s InstanceService) SetInstanceAction(ctx context.Context, id int, req hc.SetInstanceActionRequest) (*hc.SetInstanceActionResponse, error)
- func (s InstanceService) UnlockInstance(ctx context.Context, id int) (*hc.UnlockInstanceResponse, error)
- func (s InstanceService) UnlockInstanceGroup(ctx context.Context, id int) (*hc.UnlockInstanceGroupResponse, error)
- func (s InstanceService) UpdateInstanceConfig(ctx context.Context, id int, req hc.UpdateInstanceConfigRequest) (*hc.UpdateInstanceConfigResponse, error)
- func (s InstanceService) UpdateInstanceGroup(ctx context.Context, id int, req *hc.UpdateInstanceGroupRequest) (*hc.UpdateInstanceGroupResponse, error)
- func (s InstanceService) UpdateInstanceSchedule(ctx context.Context, id int, req hc.UpdateInstanceScheduleRequest) (*hc.UpdateInstanceScheduleResponse, error)
- func (s InstanceService) UpdateInstanceTemplate(ctx context.Context, id int, req hc.UpdateInstanceTemplateRequest) (*hc.UpdateInstanceTemplateResponse, error)
- type MarketService
- func (s MarketService) ChangeMarketAppOwnership(ctx context.Context, id, app int, req hc.ChangeMarketAppOwnershipRequest) (*hc.ChangeMarketAppOwnershipResponse, error)
- func (s MarketService) ChangeMarketAppPermissions(ctx context.Context, id, app int, req hc.ChangeMarketAppPermissionsRequest) (*hc.ChangeMarketAppPermissionsResponse, error)
- func (s MarketService) ChangeMarketOwnership(ctx context.Context, id int, req hc.ChangeMarketOwnershipRequest) (*hc.ChangeMarketOwnershipResponse, error)
- func (s MarketService) ChangeMarketPermissions(ctx context.Context, id int, req hc.ChangeMarketPermissionsRequest) (*hc.ChangeMarketPermissionsResponse, error)
- func (s MarketService) CreateMarket(ctx context.Context, req hc.CreateMarketRequest) (*hc.CreateMarketResponse, error)
- func (s MarketService) CreateMarketApp(ctx context.Context, id int, req hc.CreateMarketAppRequest) (*hc.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 hc.EnableMarketRequest) (*hc.EnableMarketResponse, error)
- func (s MarketService) EnableMarketApp(ctx context.Context, id, app int, req hc.EnableMarketAppRequest) (*hc.EnableMarketAppResponse, error)
- func (s MarketService) LockMarketApp(ctx context.Context, id, app int, req hc.LockMarketAppRequest) (*hc.LockMarketAppResponse, error)
- func (s MarketService) Market(ctx context.Context, id int) (*hc.ListMarketResponse, error)
- func (s MarketService) MarketApp(ctx context.Context, id int) (*hc.ListMarketAppResponse, error)
- func (s MarketService) MarketApps(ctx context.Context) (*hc.ListMarketAppsResponse, error)
- func (s MarketService) Markets(ctx context.Context) (*hc.ListMarketsResponse, error)
- func (s MarketService) RenameMarket(ctx context.Context, id int, req hc.RenameMarketRequest) (*hc.RenameMarketResponse, error)
- func (s MarketService) RenameMarketApp(ctx context.Context, id, app int, req hc.RenameMarketAppRequest) (*hc.RenameMarketAppResponse, error)
- func (s MarketService) UnlockMarketApp(ctx context.Context, id, app int) (*hc.UnlockMarketAppResponse, error)
- func (s MarketService) UpdateMarket(ctx context.Context, id int, req hc.UpdateMarketRequest) (*hc.UpdateMarketResponse, error)
- func (s MarketService) UpdateMarketApp(ctx context.Context, id, app int, req hc.UpdateMarketAppRequest) (*hc.UpdateMarketAppResponse, error)
- type SecurityGroupService
- func (s SecurityGroupService) ChangeSecurityGroupOwnership(ctx context.Context, id int, req hc.ChangeSecurityGroupOwnershipRequest) (*hc.ChangeSecurityGroupOwnershipResponse, error)
- func (s SecurityGroupService) ChangeSecurityGroupPermissions(ctx context.Context, id int, req hc.ChangeSecurityGroupPermissionsRequest) (*hc.ChangeSecurityGroupPermissionsResponse, error)
- func (s SecurityGroupService) CloneSecurityGroup(ctx context.Context, id int, req hc.CloneSecurityGroupRequest) (*hc.CloneSecurityGroupResponse, error)
- func (s SecurityGroupService) CommitSecurityGroup(ctx context.Context, id int, req hc.CommitSecurityGroupRequest) (*hc.CommitSecurityGroupResponse, error)
- func (s SecurityGroupService) CreateSecurityGroup(ctx context.Context, req hc.CreateSecurityGroupRequest) (*hc.CreateSecurityGroupResponse, error)
- func (s SecurityGroupService) DeleteSecurityGroup(ctx context.Context, id int) error
- func (s SecurityGroupService) RenameSecurityGroup(ctx context.Context, id int, req hc.RenameSecurityGroupRequest) (*hc.RenameSecurityGroupResponse, error)
- func (s SecurityGroupService) SecurityGroup(ctx context.Context, id int) (*hc.ListSecurityGroupResponse, error)
- func (s SecurityGroupService) SecurityGroups(ctx context.Context) (*hc.ListSecurityGroupsResponse, error)
- func (s SecurityGroupService) UpdateSecurityGroup(ctx context.Context, id int, req hc.UpdateSecurityGroupRequest) (*hc.UpdateSecurityGroupResponse, error)
- type SystemService
- type TemplateService
- func (s TemplateService) ChangeTemplateOwnership(ctx context.Context, id int, req hc.ChangeTemplateOwnershipRequest) (*hc.ChangeTemplateOwnershipResponse, error)
- func (s TemplateService) ChangeTemplatePermissions(ctx context.Context, id int, req hc.ChangeTemplatePermissionsRequest) (*hc.ChangeTemplatePermissionsResponse, error)
- func (s TemplateService) CloneTemplate(ctx context.Context, id int, req hc.CloneTemplateRequest) (*hc.CloneTemplateResponse, error)
- func (s TemplateService) CreateTemplate(ctx context.Context, req hc.CreateTemplateRequest) (*hc.CreateTemplateResponse, error)
- func (s TemplateService) DeleteTemplate(ctx context.Context, id int) error
- func (s TemplateService) InstantiateTemplate(ctx context.Context, id int, req hc.InstantiateTemplateRequest) (*hc.InstantiateTemplateResponse, error)
- func (s TemplateService) LockTemplate(ctx context.Context, id int, req hc.LockTemplateRequest) (*hc.LockTemplateResponse, error)
- func (s TemplateService) RenameTemplate(ctx context.Context, id int, req hc.RenameTemplateRequest) (*hc.RenameTemplateResponse, error)
- func (s TemplateService) Template(ctx context.Context, id int) (*hc.ListTemplateResponse, error)
- func (s TemplateService) Templates(ctx context.Context) (*hc.ListTemplatesResponse, error)
- func (s TemplateService) UnlockTemplate(ctx context.Context, id int) (*hc.UnlockTemplateResponse, error)
- func (s TemplateService) UpdateTemplate(ctx context.Context, id int, req hc.UpdateTemplateRequest) (*hc.UpdateTemplateResponse, error)
- type UserService
- func (s UserService) AddUserGroup(ctx context.Context, id, group int) (*hc.AddUserGroupResponse, error)
- func (s UserService) ChangeUserAuth(ctx context.Context, id int, req hc.ChangeUserAuthRequest) (*hc.ChangeUserAuthResponse, error)
- func (s UserService) ChangeUserGroup(ctx context.Context, id, group int) (*hc.ChangeUserGroupResponse, error)
- func (s UserService) ChangeUserPassword(ctx context.Context, id int, req hc.ChangeUserPasswordRequest) (*hc.ChangeUserPasswordResponse, error)
- func (s UserService) CreateUser(ctx context.Context, req hc.CreateUserRequest) (*hc.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 hc.EnableUserRequest) (*hc.EnableUserResponse, error)
- func (s UserService) SetUserQuota(ctx context.Context, id int, req hc.SetUserQuotaRequest) (*hc.SetUserQuotaResponse, error)
- func (s UserService) UpdateDefaultUserQuota(ctx context.Context, req hc.UpdateDefaultUserQuotaRequest) (*hc.UpdateDefaultUserQuotaResponse, error)
- func (s UserService) UpdateUser(ctx context.Context, id int, req hc.UpdateUserRequest) (*hc.UpdateUserResponse, error)
- func (s UserService) User(ctx context.Context, id int) (*hc.ListUserResponse, error)
- func (s UserService) UserQuota(ctx context.Context) (*hc.ListUserQuotaResponse, error)
- func (s UserService) Users(ctx context.Context) (*hc.ListUsersResponse, error)
- type VNetService
- func (s VNetService) AddVNetAddressRange(ctx context.Context, id int, req hc.AddVNetAddressRangeRequest) (*hc.AddVNetAddressRangeResponse, error)
- func (s VNetService) ChangeVNetOwnership(ctx context.Context, id int, req hc.ChangeVNetOwnershipRequest) (*hc.ChangeVNetOwnershipResponse, error)
- func (s VNetService) ChangeVNetPermissions(ctx context.Context, id int, req hc.ChangeVNetPermissionsRequest) (*hc.ChangeVNetPermissionsResponse, error)
- func (s VNetService) ChangeVNetTemplateOwnership(ctx context.Context, id int, req hc.ChangeVNetTemplateOwnershipRequest) (*hc.ChangeVNetTemplateOwnershipResponse, error)
- func (s VNetService) ChangeVNetTemplatePermissions(ctx context.Context, id int, req hc.ChangeVNetTemplatePermissionsRequest) (*hc.ChangeVNetTemplatePermissionsResponse, error)
- func (s VNetService) CloneVNetTemplate(ctx context.Context, id int, req hc.CloneVNetTemplateRequest) (*hc.CloneVNetTemplateResponse, error)
- func (s VNetService) CreateVNet(ctx context.Context, req hc.CreateVNetRequest) (*hc.CreateVNetResponse, error)
- func (s VNetService) CreateVNetTemplate(ctx context.Context, req hc.CreateVNetTemplateRequest) (*hc.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 hc.HoldVNetRequest) (*hc.HoldVNetResponse, error)
- func (s VNetService) InstantiateVNetTemplate(ctx context.Context, id int, req hc.InstantiateVNetTemplateRequest) (*hc.InstantiateVNetTemplateResponse, error)
- func (s VNetService) LockVNet(ctx context.Context, id int, req hc.LockVNetRequest) (*hc.LockVNetResponse, error)
- func (s VNetService) LockVNetTemplate(ctx context.Context, id int, req hc.LockVNetTemplateRequest) (*hc.LockVNetTemplateResponse, error)
- func (s VNetService) RecoverVNets(ctx context.Context, id int, req hc.RecoverVNetRequest) (*hc.RecoverVNetResponse, error)
- func (s VNetService) ReleaseVNet(ctx context.Context, id int, req hc.ReleaseVNetRequest) (*hc.ReleaseVNetResponse, error)
- func (s VNetService) RenameVNet(ctx context.Context, id int, req hc.RenameVNetRequest) (*hc.RenameVNetResponse, error)
- func (s VNetService) RenameVNetTemplate(ctx context.Context, id int, req hc.RenameVNetTemplateRequest) (*hc.RenameVNetTemplateResponse, error)
- func (s VNetService) ReserveVNet(ctx context.Context, id int, req hc.ReserveVNetRequest) (*hc.ReserveVNetResponse, error)
- func (s VNetService) UnlockVNet(ctx context.Context, id int) (*hc.UnlockVNetResponse, error)
- func (s VNetService) UnlockVNetTemplate(ctx context.Context, id int) (*hc.UnlockVNetTemplateResponse, error)
- func (s VNetService) UpdateVNet(ctx context.Context, id int, req hc.UpdateVNetRequest) (*hc.UpdateVNetResponse, error)
- func (s VNetService) UpdateVNetAddressRange(ctx context.Context, id int, req hc.UpdateVNetAddressRangeRequest) (*hc.UpdateVNetAddressRangeResponse, error)
- func (s VNetService) UpdateVNetTemplate(ctx context.Context, id int, req hc.UpdateVNetTemplateRequest) (*hc.UpdateVNetTemplateResponse, error)
- func (s VNetService) VNet(ctx context.Context, id int) (*hc.ListVNetResponse, error)
- func (s VNetService) VNetTemplate(ctx context.Context, id int) (*hc.ListVNetTemplateResponse, error)
- func (s VNetService) VNetTemplates(ctx context.Context) (*hc.ListVNetTemplatesResponse, error)
- func (s VNetService) VNets(ctx context.Context) (*hc.ListVNetsResponse, error)
- type VRouterService
- func (s VRouterService) ChangeVRouterOwnership(ctx context.Context, id int, req hc.ChangeVRouterOwnershipRequest) (*hc.ChangeVRouterOwnershipResponse, error)
- func (s VRouterService) ChangeVRouterPermissions(ctx context.Context, id int, req hc.ChangeVRouterPermissionsRequest) (*hc.ChangeVRouterPermissionsResponse, error)
- func (s VRouterService) CreateVRouter(ctx context.Context, req hc.CreateVRouterRequest) (*hc.CreateVRouterResponse, error)
- func (s VRouterService) CreateVRouterNIC(ctx context.Context, id int, req hc.CreateVRouterNICRequest) (*hc.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 hc.InstantiateVRouterRequest) (*hc.InstantiateVRouterResponse, error)
- func (s VRouterService) LockVRouter(ctx context.Context, id int, req hc.LockVRouterRequest) (*hc.LockVRouterResponse, error)
- func (s VRouterService) RenameVRouter(ctx context.Context, id int, req hc.RenameVRouterRequest) (*hc.RenameVRouterResponse, error)
- func (s VRouterService) UnlockVRouter(ctx context.Context, id int) (*hc.UnlockVRouterResponse, error)
- func (s VRouterService) UpdateVRouter(ctx context.Context, id int, req hc.UpdateVRouterRequest) (*hc.UpdateVRouterResponse, error)
- func (s VRouterService) VRouter(ctx context.Context, id int) (*hc.ListVRouterResponse, error)
- func (s VRouterService) VRouters(ctx context.Context) (*hc.ListVRoutersResponse, error)
- type VirtualDataCenterService
- func (s VirtualDataCenterService) AddVirtualDataCenterCluster(ctx context.Context, id, zone, cluster int) (*hc.AddVDCClusterResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterDatastore(ctx context.Context, id, zone, datastore int) (*hc.AddVDCDatastoreResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterGroup(ctx context.Context, id int) (*hc.AddVDCGroupResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterHost(ctx context.Context, id, zone, host int) (*hc.AddVDCHostResponse, error)
- func (s VirtualDataCenterService) AddVirtualDataCenterNetwork(ctx context.Context, id, zone, network int) (*hc.AddVDCNetworkResponse, error)
- func (s VirtualDataCenterService) CreateVirtualDataCenter(ctx context.Context, req hc.CreateVDCRequest) (*hc.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 hc.RenameVDCRequest) (*hc.RenameVDCResponse, error)
- func (s VirtualDataCenterService) UpdateVirtualDataCenter(ctx context.Context, id int, req hc.UpdateVDCRequest) (*hc.UpdateVDCResponse, error)
- func (s VirtualDataCenterService) VirtualDataCenter(ctx context.Context, id int) (*hc.ListVDCResponse, error)
- func (s VirtualDataCenterService) VirtualDataCenters(ctx context.Context) (*hc.ListVDCsResponse, error)
- type ZoneService
- func (s ZoneService) CreateZone(ctx context.Context, req hc.CreateZoneRequest) (*hc.CreateZoneResponse, error)
- func (s ZoneService) DeleteZone(ctx context.Context, id int) error
- func (s ZoneService) EnableZone(ctx context.Context, id int, req hc.EnableZoneRequest) (*hc.EnableZoneResponse, error)
- func (s ZoneService) RenameZone(ctx context.Context, id int, req hc.RenameZoneRequest) (*hc.RenameZoneResponse, error)
- func (s ZoneService) UpdateZone(ctx context.Context, id int, req hc.UpdateZoneRequest) (*hc.UpdateZoneResponse, error)
- func (s ZoneService) Zone(ctx context.Context, id int) (*hc.ListZoneResponse, error)
- func (s ZoneService) Zones(ctx context.Context) (*hc.ListZonesResponse, error)
- func (s ZoneService) ZonesRaftStatus(ctx context.Context) (*hc.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) (*hc.ListACLsResponse, error)
ACLs returns a slice containing all of the Access Control Lists.
func (ACLService) CreateACL ¶
func (s ACLService) CreateACL(ctx context.Context, req hc.CreateACLRequest) (*hc.CreateACLResponse, error)
CreateACL creates a new Access Control List and returns its id.
type Client ¶
type Client struct {
ACLService
ClusterService
DatastoreService
DocumentService
GroupService
HookService
HostService
ImageService
InstanceService
MarketService
SecurityGroupService
SystemService
TemplateService
UserService
VNetService
VRouterService
VirtualDataCenterService
ZoneService
*client.Client
}
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) (*hc.AddClusterDatastoreResponse, error)
AddClusterDatastore adds the datastore to the cluster.
func (ClusterService) AddClusterHost ¶
func (s ClusterService) AddClusterHost(ctx context.Context, id, host int) (*hc.AddClusterHostResponse, error)
AddClusterHost adds the host to the cluster.
func (ClusterService) AddClusterNetwork ¶
func (s ClusterService) AddClusterNetwork(ctx context.Context, id, network int) (*hc.AddClusterNetworkResponse, error)
AddClusterNetwork adds the network to the cluster.
func (ClusterService) Cluster ¶
func (s ClusterService) Cluster(ctx context.Context, id int) (*hc.ListClusterResponse, error)
Cluster returns information about a cluster.
func (ClusterService) Clusters ¶
func (s ClusterService) Clusters(ctx context.Context) (*hc.ListClustersResponse, error)
Clusters returns information about all clusters.
func (ClusterService) CreateCluster ¶
func (s ClusterService) CreateCluster(ctx context.Context, req hc.CreateClusterRequest) (*hc.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 hc.RenameClusterRequest) (*hc.RenameClusterResponse, error)
RenameCluster updates the name of the cluster.
func (ClusterService) UpdateCluster ¶
func (s ClusterService) UpdateCluster(ctx context.Context, id int, req hc.UpdateClusterRequest) (*hc.UpdateClusterResponse, error)
UpdateCluster updates the cluster.
type DatastoreService ¶
DatastoreService owns the /datastore methods.
func (DatastoreService) ChangeDatastoreOwnership ¶
func (s DatastoreService) ChangeDatastoreOwnership(ctx context.Context, id string, req hc.ChangeDatastoreOwnershipRequest) (*hc.ChangeDatastoreOwnershipResponse, error)
ChangeDatastoreOwnership changes the datastore ownership with the given ID.
func (DatastoreService) ChangeDatastorePermissions ¶
func (s DatastoreService) ChangeDatastorePermissions(ctx context.Context, id string, req hc.ChangeDatastorePermissionsRequest) (*hc.ChangeDatastorePermissionsResponse, error)
ChangeDatastorePermissions changes the datastore permissions with the given ID.
func (DatastoreService) CreateDatastore ¶
func (s DatastoreService) CreateDatastore(ctx context.Context, req hc.CreateDatastoreRequest) (*hc.CreateDatastoreResponse, error)
CreateDatastore creates a new datastore.
func (DatastoreService) Datastore ¶
func (s DatastoreService) Datastore(ctx context.Context, id int) (*hc.ListDatastoreResponse, error)
Datastore returns information about a datastore.
func (DatastoreService) Datastores ¶
func (s DatastoreService) Datastores(ctx context.Context) (*hc.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 hc.EnableDatastoreRequest) (*hc.EnableDatastoreResponse, error)
EnableDatastore enables the datastore with the given ID.
func (DatastoreService) RenameDatastore ¶
func (s DatastoreService) RenameDatastore(ctx context.Context, id string, req hc.RenameDatastoreRequest) (*hc.RenameDatastoreResponse, error)
RenameDatastore renames the datastore with the given ID.
func (DatastoreService) UpdateDatastore ¶
func (s DatastoreService) UpdateDatastore(ctx context.Context, id int, req hc.UpdateDatastoreRequest) (*hc.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 hc.AllocateDocumentRequest) (*hc.AllocateDocumentResponse, error)
AllocateDocument allocates a document.
func (DocumentService) ChangeDocumentOwnership ¶
func (s DocumentService) ChangeDocumentOwnership(ctx context.Context, id int, req hc.ChangeDocumentOwnershipRequest) (*hc.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 hc.ChangeDocumentPermissionsRequest) (*hc.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 hc.CloneDocumentRequest) (*hc.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) (*hc.ListDocumentResponse, error)
Document returns information about the document with the given ID.
func (DocumentService) Documents ¶
func (s DocumentService) Documents(ctx context.Context) (*hc.ListDocumentsResponse, error)
Documents returns information about all documents.
func (DocumentService) LockDocument ¶
func (s DocumentService) LockDocument(ctx context.Context, id int, req hc.LockDocumentRequest) (*hc.LockDocumentResponse, error)
LockDocument locks the document with the given ID.
func (DocumentService) RenameDocument ¶
func (s DocumentService) RenameDocument(ctx context.Context, id int, req hc.RenameDocumentRequest) (*hc.RenameDocumentResponse, error)
RenameDocument renames the document with the given ID.
func (DocumentService) UnlockDocument ¶
func (s DocumentService) UnlockDocument(ctx context.Context, id int) (*hc.UnlockDocumentResponse, error)
UnlockDocument unlocks the document with the given ID.
func (DocumentService) UpdateDocument ¶
func (s DocumentService) UpdateDocument(ctx context.Context, id int, req hc.UpdateDocumentRequest) (*hc.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 hc.AddGroupAdminRequest) (*hc.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 hc.CreateGroupRequest) (*hc.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) (*hc.ListGroupResponse, error)
Group returns information about a group.
func (GroupService) GroupQuota ¶
func (s GroupService) GroupQuota(ctx context.Context) (*hc.ListGroupQuotaResponse, error)
GroupQuota returns the default group quota.
func (GroupService) Groups ¶
func (s GroupService) Groups(ctx context.Context) (*hc.ListGroupsResponse, error)
Groups returns information about all groups.
func (GroupService) SetGroupQuota ¶
func (s GroupService) SetGroupQuota(ctx context.Context, id int, req hc.SetGroupQuotaRequest) (*hc.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 hc.UpdateGroupRequest) (*hc.UpdateGroupResponse, error)
UpdateGroup updates the group with the given ID.
func (GroupService) UpdateGroupQuota ¶
func (s GroupService) UpdateGroupQuota(ctx context.Context, req hc.UpdateGroupQuotaRequest) (*hc.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 hc.CreateHookRequest) (*hc.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) (*hc.ListHookResponse, error)
Hook returns information about a hook.
func (HookService) HookLog ¶
func (s HookService) HookLog(ctx context.Context, id int, start, end string) (*hc.ListHookLogResponse, error)
HookLog returns the logs for a hook.
func (HookService) Hooks ¶
func (s HookService) Hooks(ctx context.Context) (*hc.ListHooksResponse, error)
Hooks returns information about all hooks.
func (HookService) LockHook ¶
func (s HookService) LockHook(ctx context.Context, id int, req hc.LockHookRequest) (*hc.LockHookResponse, error)
LockHook locks the hook with the given id.
func (HookService) RenameHook ¶
func (s HookService) RenameHook(ctx context.Context, id int, req hc.RenameHookRequest) (*hc.RenameHookResponse, error)
RenameHook renames the hook with the given id.
func (HookService) RetryHook ¶
func (s HookService) RetryHook(ctx context.Context, id int, req hc.RetryHookRequest) (*hc.RetryHookResponse, error)
RetryHook retries the hook with the given id.
func (HookService) UnlockHook ¶
func (s HookService) UnlockHook(ctx context.Context, id int, req hc.UnlockHookRequest) (*hc.UnlockHookResponse, error)
UnlockHook unlocks the hook with the given id.
func (HookService) UpdateHook ¶
func (s HookService) UpdateHook(ctx context.Context, id int, req hc.UpdateHookRequest) (*hc.UpdateHookResponse, error)
UpdateHook updates the hook with the given id.
type HostService ¶
HostService owns the /host methods.
func (HostService) CreateHost ¶
func (s HostService) CreateHost(ctx context.Context, req hc.CreateHostRequest) (*hc.CreateHostResponse, error)
CreateHost creates a new host.
func (HostService) DeleteHost ¶
func (s HostService) DeleteHost(ctx context.Context, id int) error
DeleteHost deletes the host with the given ID.
func (HostService) Host ¶
func (s HostService) Host(ctx context.Context, id int) (*hc.ListHostResponse, error)
Host returns information about a host.
func (HostService) HostMonitoring ¶
func (s HostService) HostMonitoring(ctx context.Context, id int) (*hc.ListHostMonitoringResponse, error)
HostMonitoring returns monitoring data for a host.
func (HostService) Hosts ¶
func (s HostService) Hosts(ctx context.Context) (*hc.ListHostsResponse, error)
Hosts returns information about all hosts.
func (HostService) HostsMonitoring ¶
func (s HostService) HostsMonitoring(ctx context.Context, interval time.Duration) (*hc.ListHostsMonitoringResponse, error)
HostsMonitoring returns monitoring data for all hosts.
func (HostService) RenameHost ¶
func (s HostService) RenameHost(ctx context.Context, id int, req hc.RenameHostRequest) (*hc.RenameHostResponse, error)
RenameHost renames the host with the given ID.
func (HostService) SetHostStatus ¶
func (s HostService) SetHostStatus(ctx context.Context, id int, req hc.SetHostStatusRequest) (*hc.SetHostStatusResponse, error)
SetHostStatus sets the status of the host with the given ID.
func (HostService) UpdateHost ¶
func (s HostService) UpdateHost(ctx context.Context, id int, req hc.UpdateHostRequest) (*hc.UpdateHostResponse, error)
UpdateHost updates the host with the given ID.
type ImageService ¶
ImageService owns the /image methods.
func (ImageService) ChangeImageOwnership ¶
func (s ImageService) ChangeImageOwnership(ctx context.Context, id int, req hc.ChangeImageOwnershipRequest) (*hc.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 hc.ChangeImagePermissionsRequest) (*hc.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 hc.ChangeImageTypeRequest) (*hc.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 hc.CloneImageRequest) (*hc.CloneImageResponse, error)
CloneImage clones the image with the given ID.
func (ImageService) CreateImage ¶
func (s ImageService) CreateImage(ctx context.Context, req hc.CreateImageRequest) (*hc.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 hc.EnableImageRequest) (*hc.EnableImageResponse, error)
EnableImage enables the image with the given ID.
func (ImageService) FlattenImageSnapshot ¶
func (s ImageService) FlattenImageSnapshot(ctx context.Context, id, snapshot int) (*hc.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) (*hc.ListImageResponse, error)
Image returns information about a image.
func (ImageService) Images ¶
func (s ImageService) Images(ctx context.Context) (*hc.ListImagesResponse, error)
Images returns information about all images.
func (ImageService) LockImage ¶
func (s ImageService) LockImage(ctx context.Context, id int, req hc.LockImageRequest) (*hc.LockImageResponse, error)
LockImage locks the image with the given ID.
func (ImageService) RenameImage ¶
func (s ImageService) RenameImage(ctx context.Context, id int, req hc.RenameImageRequest) (*hc.RenameImageResponse, error)
RenameImage renames the image with the given ID.
func (ImageService) RevertImageSnapshot ¶
func (s ImageService) RevertImageSnapshot(ctx context.Context, id, snapshot int) (*hc.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 hc.SetImagePersistentRequest) (*hc.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) (*hc.UnlockImageResponse, error)
UnlockImage unlocks the image with the given ID.
func (ImageService) UpdateImage ¶
func (s ImageService) UpdateImage(ctx context.Context, id int, req hc.UpdateImageRequest) (*hc.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 hc.AddInstanceScheduleRequest) (*hc.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) (*hc.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 hc.CalculateInstancesShowbackRequest) error
CalculateInstancesShowback calculates the showback for all the instances.
func (InstanceService) ChangeInstanceGroupOwnership ¶
func (s InstanceService) ChangeInstanceGroupOwnership(ctx context.Context, id int, req hc.ChangeInstanceGroupOwnershipRequest) (*hc.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 hc.ChangeInstanceGroupPermissionsRequest) (*hc.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 hc.ChangeInstanceOwnershipRequest) (*hc.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 hc.ChangeInstancePermissionsRequest) (*hc.ChangeInstancePermissionsResponse, error)
ChangeInstancePermissions changes the permissions of the instance with the given id.
func (InstanceService) CreateInstance ¶
func (s InstanceService) CreateInstance(ctx context.Context, req hc.CreateInstanceRequest) (*hc.CreateInstanceResponse, error)
CreateInstance creates a new instance.
func (InstanceService) CreateInstanceDisk ¶
func (s InstanceService) CreateInstanceDisk(ctx context.Context, id int, req hc.CreateInstanceDiskRequest) (*hc.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 hc.CreateInstanceDiskImageRequest) (*hc.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 hc.CreateInstanceDiskSnapshotRequest) (*hc.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 hc.CreateInstanceNICRequest) (*hc.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 hc.CreateInstanceSnapshotRequest) (*hc.CreateInstanceSnapshotResponse, error)
CreateInstanceSnapshot creates a new snapshot for the instance with the given id.
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 hc.DeployInstanceRequest) (*hc.DeployInstanceResponse, error)
DeployInstance deploys the instance with the given id.
func (InstanceService) Instance ¶
func (s InstanceService) Instance(ctx context.Context, id int) (*hc.ListInstanceResponse, error)
Instance returns the Instance for the given id.
func (InstanceService) InstanceGroup ¶
func (s InstanceService) InstanceGroup(ctx context.Context, id int) (*hc.ListInstanceGroupResponse, error)
InstanceGroup returns information about an instance group.
func (InstanceService) InstanceGroups ¶
func (s InstanceService) InstanceGroups(ctx context.Context) (*hc.ListInstanceGroupsResponse, error)
InstanceGroups returns information about all instance groups.
func (InstanceService) InstanceMonitoringData ¶
func (s InstanceService) InstanceMonitoringData(ctx context.Context, id int) (*hc.ListInstanceMonitoringResponse, error)
InstanceMonitoringData returns monitoring data for id.
func (InstanceService) InstanceShowback ¶
func (s InstanceService) InstanceShowback(ctx context.Context, filter hc.Filter, monthStart, monthEnd time.Month, yearStart, yearEnd int) (*hc.ListInstancesShowbackResponse, error)
InstanceShowback returns showback data for a set of instances.
func (InstanceService) Instances ¶
func (s InstanceService) Instances(ctx context.Context, state hc.InstanceState, extended bool) (*hc.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 hc.Filter, start, end time.Time) (*hc.ListInstancesAccountingResponse, error)
InstancesAccountingData returns accounting data for a set of instances.
func (InstanceService) InstancesMonitoringData ¶
func (s InstanceService) InstancesMonitoringData(ctx context.Context, filter hc.Filter, seconds int) (*hc.ListInstancesMonitoringResponse, error)
InstancesMonitoringData returns monitoring data for a set of instances.
func (InstanceService) InstancesSet ¶
func (s InstanceService) InstancesSet(ctx context.Context, ids ...int) (*hc.ListInstancesResponse, error)
InstancesSet returns a slice of Instances.
func (InstanceService) LockInstance ¶
func (s InstanceService) LockInstance(ctx context.Context, id int, req hc.LockInstanceRequest) (*hc.LockInstanceResponse, error)
LockInstance locks the instance with the given id.
func (InstanceService) LockInstanceGroup ¶
func (s InstanceService) LockInstanceGroup(ctx context.Context, id int, req hc.LockInstanceGroupRequest) (*hc.LockInstanceGroupResponse, error)
LockInstanceGroup locks the instance group with the given ID.
func (InstanceService) MoveInstance ¶
func (s InstanceService) MoveInstance(ctx context.Context, id int, req hc.MoveInstanceRequest) (*hc.MoveInstanceResponse, error)
MoveInstance moves the instance with the given id.
func (InstanceService) RecoverInstance ¶
func (s InstanceService) RecoverInstance(ctx context.Context, id int, req hc.RecoverInstanceRequest) (*hc.RecoverInstanceResponse, error)
RecoverInstance recovers the instance with the given id.
func (InstanceService) RenameInstance ¶
func (s InstanceService) RenameInstance(ctx context.Context, id int, req hc.RenameInstanceRequest) (*hc.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 hc.RenameInstanceDiskSnapshotRequest) (*hc.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 hc.RenameInstanceGroupRequest) (*hc.RenameInstanceGroupResponse, error)
RenameInstanceGroup renames the instance group with the given ID.
func (InstanceService) ResizeInstance ¶
func (s InstanceService) ResizeInstance(ctx context.Context, id int, req hc.ResizeInstanceRequest) (*hc.ResizeInstanceResponse, error)
ResizeInstance resizes the instance with the given id.
func (InstanceService) ResizeInstanceDisk ¶
func (s InstanceService) ResizeInstanceDisk(ctx context.Context, id, disk int, req hc.ResizeInstanceDiskRequest) (*hc.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) (*hc.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) (*hc.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 hc.SetInstanceActionRequest) (*hc.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) (*hc.UnlockInstanceResponse, error)
UnlockInstance unlocks the instance with the given id.
func (InstanceService) UnlockInstanceGroup ¶
func (s InstanceService) UnlockInstanceGroup(ctx context.Context, id int) (*hc.UnlockInstanceGroupResponse, error)
UnlockInstanceGroup unlocks the instance group with the given ID.
func (InstanceService) UpdateInstanceConfig ¶
func (s InstanceService) UpdateInstanceConfig(ctx context.Context, id int, req hc.UpdateInstanceConfigRequest) (*hc.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 *hc.UpdateInstanceGroupRequest) (*hc.UpdateInstanceGroupResponse, error)
UpdateInstanceGroup updates the instance group with the given ID.
func (InstanceService) UpdateInstanceSchedule ¶
func (s InstanceService) UpdateInstanceSchedule(ctx context.Context, id int, req hc.UpdateInstanceScheduleRequest) (*hc.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 hc.UpdateInstanceTemplateRequest) (*hc.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 hc.ChangeMarketAppOwnershipRequest) (*hc.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 hc.ChangeMarketAppPermissionsRequest) (*hc.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 hc.ChangeMarketOwnershipRequest) (*hc.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 hc.ChangeMarketPermissionsRequest) (*hc.ChangeMarketPermissionsResponse, error)
ChangeMarketPermissions changes the permissions of the marketplace with the given ID.
func (MarketService) CreateMarket ¶
func (s MarketService) CreateMarket(ctx context.Context, req hc.CreateMarketRequest) (*hc.CreateMarketResponse, error)
CreateMarket creates a new marketplace.
func (MarketService) CreateMarketApp ¶
func (s MarketService) CreateMarketApp(ctx context.Context, id int, req hc.CreateMarketAppRequest) (*hc.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 hc.EnableMarketRequest) (*hc.EnableMarketResponse, error)
EnableMarket enables the marketplace with the given ID.
func (MarketService) EnableMarketApp ¶
func (s MarketService) EnableMarketApp(ctx context.Context, id, app int, req hc.EnableMarketAppRequest) (*hc.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 hc.LockMarketAppRequest) (*hc.LockMarketAppResponse, error)
LockMarketApp locks the marketplace application with the given ID.
func (MarketService) Market ¶
func (s MarketService) Market(ctx context.Context, id int) (*hc.ListMarketResponse, error)
Market returns information about a marketplace.
func (MarketService) MarketApp ¶
func (s MarketService) MarketApp(ctx context.Context, id int) (*hc.ListMarketAppResponse, error)
MarketApp returns information about a marketplace application.
func (MarketService) MarketApps ¶
func (s MarketService) MarketApps(ctx context.Context) (*hc.ListMarketAppsResponse, error)
MarketApps returns information about all marketplace applications.
func (MarketService) Markets ¶
func (s MarketService) Markets(ctx context.Context) (*hc.ListMarketsResponse, error)
Markets returns information about all marketplaces.
func (MarketService) RenameMarket ¶
func (s MarketService) RenameMarket(ctx context.Context, id int, req hc.RenameMarketRequest) (*hc.RenameMarketResponse, error)
RenameMarket renames the marketplace with the given ID.
func (MarketService) RenameMarketApp ¶
func (s MarketService) RenameMarketApp(ctx context.Context, id, app int, req hc.RenameMarketAppRequest) (*hc.RenameMarketAppResponse, error)
RenameMarketApp renames the marketplace application with the given ID.
func (MarketService) UnlockMarketApp ¶
func (s MarketService) UnlockMarketApp(ctx context.Context, id, app int) (*hc.UnlockMarketAppResponse, error)
UnlockMarketApp unlocks the marketplace application with the given ID.
func (MarketService) UpdateMarket ¶
func (s MarketService) UpdateMarket(ctx context.Context, id int, req hc.UpdateMarketRequest) (*hc.UpdateMarketResponse, error)
UpdateMarket updates the marketplace with the given ID.
func (MarketService) UpdateMarketApp ¶
func (s MarketService) UpdateMarketApp(ctx context.Context, id, app int, req hc.UpdateMarketAppRequest) (*hc.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 hc.ChangeSecurityGroupOwnershipRequest) (*hc.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 hc.ChangeSecurityGroupPermissionsRequest) (*hc.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 hc.CloneSecurityGroupRequest) (*hc.CloneSecurityGroupResponse, error)
CloneSecurityGroup clones the security group with the given ID.
func (SecurityGroupService) CommitSecurityGroup ¶
func (s SecurityGroupService) CommitSecurityGroup(ctx context.Context, id int, req hc.CommitSecurityGroupRequest) (*hc.CommitSecurityGroupResponse, error)
CommitSecurityGroup commits the security group with the given ID.
func (SecurityGroupService) CreateSecurityGroup ¶
func (s SecurityGroupService) CreateSecurityGroup(ctx context.Context, req hc.CreateSecurityGroupRequest) (*hc.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 hc.RenameSecurityGroupRequest) (*hc.RenameSecurityGroupResponse, error)
RenameSecurityGroup renames the security group with the given ID.
func (SecurityGroupService) SecurityGroup ¶
func (s SecurityGroupService) SecurityGroup(ctx context.Context, id int) (*hc.ListSecurityGroupResponse, error)
SecurityGroup returns information about a image.
func (SecurityGroupService) SecurityGroups ¶
func (s SecurityGroupService) SecurityGroups(ctx context.Context) (*hc.ListSecurityGroupsResponse, error)
SecurityGroups returns information about all images.
func (SecurityGroupService) UpdateSecurityGroup ¶
func (s SecurityGroupService) UpdateSecurityGroup(ctx context.Context, id int, req hc.UpdateSecurityGroupRequest) (*hc.UpdateSecurityGroupResponse, error)
UpdateSecurityGroup updates the security group with the given ID.
type SystemService ¶
SystemService owns the /system methods.
func (SystemService) SystemConfig ¶
func (s SystemService) SystemConfig(ctx context.Context) (*hc.ListSystemConfigResponse, error)
SystemConfig returns HC config.
func (SystemService) SystemVersion ¶
func (s SystemService) SystemVersion(ctx context.Context) (*hc.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 hc.ChangeTemplateOwnershipRequest) (*hc.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 hc.ChangeTemplatePermissionsRequest) (*hc.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 hc.CloneTemplateRequest) (*hc.CloneTemplateResponse, error)
CloneTemplate clones the template with the given ID.
func (TemplateService) CreateTemplate ¶
func (s TemplateService) CreateTemplate(ctx context.Context, req hc.CreateTemplateRequest) (*hc.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 hc.InstantiateTemplateRequest) (*hc.InstantiateTemplateResponse, error)
InstantiateTemplate instantiates the template with the given ID.
func (TemplateService) LockTemplate ¶
func (s TemplateService) LockTemplate(ctx context.Context, id int, req hc.LockTemplateRequest) (*hc.LockTemplateResponse, error)
LockTemplate locks the template with the given ID.
func (TemplateService) RenameTemplate ¶
func (s TemplateService) RenameTemplate(ctx context.Context, id int, req hc.RenameTemplateRequest) (*hc.RenameTemplateResponse, error)
RenameTemplate renames the template with the given ID.
func (TemplateService) Template ¶
func (s TemplateService) Template(ctx context.Context, id int) (*hc.ListTemplateResponse, error)
Template returns information about a template.
func (TemplateService) Templates ¶
func (s TemplateService) Templates(ctx context.Context) (*hc.ListTemplatesResponse, error)
Templates returns information about all templates.
func (TemplateService) UnlockTemplate ¶
func (s TemplateService) UnlockTemplate(ctx context.Context, id int) (*hc.UnlockTemplateResponse, error)
UnlockTemplate unlocks the template with the given ID.
func (TemplateService) UpdateTemplate ¶
func (s TemplateService) UpdateTemplate(ctx context.Context, id int, req hc.UpdateTemplateRequest) (*hc.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) (*hc.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 hc.ChangeUserAuthRequest) (*hc.ChangeUserAuthResponse, error)
ChangeUserAuth changes the user's authentication method.
func (UserService) ChangeUserGroup ¶
func (s UserService) ChangeUserGroup(ctx context.Context, id, group int) (*hc.ChangeUserGroupResponse, error)
ChangeUserGroup changes the user's group.
func (UserService) ChangeUserPassword ¶
func (s UserService) ChangeUserPassword(ctx context.Context, id int, req hc.ChangeUserPasswordRequest) (*hc.ChangeUserPasswordResponse, error)
ChangeUserPassword changes the user's password.
func (UserService) CreateUser ¶
func (s UserService) CreateUser(ctx context.Context, req hc.CreateUserRequest) (*hc.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 hc.EnableUserRequest) (*hc.EnableUserResponse, error)
EnableUser enables the user with the given ID.
func (UserService) SetUserQuota ¶
func (s UserService) SetUserQuota(ctx context.Context, id int, req hc.SetUserQuotaRequest) (*hc.SetUserQuotaResponse, error)
SetUserQuota sets the user's quota.
func (UserService) UpdateDefaultUserQuota ¶
func (s UserService) UpdateDefaultUserQuota(ctx context.Context, req hc.UpdateDefaultUserQuotaRequest) (*hc.UpdateDefaultUserQuotaResponse, error)
UpdateDefaultUserQuota updates the default user quota.
func (UserService) UpdateUser ¶
func (s UserService) UpdateUser(ctx context.Context, id int, req hc.UpdateUserRequest) (*hc.UpdateUserResponse, error)
UpdateUser updates the user with the given ID.
func (UserService) User ¶
func (s UserService) User(ctx context.Context, id int) (*hc.ListUserResponse, error)
User returns information about a user.
func (UserService) UserQuota ¶
func (s UserService) UserQuota(ctx context.Context) (*hc.ListUserQuotaResponse, error)
UserQuota returns the default user quota.
func (UserService) Users ¶
func (s UserService) Users(ctx context.Context) (*hc.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 hc.AddVNetAddressRangeRequest) (*hc.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 hc.ChangeVNetOwnershipRequest) (*hc.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 hc.ChangeVNetPermissionsRequest) (*hc.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 hc.ChangeVNetTemplateOwnershipRequest) (*hc.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 hc.ChangeVNetTemplatePermissionsRequest) (*hc.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 hc.CloneVNetTemplateRequest) (*hc.CloneVNetTemplateResponse, error)
CloneVNetTemplate clones the virtual network template with the given ID.
func (VNetService) CreateVNet ¶
func (s VNetService) CreateVNet(ctx context.Context, req hc.CreateVNetRequest) (*hc.CreateVNetResponse, error)
CreateVNet creates a new virtual network.
func (VNetService) CreateVNetTemplate ¶
func (s VNetService) CreateVNetTemplate(ctx context.Context, req hc.CreateVNetTemplateRequest) (*hc.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 hc.HoldVNetRequest) (*hc.HoldVNetResponse, error)
HoldVNet holds the virtual network with the given ID.
func (VNetService) InstantiateVNetTemplate ¶
func (s VNetService) InstantiateVNetTemplate(ctx context.Context, id int, req hc.InstantiateVNetTemplateRequest) (*hc.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 hc.LockVNetRequest) (*hc.LockVNetResponse, error)
LockVNet locks the virtual network with the given ID.
func (VNetService) LockVNetTemplate ¶
func (s VNetService) LockVNetTemplate(ctx context.Context, id int, req hc.LockVNetTemplateRequest) (*hc.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 hc.RecoverVNetRequest) (*hc.RecoverVNetResponse, error)
RecoverVNets recovers the virtual network with the given ID.
func (VNetService) ReleaseVNet ¶
func (s VNetService) ReleaseVNet(ctx context.Context, id int, req hc.ReleaseVNetRequest) (*hc.ReleaseVNetResponse, error)
ReleaseVNet releases the virtual network with the given ID.
func (VNetService) RenameVNet ¶
func (s VNetService) RenameVNet(ctx context.Context, id int, req hc.RenameVNetRequest) (*hc.RenameVNetResponse, error)
RenameVNet renames the virtual network with the given ID.
func (VNetService) RenameVNetTemplate ¶
func (s VNetService) RenameVNetTemplate(ctx context.Context, id int, req hc.RenameVNetTemplateRequest) (*hc.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 hc.ReserveVNetRequest) (*hc.ReserveVNetResponse, error)
ReserveVNet reserves the virtual network with the given ID.
func (VNetService) UnlockVNet ¶
func (s VNetService) UnlockVNet(ctx context.Context, id int) (*hc.UnlockVNetResponse, error)
UnlockVNet unlocks the virtual network with the given ID.
func (VNetService) UnlockVNetTemplate ¶
func (s VNetService) UnlockVNetTemplate(ctx context.Context, id int) (*hc.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 hc.UpdateVNetRequest) (*hc.UpdateVNetResponse, error)
UpdateVNet updates the virtual network with the given ID.
func (VNetService) UpdateVNetAddressRange ¶
func (s VNetService) UpdateVNetAddressRange(ctx context.Context, id int, req hc.UpdateVNetAddressRangeRequest) (*hc.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 hc.UpdateVNetTemplateRequest) (*hc.UpdateVNetTemplateResponse, error)
UpdateVNetTemplate updates the virtual network template with the given ID.
func (VNetService) VNet ¶
func (s VNetService) VNet(ctx context.Context, id int) (*hc.ListVNetResponse, error)
VNet returns information about a virtual network.
func (VNetService) VNetTemplate ¶
func (s VNetService) VNetTemplate(ctx context.Context, id int) (*hc.ListVNetTemplateResponse, error)
VNetTemplate returns information about a virtual networks.
func (VNetService) VNetTemplates ¶
func (s VNetService) VNetTemplates(ctx context.Context) (*hc.ListVNetTemplatesResponse, error)
VNetTemplates returns information about all virtual networkss.
func (VNetService) VNets ¶
func (s VNetService) VNets(ctx context.Context) (*hc.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 hc.ChangeVRouterOwnershipRequest) (*hc.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 hc.ChangeVRouterPermissionsRequest) (*hc.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 hc.CreateVRouterRequest) (*hc.CreateVRouterResponse, error)
CreateVRouter creates a new Virtual Router.
func (VRouterService) CreateVRouterNIC ¶
func (s VRouterService) CreateVRouterNIC(ctx context.Context, id int, req hc.CreateVRouterNICRequest) (*hc.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 hc.InstantiateVRouterRequest) (*hc.InstantiateVRouterResponse, error)
InstantiateVRouter instantiates a Virtual Router with the given ID.
func (VRouterService) LockVRouter ¶
func (s VRouterService) LockVRouter(ctx context.Context, id int, req hc.LockVRouterRequest) (*hc.LockVRouterResponse, error)
LockVRouter locks a Virtual Router with the given ID.
func (VRouterService) RenameVRouter ¶
func (s VRouterService) RenameVRouter(ctx context.Context, id int, req hc.RenameVRouterRequest) (*hc.RenameVRouterResponse, error)
RenameVRouter renames a Virtual Router with the given ID.
func (VRouterService) UnlockVRouter ¶
func (s VRouterService) UnlockVRouter(ctx context.Context, id int) (*hc.UnlockVRouterResponse, error)
UnlockVRouter unlocks a Virtual Router with the given ID.
func (VRouterService) UpdateVRouter ¶
func (s VRouterService) UpdateVRouter(ctx context.Context, id int, req hc.UpdateVRouterRequest) (*hc.UpdateVRouterResponse, error)
UpdateVRouter updates a Virtual Router with the given ID.
func (VRouterService) VRouter ¶
func (s VRouterService) VRouter(ctx context.Context, id int) (*hc.ListVRouterResponse, error)
VRouter returns information about a vrouter.
func (VRouterService) VRouters ¶
func (s VRouterService) VRouters(ctx context.Context) (*hc.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) (*hc.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) (*hc.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) (*hc.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) (*hc.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) (*hc.AddVDCNetworkResponse, error)
AddVirtualDataCenterNetwork adds a network to the VDC with the given ID.
func (VirtualDataCenterService) CreateVirtualDataCenter ¶
func (s VirtualDataCenterService) CreateVirtualDataCenter(ctx context.Context, req hc.CreateVDCRequest) (*hc.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 hc.RenameVDCRequest) (*hc.RenameVDCResponse, error)
RenameVirtualDataCenter renames the VDC with the given ID.
func (VirtualDataCenterService) UpdateVirtualDataCenter ¶
func (s VirtualDataCenterService) UpdateVirtualDataCenter(ctx context.Context, id int, req hc.UpdateVDCRequest) (*hc.UpdateVDCResponse, error)
UpdateVirtualDataCenter updates the VDC with the given ID.
func (VirtualDataCenterService) VirtualDataCenter ¶
func (s VirtualDataCenterService) VirtualDataCenter(ctx context.Context, id int) (*hc.ListVDCResponse, error)
VirtualDataCenter returns information about a vdc.
func (VirtualDataCenterService) VirtualDataCenters ¶
func (s VirtualDataCenterService) VirtualDataCenters(ctx context.Context) (*hc.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 hc.CreateZoneRequest) (*hc.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 hc.EnableZoneRequest) (*hc.EnableZoneResponse, error)
EnableZone enables the zone with the given ID.
func (ZoneService) RenameZone ¶
func (s ZoneService) RenameZone(ctx context.Context, id int, req hc.RenameZoneRequest) (*hc.RenameZoneResponse, error)
RenameZone renames the zone with the given ID.
func (ZoneService) UpdateZone ¶
func (s ZoneService) UpdateZone(ctx context.Context, id int, req hc.UpdateZoneRequest) (*hc.UpdateZoneResponse, error)
UpdateZone updates the zone with the given ID.
func (ZoneService) Zone ¶
func (s ZoneService) Zone(ctx context.Context, id int) (*hc.ListZoneResponse, error)
Zone returns information about a zone.
func (ZoneService) Zones ¶
func (s ZoneService) Zones(ctx context.Context) (*hc.ListZonesResponse, error)
Zones returns information about all zones.
func (ZoneService) ZonesRaftStatus ¶
func (s ZoneService) ZonesRaftStatus(ctx context.Context) (*hc.ListZonesRaftStatusResponse, error)
ZonesRaftStatus returns the raft status for all zones.