Documentation
¶
Index ¶
- Constants
- func NewStorageServiceHandler(svc StorageServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type StorageServiceClient
- type StorageServiceHandler
- type UnimplementedStorageServiceHandler
- func (UnimplementedStorageServiceHandler) AddImageStore(context.Context, *connect.Request[v1.AddImageStoreRequest]) (*connect.Response[v1.AddImageStoreResponse], error)
- func (UnimplementedStorageServiceHandler) AddImageStoreS3CMD(context.Context, *connect.Request[v1.AddImageStoreS3CMDRequest]) (*connect.Response[v1.AddImageStoreS3CMDResponse], error)
- func (UnimplementedStorageServiceHandler) AddObjectStoragePool(context.Context, *connect.Request[v1.AddObjectStoragePoolRequest]) (*connect.Response[v1.AddObjectStoragePoolResponse], error)
- func (UnimplementedStorageServiceHandler) CancelPrimaryStorageMaintenance(context.Context, *connect.Request[v1.CancelPrimaryStorageMaintenanceRequest]) (*connect.Response[v1.CancelPrimaryStorageMaintenanceResponse], error)
- func (UnimplementedStorageServiceHandler) ChangeStoragePoolScope(context.Context, *connect.Request[v1.ChangeStoragePoolScopeRequest]) (*connect.Response[v1.ChangeStoragePoolScopeResponse], error)
- func (UnimplementedStorageServiceHandler) CreateSecondaryStagingStore(context.Context, *connect.Request[v1.CreateSecondaryStagingStoreRequest]) (*connect.Response[v1.CreateSecondaryStagingStoreResponse], error)
- func (UnimplementedStorageServiceHandler) CreateStoragePool(context.Context, *connect.Request[v1.CreateStoragePoolRequest]) (*connect.Response[v1.CreateStoragePoolResponse], error)
- func (UnimplementedStorageServiceHandler) DeleteImageStore(context.Context, *connect.Request[v1.DeleteImageStoreRequest]) (*connect.Response[v1.DeleteImageStoreResponse], error)
- func (UnimplementedStorageServiceHandler) DeleteObjectStoragePool(context.Context, *connect.Request[v1.DeleteObjectStoragePoolRequest]) (*connect.Response[v1.DeleteObjectStoragePoolResponse], error)
- func (UnimplementedStorageServiceHandler) DeletePool(context.Context, *connect.Request[v1.DeletePoolRequest]) (*connect.Response[v1.DeletePoolResponse], error)
- func (UnimplementedStorageServiceHandler) DeleteSecondaryStagingStore(context.Context, *connect.Request[v1.DeleteSecondaryStagingStoreRequest]) (*connect.Response[v1.DeleteSecondaryStagingStoreResponse], error)
- func (UnimplementedStorageServiceHandler) DownloadImageStoreObject(context.Context, *connect.Request[v1.DownloadImageStoreObjectRequest]) (*connect.Response[v1.DownloadImageStoreObjectResponse], error)
- func (UnimplementedStorageServiceHandler) FindStoragePoolsForMigration(context.Context, *connect.Request[v1.FindStoragePoolsForMigrationRequest]) (*connect.Response[v1.FindStoragePoolsForMigrationResponse], error)
- func (UnimplementedStorageServiceHandler) ListImageStoreObjects(context.Context, *connect.Request[v1.ListImageStoreObjectsRequest]) (*connect.Response[v1.ListImageStoreObjectsResponse], error)
- func (UnimplementedStorageServiceHandler) ListImageStores(context.Context, *connect.Request[v1.ListImageStoresRequest]) (*connect.Response[v1.ListImageStoresResponse], error)
- func (UnimplementedStorageServiceHandler) ListObjectStoragePools(context.Context, *connect.Request[v1.ListObjectStoragePoolsRequest]) (*connect.Response[v1.ListObjectStoragePoolsResponse], error)
- func (UnimplementedStorageServiceHandler) ListSecondaryStagingStores(context.Context, *connect.Request[v1.ListSecondaryStagingStoresRequest]) (*connect.Response[v1.ListSecondaryStagingStoresResponse], error)
- func (UnimplementedStorageServiceHandler) ListStoragePoolObjects(context.Context, *connect.Request[v1.ListStoragePoolObjectsRequest]) (*connect.Response[v1.ListStoragePoolObjectsResponse], error)
- func (UnimplementedStorageServiceHandler) ListStoragePools(context.Context, *connect.Request[v1.ListStoragePoolsRequest]) (*connect.Response[v1.ListStoragePoolsResponse], error)
- func (UnimplementedStorageServiceHandler) ListStorageProviders(context.Context, *connect.Request[v1.ListStorageProvidersRequest]) (*connect.Response[v1.ListStorageProvidersResponse], error)
- func (UnimplementedStorageServiceHandler) ListStorageTags(context.Context, *connect.Request[v1.ListStorageTagsRequest]) (*connect.Response[v1.ListStorageTagsResponse], error)
- func (UnimplementedStorageServiceHandler) MigrateResourcesToAnotherSecondaryStorage(context.Context, ...) (*connect.Response[v1.MigrateResourcesToAnotherSecondaryStorageResponse], error)
- func (UnimplementedStorageServiceHandler) MigrateSecondaryStorageData(context.Context, *connect.Request[v1.MigrateSecondaryStorageDataRequest]) (*connect.Response[v1.MigrateSecondaryStorageDataResponse], error)
- func (UnimplementedStorageServiceHandler) PreparePrimaryStorageForMaintenance(context.Context, ...) (*connect.Response[v1.PreparePrimaryStorageForMaintenanceResponse], error)
- func (UnimplementedStorageServiceHandler) SyncStoragePool(context.Context, *connect.Request[v1.SyncStoragePoolRequest]) (*connect.Response[v1.SyncStoragePoolResponse], error)
- func (UnimplementedStorageServiceHandler) UpdateCloudToUseObjectStore(context.Context, *connect.Request[v1.UpdateCloudToUseObjectStoreRequest]) (*connect.Response[v1.UpdateCloudToUseObjectStoreResponse], error)
- func (UnimplementedStorageServiceHandler) UpdateImageStore(context.Context, *connect.Request[v1.UpdateImageStoreRequest]) (*connect.Response[v1.UpdateImageStoreResponse], error)
- func (UnimplementedStorageServiceHandler) UpdateObjectStoragePool(context.Context, *connect.Request[v1.UpdateObjectStoragePoolRequest]) (*connect.Response[v1.UpdateObjectStoragePoolResponse], error)
- func (UnimplementedStorageServiceHandler) UpdateStorageCapabilities(context.Context, *connect.Request[v1.UpdateStorageCapabilitiesRequest]) (*connect.Response[v1.UpdateStorageCapabilitiesResponse], error)
- func (UnimplementedStorageServiceHandler) UpdateStoragePool(context.Context, *connect.Request[v1.UpdateStoragePoolRequest]) (*connect.Response[v1.UpdateStoragePoolResponse], error)
Constants ¶
const ( // StorageServiceAddImageStoreProcedure is the fully-qualified name of the StorageService's // AddImageStore RPC. StorageServiceAddImageStoreProcedure = "/cloudstack.management.storage.v1.StorageService/AddImageStore" // StorageServiceAddImageStoreS3CMDProcedure is the fully-qualified name of the StorageService's // AddImageStoreS3CMD RPC. StorageServiceAddImageStoreS3CMDProcedure = "/cloudstack.management.storage.v1.StorageService/AddImageStoreS3CMD" // StorageServiceAddObjectStoragePoolProcedure is the fully-qualified name of the StorageService's // AddObjectStoragePool RPC. StorageServiceAddObjectStoragePoolProcedure = "/cloudstack.management.storage.v1.StorageService/AddObjectStoragePool" // StorageServiceCancelPrimaryStorageMaintenanceProcedure is the fully-qualified name of the // StorageService's CancelPrimaryStorageMaintenance RPC. StorageServiceCancelPrimaryStorageMaintenanceProcedure = "/cloudstack.management.storage.v1.StorageService/CancelPrimaryStorageMaintenance" // StorageServiceChangeStoragePoolScopeProcedure is the fully-qualified name of the StorageService's // ChangeStoragePoolScope RPC. StorageServiceChangeStoragePoolScopeProcedure = "/cloudstack.management.storage.v1.StorageService/ChangeStoragePoolScope" // StorageServiceCreateSecondaryStagingStoreProcedure is the fully-qualified name of the // StorageService's CreateSecondaryStagingStore RPC. StorageServiceCreateSecondaryStagingStoreProcedure = "/cloudstack.management.storage.v1.StorageService/CreateSecondaryStagingStore" // StorageServiceCreateStoragePoolProcedure is the fully-qualified name of the StorageService's // CreateStoragePool RPC. StorageServiceCreateStoragePoolProcedure = "/cloudstack.management.storage.v1.StorageService/CreateStoragePool" // StorageServiceDeleteImageStoreProcedure is the fully-qualified name of the StorageService's // DeleteImageStore RPC. StorageServiceDeleteImageStoreProcedure = "/cloudstack.management.storage.v1.StorageService/DeleteImageStore" // StorageServiceDeleteObjectStoragePoolProcedure is the fully-qualified name of the // StorageService's DeleteObjectStoragePool RPC. StorageServiceDeleteObjectStoragePoolProcedure = "/cloudstack.management.storage.v1.StorageService/DeleteObjectStoragePool" // StorageServiceDeletePoolProcedure is the fully-qualified name of the StorageService's DeletePool // RPC. StorageServiceDeletePoolProcedure = "/cloudstack.management.storage.v1.StorageService/DeletePool" // StorageServiceDeleteSecondaryStagingStoreProcedure is the fully-qualified name of the // StorageService's DeleteSecondaryStagingStore RPC. StorageServiceDeleteSecondaryStagingStoreProcedure = "/cloudstack.management.storage.v1.StorageService/DeleteSecondaryStagingStore" // StorageServiceDownloadImageStoreObjectProcedure is the fully-qualified name of the // StorageService's DownloadImageStoreObject RPC. StorageServiceDownloadImageStoreObjectProcedure = "/cloudstack.management.storage.v1.StorageService/DownloadImageStoreObject" // StorageServiceFindStoragePoolsForMigrationProcedure is the fully-qualified name of the // StorageService's FindStoragePoolsForMigration RPC. StorageServiceFindStoragePoolsForMigrationProcedure = "/cloudstack.management.storage.v1.StorageService/FindStoragePoolsForMigration" // StorageServiceListImageStoreObjectsProcedure is the fully-qualified name of the StorageService's // ListImageStoreObjects RPC. StorageServiceListImageStoreObjectsProcedure = "/cloudstack.management.storage.v1.StorageService/ListImageStoreObjects" // StorageServiceListImageStoresProcedure is the fully-qualified name of the StorageService's // ListImageStores RPC. StorageServiceListImageStoresProcedure = "/cloudstack.management.storage.v1.StorageService/ListImageStores" // StorageServiceListObjectStoragePoolsProcedure is the fully-qualified name of the StorageService's // ListObjectStoragePools RPC. StorageServiceListObjectStoragePoolsProcedure = "/cloudstack.management.storage.v1.StorageService/ListObjectStoragePools" // StorageServiceListSecondaryStagingStoresProcedure is the fully-qualified name of the // StorageService's ListSecondaryStagingStores RPC. StorageServiceListSecondaryStagingStoresProcedure = "/cloudstack.management.storage.v1.StorageService/ListSecondaryStagingStores" // StorageServiceListStoragePoolObjectsProcedure is the fully-qualified name of the StorageService's // ListStoragePoolObjects RPC. StorageServiceListStoragePoolObjectsProcedure = "/cloudstack.management.storage.v1.StorageService/ListStoragePoolObjects" // StorageServiceListStoragePoolsProcedure is the fully-qualified name of the StorageService's // ListStoragePools RPC. StorageServiceListStoragePoolsProcedure = "/cloudstack.management.storage.v1.StorageService/ListStoragePools" // StorageServiceListStorageProvidersProcedure is the fully-qualified name of the StorageService's // ListStorageProviders RPC. StorageServiceListStorageProvidersProcedure = "/cloudstack.management.storage.v1.StorageService/ListStorageProviders" // StorageServiceListStorageTagsProcedure is the fully-qualified name of the StorageService's // ListStorageTags RPC. StorageServiceListStorageTagsProcedure = "/cloudstack.management.storage.v1.StorageService/ListStorageTags" // StorageServiceMigrateResourcesToAnotherSecondaryStorageProcedure is the fully-qualified name of // the StorageService's MigrateResourcesToAnotherSecondaryStorage RPC. StorageServiceMigrateResourcesToAnotherSecondaryStorageProcedure = "/cloudstack.management.storage.v1.StorageService/MigrateResourcesToAnotherSecondaryStorage" // StorageServiceMigrateSecondaryStorageDataProcedure is the fully-qualified name of the // StorageService's MigrateSecondaryStorageData RPC. StorageServiceMigrateSecondaryStorageDataProcedure = "/cloudstack.management.storage.v1.StorageService/MigrateSecondaryStorageData" // StorageServicePreparePrimaryStorageForMaintenanceProcedure is the fully-qualified name of the // StorageService's PreparePrimaryStorageForMaintenance RPC. StorageServicePreparePrimaryStorageForMaintenanceProcedure = "/cloudstack.management.storage.v1.StorageService/PreparePrimaryStorageForMaintenance" // StorageServiceSyncStoragePoolProcedure is the fully-qualified name of the StorageService's // SyncStoragePool RPC. StorageServiceSyncStoragePoolProcedure = "/cloudstack.management.storage.v1.StorageService/SyncStoragePool" // StorageServiceUpdateCloudToUseObjectStoreProcedure is the fully-qualified name of the // StorageService's UpdateCloudToUseObjectStore RPC. StorageServiceUpdateCloudToUseObjectStoreProcedure = "/cloudstack.management.storage.v1.StorageService/UpdateCloudToUseObjectStore" // StorageServiceUpdateImageStoreProcedure is the fully-qualified name of the StorageService's // UpdateImageStore RPC. StorageServiceUpdateImageStoreProcedure = "/cloudstack.management.storage.v1.StorageService/UpdateImageStore" // StorageServiceUpdateObjectStoragePoolProcedure is the fully-qualified name of the // StorageService's UpdateObjectStoragePool RPC. StorageServiceUpdateObjectStoragePoolProcedure = "/cloudstack.management.storage.v1.StorageService/UpdateObjectStoragePool" // StorageServiceUpdateStorageCapabilitiesProcedure is the fully-qualified name of the // StorageService's UpdateStorageCapabilities RPC. StorageServiceUpdateStorageCapabilitiesProcedure = "/cloudstack.management.storage.v1.StorageService/UpdateStorageCapabilities" // StorageServiceUpdateStoragePoolProcedure is the fully-qualified name of the StorageService's // UpdateStoragePool RPC. StorageServiceUpdateStoragePoolProcedure = "/cloudstack.management.storage.v1.StorageService/UpdateStoragePool" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// StorageServiceName is the fully-qualified name of the StorageService service.
StorageServiceName = "cloudstack.management.storage.v1.StorageService"
)
Variables ¶
This section is empty.
Functions ¶
func NewStorageServiceHandler ¶
func NewStorageServiceHandler(svc StorageServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewStorageServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type StorageServiceClient ¶
type StorageServiceClient interface {
// AddImageStore Adds backup image store.
AddImageStore(context.Context, *connect.Request[v1.AddImageStoreRequest]) (*connect.Response[v1.AddImageStoreResponse], error)
// AddImageStoreS3CMD Adds S3 Image Store
AddImageStoreS3CMD(context.Context, *connect.Request[v1.AddImageStoreS3CMDRequest]) (*connect.Response[v1.AddImageStoreS3CMDResponse], error)
// AddObjectStoragePool Adds a object storage pool
AddObjectStoragePool(context.Context, *connect.Request[v1.AddObjectStoragePoolRequest]) (*connect.Response[v1.AddObjectStoragePoolResponse], error)
// CancelPrimaryStorageMaintenance Cancels maintenance for primary storage
CancelPrimaryStorageMaintenance(context.Context, *connect.Request[v1.CancelPrimaryStorageMaintenanceRequest]) (*connect.Response[v1.CancelPrimaryStorageMaintenanceResponse], error)
// ChangeStoragePoolScope Changes the scope of a storage pool when the pool is in Disabled state.This feature is officially tested and supported for Hypervisors: KVM and VMware, Protocols: NFS and Ceph, and Storage Provider: DefaultPrimary. There might be extra steps involved to make this work for other hypervisors and storage options.
ChangeStoragePoolScope(context.Context, *connect.Request[v1.ChangeStoragePoolScopeRequest]) (*connect.Response[v1.ChangeStoragePoolScopeResponse], error)
// CreateSecondaryStagingStore create secondary staging store.
CreateSecondaryStagingStore(context.Context, *connect.Request[v1.CreateSecondaryStagingStoreRequest]) (*connect.Response[v1.CreateSecondaryStagingStoreResponse], error)
// CreateStoragePool Creates a storage pool.
CreateStoragePool(context.Context, *connect.Request[v1.CreateStoragePoolRequest]) (*connect.Response[v1.CreateStoragePoolResponse], error)
// DeleteImageStore Deletes an image store or Secondary Storage.
DeleteImageStore(context.Context, *connect.Request[v1.DeleteImageStoreRequest]) (*connect.Response[v1.DeleteImageStoreResponse], error)
// DeleteObjectStoragePool Deletes an Object Storage Pool
DeleteObjectStoragePool(context.Context, *connect.Request[v1.DeleteObjectStoragePoolRequest]) (*connect.Response[v1.DeleteObjectStoragePoolResponse], error)
// DeletePool Deletes a storage pool.
DeletePool(context.Context, *connect.Request[v1.DeletePoolRequest]) (*connect.Response[v1.DeletePoolResponse], error)
// DeleteSecondaryStagingStore Deletes a secondary staging store .
DeleteSecondaryStagingStore(context.Context, *connect.Request[v1.DeleteSecondaryStagingStoreRequest]) (*connect.Response[v1.DeleteSecondaryStagingStoreResponse], error)
// DownloadImageStoreObject Download object at a specified path on an image store.
DownloadImageStoreObject(context.Context, *connect.Request[v1.DownloadImageStoreObjectRequest]) (*connect.Response[v1.DownloadImageStoreObjectResponse], error)
// FindStoragePoolsForMigration Lists storage pools available for migration of a volume.
FindStoragePoolsForMigration(context.Context, *connect.Request[v1.FindStoragePoolsForMigrationRequest]) (*connect.Response[v1.FindStoragePoolsForMigrationResponse], error)
// ListImageStoreObjects Lists objects at specified path on an image store.
ListImageStoreObjects(context.Context, *connect.Request[v1.ListImageStoreObjectsRequest]) (*connect.Response[v1.ListImageStoreObjectsResponse], error)
// ListImageStores Lists image stores.
ListImageStores(context.Context, *connect.Request[v1.ListImageStoresRequest]) (*connect.Response[v1.ListImageStoresResponse], error)
// ListObjectStoragePools Lists object storage pools.
ListObjectStoragePools(context.Context, *connect.Request[v1.ListObjectStoragePoolsRequest]) (*connect.Response[v1.ListObjectStoragePoolsResponse], error)
// ListSecondaryStagingStores Lists secondary staging stores.
ListSecondaryStagingStores(context.Context, *connect.Request[v1.ListSecondaryStagingStoresRequest]) (*connect.Response[v1.ListSecondaryStagingStoresResponse], error)
// ListStoragePoolObjects Lists objects at specified path on a storage pool.
ListStoragePoolObjects(context.Context, *connect.Request[v1.ListStoragePoolObjectsRequest]) (*connect.Response[v1.ListStoragePoolObjectsResponse], error)
// ListStoragePools Lists storage pools.
ListStoragePools(context.Context, *connect.Request[v1.ListStoragePoolsRequest]) (*connect.Response[v1.ListStoragePoolsResponse], error)
// ListStorageProviders Lists storage providers.
ListStorageProviders(context.Context, *connect.Request[v1.ListStorageProvidersRequest]) (*connect.Response[v1.ListStorageProvidersResponse], error)
// ListStorageTags Lists storage tags
ListStorageTags(context.Context, *connect.Request[v1.ListStorageTagsRequest]) (*connect.Response[v1.ListStorageTagsResponse], error)
// MigrateResourcesToAnotherSecondaryStorage migrates resources from one secondary storage to destination image store
MigrateResourcesToAnotherSecondaryStorage(context.Context, *connect.Request[v1.MigrateResourcesToAnotherSecondaryStorageRequest]) (*connect.Response[v1.MigrateResourcesToAnotherSecondaryStorageResponse], error)
// MigrateSecondaryStorageData migrates data objects from one secondary storage to destination image store(s)
MigrateSecondaryStorageData(context.Context, *connect.Request[v1.MigrateSecondaryStorageDataRequest]) (*connect.Response[v1.MigrateSecondaryStorageDataResponse], error)
// PreparePrimaryStorageForMaintenance Puts storage pool into maintenance state
PreparePrimaryStorageForMaintenance(context.Context, *connect.Request[v1.PreparePrimaryStorageForMaintenanceRequest]) (*connect.Response[v1.PreparePrimaryStorageForMaintenanceResponse], error)
// SyncStoragePool Sync storage pool with management server (currently supported for Datastore Cluster in VMware and syncs the datastores in it)
SyncStoragePool(context.Context, *connect.Request[v1.SyncStoragePoolRequest]) (*connect.Response[v1.SyncStoragePoolResponse], error)
// UpdateCloudToUseObjectStore Migrate current NFS secondary storages to use object store.
UpdateCloudToUseObjectStore(context.Context, *connect.Request[v1.UpdateCloudToUseObjectStoreRequest]) (*connect.Response[v1.UpdateCloudToUseObjectStoreResponse], error)
// UpdateImageStore Updates image store read-only status
UpdateImageStore(context.Context, *connect.Request[v1.UpdateImageStoreRequest]) (*connect.Response[v1.UpdateImageStoreResponse], error)
// UpdateObjectStoragePool Updates object storage pool
UpdateObjectStoragePool(context.Context, *connect.Request[v1.UpdateObjectStoragePoolRequest]) (*connect.Response[v1.UpdateObjectStoragePoolResponse], error)
// UpdateStorageCapabilities Syncs capabilities of storage pools
UpdateStorageCapabilities(context.Context, *connect.Request[v1.UpdateStorageCapabilitiesRequest]) (*connect.Response[v1.UpdateStorageCapabilitiesResponse], error)
// UpdateStoragePool Updates a storage pool.
UpdateStoragePool(context.Context, *connect.Request[v1.UpdateStoragePoolRequest]) (*connect.Response[v1.UpdateStoragePoolResponse], error)
}
StorageServiceClient is a client for the cloudstack.management.storage.v1.StorageService service.
func NewStorageServiceClient ¶
func NewStorageServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) StorageServiceClient
NewStorageServiceClient constructs a client for the cloudstack.management.storage.v1.StorageService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type StorageServiceHandler ¶
type StorageServiceHandler interface {
// AddImageStore Adds backup image store.
AddImageStore(context.Context, *connect.Request[v1.AddImageStoreRequest]) (*connect.Response[v1.AddImageStoreResponse], error)
// AddImageStoreS3CMD Adds S3 Image Store
AddImageStoreS3CMD(context.Context, *connect.Request[v1.AddImageStoreS3CMDRequest]) (*connect.Response[v1.AddImageStoreS3CMDResponse], error)
// AddObjectStoragePool Adds a object storage pool
AddObjectStoragePool(context.Context, *connect.Request[v1.AddObjectStoragePoolRequest]) (*connect.Response[v1.AddObjectStoragePoolResponse], error)
// CancelPrimaryStorageMaintenance Cancels maintenance for primary storage
CancelPrimaryStorageMaintenance(context.Context, *connect.Request[v1.CancelPrimaryStorageMaintenanceRequest]) (*connect.Response[v1.CancelPrimaryStorageMaintenanceResponse], error)
// ChangeStoragePoolScope Changes the scope of a storage pool when the pool is in Disabled state.This feature is officially tested and supported for Hypervisors: KVM and VMware, Protocols: NFS and Ceph, and Storage Provider: DefaultPrimary. There might be extra steps involved to make this work for other hypervisors and storage options.
ChangeStoragePoolScope(context.Context, *connect.Request[v1.ChangeStoragePoolScopeRequest]) (*connect.Response[v1.ChangeStoragePoolScopeResponse], error)
// CreateSecondaryStagingStore create secondary staging store.
CreateSecondaryStagingStore(context.Context, *connect.Request[v1.CreateSecondaryStagingStoreRequest]) (*connect.Response[v1.CreateSecondaryStagingStoreResponse], error)
// CreateStoragePool Creates a storage pool.
CreateStoragePool(context.Context, *connect.Request[v1.CreateStoragePoolRequest]) (*connect.Response[v1.CreateStoragePoolResponse], error)
// DeleteImageStore Deletes an image store or Secondary Storage.
DeleteImageStore(context.Context, *connect.Request[v1.DeleteImageStoreRequest]) (*connect.Response[v1.DeleteImageStoreResponse], error)
// DeleteObjectStoragePool Deletes an Object Storage Pool
DeleteObjectStoragePool(context.Context, *connect.Request[v1.DeleteObjectStoragePoolRequest]) (*connect.Response[v1.DeleteObjectStoragePoolResponse], error)
// DeletePool Deletes a storage pool.
DeletePool(context.Context, *connect.Request[v1.DeletePoolRequest]) (*connect.Response[v1.DeletePoolResponse], error)
// DeleteSecondaryStagingStore Deletes a secondary staging store .
DeleteSecondaryStagingStore(context.Context, *connect.Request[v1.DeleteSecondaryStagingStoreRequest]) (*connect.Response[v1.DeleteSecondaryStagingStoreResponse], error)
// DownloadImageStoreObject Download object at a specified path on an image store.
DownloadImageStoreObject(context.Context, *connect.Request[v1.DownloadImageStoreObjectRequest]) (*connect.Response[v1.DownloadImageStoreObjectResponse], error)
// FindStoragePoolsForMigration Lists storage pools available for migration of a volume.
FindStoragePoolsForMigration(context.Context, *connect.Request[v1.FindStoragePoolsForMigrationRequest]) (*connect.Response[v1.FindStoragePoolsForMigrationResponse], error)
// ListImageStoreObjects Lists objects at specified path on an image store.
ListImageStoreObjects(context.Context, *connect.Request[v1.ListImageStoreObjectsRequest]) (*connect.Response[v1.ListImageStoreObjectsResponse], error)
// ListImageStores Lists image stores.
ListImageStores(context.Context, *connect.Request[v1.ListImageStoresRequest]) (*connect.Response[v1.ListImageStoresResponse], error)
// ListObjectStoragePools Lists object storage pools.
ListObjectStoragePools(context.Context, *connect.Request[v1.ListObjectStoragePoolsRequest]) (*connect.Response[v1.ListObjectStoragePoolsResponse], error)
// ListSecondaryStagingStores Lists secondary staging stores.
ListSecondaryStagingStores(context.Context, *connect.Request[v1.ListSecondaryStagingStoresRequest]) (*connect.Response[v1.ListSecondaryStagingStoresResponse], error)
// ListStoragePoolObjects Lists objects at specified path on a storage pool.
ListStoragePoolObjects(context.Context, *connect.Request[v1.ListStoragePoolObjectsRequest]) (*connect.Response[v1.ListStoragePoolObjectsResponse], error)
// ListStoragePools Lists storage pools.
ListStoragePools(context.Context, *connect.Request[v1.ListStoragePoolsRequest]) (*connect.Response[v1.ListStoragePoolsResponse], error)
// ListStorageProviders Lists storage providers.
ListStorageProviders(context.Context, *connect.Request[v1.ListStorageProvidersRequest]) (*connect.Response[v1.ListStorageProvidersResponse], error)
// ListStorageTags Lists storage tags
ListStorageTags(context.Context, *connect.Request[v1.ListStorageTagsRequest]) (*connect.Response[v1.ListStorageTagsResponse], error)
// MigrateResourcesToAnotherSecondaryStorage migrates resources from one secondary storage to destination image store
MigrateResourcesToAnotherSecondaryStorage(context.Context, *connect.Request[v1.MigrateResourcesToAnotherSecondaryStorageRequest]) (*connect.Response[v1.MigrateResourcesToAnotherSecondaryStorageResponse], error)
// MigrateSecondaryStorageData migrates data objects from one secondary storage to destination image store(s)
MigrateSecondaryStorageData(context.Context, *connect.Request[v1.MigrateSecondaryStorageDataRequest]) (*connect.Response[v1.MigrateSecondaryStorageDataResponse], error)
// PreparePrimaryStorageForMaintenance Puts storage pool into maintenance state
PreparePrimaryStorageForMaintenance(context.Context, *connect.Request[v1.PreparePrimaryStorageForMaintenanceRequest]) (*connect.Response[v1.PreparePrimaryStorageForMaintenanceResponse], error)
// SyncStoragePool Sync storage pool with management server (currently supported for Datastore Cluster in VMware and syncs the datastores in it)
SyncStoragePool(context.Context, *connect.Request[v1.SyncStoragePoolRequest]) (*connect.Response[v1.SyncStoragePoolResponse], error)
// UpdateCloudToUseObjectStore Migrate current NFS secondary storages to use object store.
UpdateCloudToUseObjectStore(context.Context, *connect.Request[v1.UpdateCloudToUseObjectStoreRequest]) (*connect.Response[v1.UpdateCloudToUseObjectStoreResponse], error)
// UpdateImageStore Updates image store read-only status
UpdateImageStore(context.Context, *connect.Request[v1.UpdateImageStoreRequest]) (*connect.Response[v1.UpdateImageStoreResponse], error)
// UpdateObjectStoragePool Updates object storage pool
UpdateObjectStoragePool(context.Context, *connect.Request[v1.UpdateObjectStoragePoolRequest]) (*connect.Response[v1.UpdateObjectStoragePoolResponse], error)
// UpdateStorageCapabilities Syncs capabilities of storage pools
UpdateStorageCapabilities(context.Context, *connect.Request[v1.UpdateStorageCapabilitiesRequest]) (*connect.Response[v1.UpdateStorageCapabilitiesResponse], error)
// UpdateStoragePool Updates a storage pool.
UpdateStoragePool(context.Context, *connect.Request[v1.UpdateStoragePoolRequest]) (*connect.Response[v1.UpdateStoragePoolResponse], error)
}
StorageServiceHandler is an implementation of the cloudstack.management.storage.v1.StorageService service.
type UnimplementedStorageServiceHandler ¶
type UnimplementedStorageServiceHandler struct{}
UnimplementedStorageServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedStorageServiceHandler) AddImageStore ¶
func (UnimplementedStorageServiceHandler) AddImageStore(context.Context, *connect.Request[v1.AddImageStoreRequest]) (*connect.Response[v1.AddImageStoreResponse], error)
func (UnimplementedStorageServiceHandler) AddImageStoreS3CMD ¶
func (UnimplementedStorageServiceHandler) AddImageStoreS3CMD(context.Context, *connect.Request[v1.AddImageStoreS3CMDRequest]) (*connect.Response[v1.AddImageStoreS3CMDResponse], error)
func (UnimplementedStorageServiceHandler) AddObjectStoragePool ¶
func (UnimplementedStorageServiceHandler) AddObjectStoragePool(context.Context, *connect.Request[v1.AddObjectStoragePoolRequest]) (*connect.Response[v1.AddObjectStoragePoolResponse], error)
func (UnimplementedStorageServiceHandler) CancelPrimaryStorageMaintenance ¶
func (UnimplementedStorageServiceHandler) CancelPrimaryStorageMaintenance(context.Context, *connect.Request[v1.CancelPrimaryStorageMaintenanceRequest]) (*connect.Response[v1.CancelPrimaryStorageMaintenanceResponse], error)
func (UnimplementedStorageServiceHandler) ChangeStoragePoolScope ¶
func (UnimplementedStorageServiceHandler) ChangeStoragePoolScope(context.Context, *connect.Request[v1.ChangeStoragePoolScopeRequest]) (*connect.Response[v1.ChangeStoragePoolScopeResponse], error)
func (UnimplementedStorageServiceHandler) CreateSecondaryStagingStore ¶
func (UnimplementedStorageServiceHandler) CreateSecondaryStagingStore(context.Context, *connect.Request[v1.CreateSecondaryStagingStoreRequest]) (*connect.Response[v1.CreateSecondaryStagingStoreResponse], error)
func (UnimplementedStorageServiceHandler) CreateStoragePool ¶
func (UnimplementedStorageServiceHandler) CreateStoragePool(context.Context, *connect.Request[v1.CreateStoragePoolRequest]) (*connect.Response[v1.CreateStoragePoolResponse], error)
func (UnimplementedStorageServiceHandler) DeleteImageStore ¶
func (UnimplementedStorageServiceHandler) DeleteImageStore(context.Context, *connect.Request[v1.DeleteImageStoreRequest]) (*connect.Response[v1.DeleteImageStoreResponse], error)
func (UnimplementedStorageServiceHandler) DeleteObjectStoragePool ¶
func (UnimplementedStorageServiceHandler) DeleteObjectStoragePool(context.Context, *connect.Request[v1.DeleteObjectStoragePoolRequest]) (*connect.Response[v1.DeleteObjectStoragePoolResponse], error)
func (UnimplementedStorageServiceHandler) DeletePool ¶
func (UnimplementedStorageServiceHandler) DeletePool(context.Context, *connect.Request[v1.DeletePoolRequest]) (*connect.Response[v1.DeletePoolResponse], error)
func (UnimplementedStorageServiceHandler) DeleteSecondaryStagingStore ¶
func (UnimplementedStorageServiceHandler) DeleteSecondaryStagingStore(context.Context, *connect.Request[v1.DeleteSecondaryStagingStoreRequest]) (*connect.Response[v1.DeleteSecondaryStagingStoreResponse], error)
func (UnimplementedStorageServiceHandler) DownloadImageStoreObject ¶
func (UnimplementedStorageServiceHandler) DownloadImageStoreObject(context.Context, *connect.Request[v1.DownloadImageStoreObjectRequest]) (*connect.Response[v1.DownloadImageStoreObjectResponse], error)
func (UnimplementedStorageServiceHandler) FindStoragePoolsForMigration ¶
func (UnimplementedStorageServiceHandler) FindStoragePoolsForMigration(context.Context, *connect.Request[v1.FindStoragePoolsForMigrationRequest]) (*connect.Response[v1.FindStoragePoolsForMigrationResponse], error)
func (UnimplementedStorageServiceHandler) ListImageStoreObjects ¶
func (UnimplementedStorageServiceHandler) ListImageStoreObjects(context.Context, *connect.Request[v1.ListImageStoreObjectsRequest]) (*connect.Response[v1.ListImageStoreObjectsResponse], error)
func (UnimplementedStorageServiceHandler) ListImageStores ¶
func (UnimplementedStorageServiceHandler) ListImageStores(context.Context, *connect.Request[v1.ListImageStoresRequest]) (*connect.Response[v1.ListImageStoresResponse], error)
func (UnimplementedStorageServiceHandler) ListObjectStoragePools ¶
func (UnimplementedStorageServiceHandler) ListObjectStoragePools(context.Context, *connect.Request[v1.ListObjectStoragePoolsRequest]) (*connect.Response[v1.ListObjectStoragePoolsResponse], error)
func (UnimplementedStorageServiceHandler) ListSecondaryStagingStores ¶
func (UnimplementedStorageServiceHandler) ListSecondaryStagingStores(context.Context, *connect.Request[v1.ListSecondaryStagingStoresRequest]) (*connect.Response[v1.ListSecondaryStagingStoresResponse], error)
func (UnimplementedStorageServiceHandler) ListStoragePoolObjects ¶
func (UnimplementedStorageServiceHandler) ListStoragePoolObjects(context.Context, *connect.Request[v1.ListStoragePoolObjectsRequest]) (*connect.Response[v1.ListStoragePoolObjectsResponse], error)
func (UnimplementedStorageServiceHandler) ListStoragePools ¶
func (UnimplementedStorageServiceHandler) ListStoragePools(context.Context, *connect.Request[v1.ListStoragePoolsRequest]) (*connect.Response[v1.ListStoragePoolsResponse], error)
func (UnimplementedStorageServiceHandler) ListStorageProviders ¶
func (UnimplementedStorageServiceHandler) ListStorageProviders(context.Context, *connect.Request[v1.ListStorageProvidersRequest]) (*connect.Response[v1.ListStorageProvidersResponse], error)
func (UnimplementedStorageServiceHandler) ListStorageTags ¶
func (UnimplementedStorageServiceHandler) ListStorageTags(context.Context, *connect.Request[v1.ListStorageTagsRequest]) (*connect.Response[v1.ListStorageTagsResponse], error)
func (UnimplementedStorageServiceHandler) MigrateResourcesToAnotherSecondaryStorage ¶
func (UnimplementedStorageServiceHandler) MigrateResourcesToAnotherSecondaryStorage(context.Context, *connect.Request[v1.MigrateResourcesToAnotherSecondaryStorageRequest]) (*connect.Response[v1.MigrateResourcesToAnotherSecondaryStorageResponse], error)
func (UnimplementedStorageServiceHandler) MigrateSecondaryStorageData ¶
func (UnimplementedStorageServiceHandler) MigrateSecondaryStorageData(context.Context, *connect.Request[v1.MigrateSecondaryStorageDataRequest]) (*connect.Response[v1.MigrateSecondaryStorageDataResponse], error)
func (UnimplementedStorageServiceHandler) PreparePrimaryStorageForMaintenance ¶
func (UnimplementedStorageServiceHandler) PreparePrimaryStorageForMaintenance(context.Context, *connect.Request[v1.PreparePrimaryStorageForMaintenanceRequest]) (*connect.Response[v1.PreparePrimaryStorageForMaintenanceResponse], error)
func (UnimplementedStorageServiceHandler) SyncStoragePool ¶
func (UnimplementedStorageServiceHandler) SyncStoragePool(context.Context, *connect.Request[v1.SyncStoragePoolRequest]) (*connect.Response[v1.SyncStoragePoolResponse], error)
func (UnimplementedStorageServiceHandler) UpdateCloudToUseObjectStore ¶
func (UnimplementedStorageServiceHandler) UpdateCloudToUseObjectStore(context.Context, *connect.Request[v1.UpdateCloudToUseObjectStoreRequest]) (*connect.Response[v1.UpdateCloudToUseObjectStoreResponse], error)
func (UnimplementedStorageServiceHandler) UpdateImageStore ¶
func (UnimplementedStorageServiceHandler) UpdateImageStore(context.Context, *connect.Request[v1.UpdateImageStoreRequest]) (*connect.Response[v1.UpdateImageStoreResponse], error)
func (UnimplementedStorageServiceHandler) UpdateObjectStoragePool ¶
func (UnimplementedStorageServiceHandler) UpdateObjectStoragePool(context.Context, *connect.Request[v1.UpdateObjectStoragePoolRequest]) (*connect.Response[v1.UpdateObjectStoragePoolResponse], error)
func (UnimplementedStorageServiceHandler) UpdateStorageCapabilities ¶
func (UnimplementedStorageServiceHandler) UpdateStorageCapabilities(context.Context, *connect.Request[v1.UpdateStorageCapabilitiesRequest]) (*connect.Response[v1.UpdateStorageCapabilitiesResponse], error)
func (UnimplementedStorageServiceHandler) UpdateStoragePool ¶
func (UnimplementedStorageServiceHandler) UpdateStoragePool(context.Context, *connect.Request[v1.UpdateStoragePoolRequest]) (*connect.Response[v1.UpdateStoragePoolResponse], error)