Documentation ¶
Index ¶
- Constants
- Variables
- type BackupRestoreStatus
- type DiskServiceClient
- func (c *DiskServiceClient) Close() error
- func (c *DiskServiceClient) DiskCreate(diskType, diskName, diskUUID, diskPath string, blockSize int64) (*api.DiskInfo, error)
- func (c *DiskServiceClient) DiskDelete(diskType, diskName, diskUUID string) error
- func (c *DiskServiceClient) DiskGet(diskType, diskName, diskPath string) (*api.DiskInfo, error)
- func (c *DiskServiceClient) DiskReplicaInstanceDelete(diskType, diskName, diskUUID, replciaInstanceName string) error
- func (c *DiskServiceClient) DiskReplicaInstanceList(diskType, diskName string) (map[string]*api.ReplicaStorageInstance, error)
- func (c *DiskServiceClient) VersionGet() (*meta.DiskServiceVersionOutput, error)
- type DiskServiceContext
- type EngineBackupInfo
- type EngineBackupVolumeInfo
- type EngineCreateRequest
- type InstanceCreateRequest
- type InstanceServiceClient
- func (c *InstanceServiceClient) InstanceCreate(req *InstanceCreateRequest) (*api.Instance, error)
- func (c *InstanceServiceClient) InstanceDelete(backendStoreDriver, name, instanceType, diskUUID string, cleanupRequired bool) (*api.Instance, error)
- func (c *InstanceServiceClient) InstanceGet(backendStoreDriver, name, instanceType string) (*api.Instance, error)
- func (c *InstanceServiceClient) InstanceList() (map[string]*api.Instance, error)
- func (c *InstanceServiceClient) InstanceLog(ctx context.Context, backendStoreDriver, name, instanceType string) (*api.LogStream, error)
- func (c *InstanceServiceClient) InstanceReplace(backendStoreDriver, name, instanceType, binary string, portCount int, ...) (*api.Instance, error)
- func (c *InstanceServiceClient) InstanceWatch(ctx context.Context) (*api.InstanceStream, error)
- func (c *InstanceServiceClient) VersionGet() (*meta.VersionOutput, error)
- type InstanceServiceContext
- type Metrics
- type ProcessManagerClient
- func (c *ProcessManagerClient) ProcessCreate(name, binary string, portCount int, args, portArgs []string) (*rpc.ProcessResponse, error)
- func (c *ProcessManagerClient) ProcessDelete(name string) (*rpc.ProcessResponse, error)
- func (c *ProcessManagerClient) ProcessGet(name string) (*rpc.ProcessResponse, error)
- func (c *ProcessManagerClient) ProcessList() (map[string]*rpc.ProcessResponse, error)
- func (c *ProcessManagerClient) ProcessLog(ctx context.Context, name string) (*api.LogStream, error)
- func (c *ProcessManagerClient) ProcessReplace(name, binary string, portCount int, args, portArgs []string, ...) (*rpc.ProcessResponse, error)
- func (c *ProcessManagerClient) ProcessWatch(ctx context.Context) (*api.ProcessStream, error)
- func (c *ProcessManagerClient) VersionGet() (*meta.VersionOutput, error)
- type ProcessManagerServiceContext
- type ProxyClient
- func (c *ProxyClient) BackupRestore(...) (err error)
- func (c *ProxyClient) BackupRestoreStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*BackupRestoreStatus, err error)
- func (c *ProxyClient) ClientVersionGet() (version emeta.VersionOutput)
- func (c *ProxyClient) Close() error
- func (c *ProxyClient) MetricsGet(engineName, volumeName, serviceAddress string) (metrics *Metrics, err error)
- func (c *ProxyClient) ReplicaAdd(...) (err error)
- func (c *ProxyClient) ReplicaList(backendStoreDriver, engineName, volumeName, serviceAddress string) (rInfoList []*etypes.ControllerReplicaInfo, err error)
- func (c *ProxyClient) ReplicaModeUpdate(backendStoreDriver, serviceAddress, replicaAddress string, mode string) (err error)
- func (c *ProxyClient) ReplicaRebuildingStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*ReplicaRebuildStatus, err error)
- func (c *ProxyClient) ReplicaRemove(...) (err error)
- func (c *ProxyClient) ReplicaVerifyRebuild(...) (err error)
- func (c *ProxyClient) ServerVersionGet(serviceAddress string) (version *emeta.VersionOutput, err error)
- func (c *ProxyClient) SnapshotBackup(...) (backupID, replicaAddress string, err error)
- func (c *ProxyClient) SnapshotBackupStatus(...) (status *SnapshotBackupStatus, err error)
- func (c *ProxyClient) SnapshotClone(...) (err error)
- func (c *ProxyClient) SnapshotCloneStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*SnapshotCloneStatus, err error)
- func (c *ProxyClient) SnapshotHash(backendStoreDriver, engineName, volumeName, serviceAddress string, ...) (err error)
- func (c *ProxyClient) SnapshotHashStatus(...) (status map[string]*SnapshotHashStatus, err error)
- func (c *ProxyClient) SnapshotList(backendStoreDriver, engineName, volumeName, serviceAddress string) (snapshotDiskInfo map[string]*etypes.DiskInfo, err error)
- func (c *ProxyClient) SnapshotPurge(backendStoreDriver, engineName, volumeName, serviceAddress string, ...) (err error)
- func (c *ProxyClient) SnapshotPurgeStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*SnapshotPurgeStatus, err error)
- func (c *ProxyClient) SnapshotRemove(backendStoreDriver, engineName, volumeName, serviceAddress string, ...) (err error)
- func (c *ProxyClient) SnapshotRevert(backendStoreDriver, engineName, volumeName, serviceAddress string, name string) (err error)
- func (c *ProxyClient) VolumeExpand(backendStoreDriver, engineName, volumeName, serviceAddress string, size int64) (err error)
- func (c *ProxyClient) VolumeFrontendShutdown(backendStoreDriver, engineName, volumeName, serviceAddress string) (err error)
- func (c *ProxyClient) VolumeFrontendStart(...) (err error)
- func (c *ProxyClient) VolumeGet(backendStoreDriver, engineName, volumeName, serviceAddress string) (info *etypes.VolumeInfo, err error)
- func (c *ProxyClient) VolumeSnapshot(...) (snapshotName string, err error)
- func (c *ProxyClient) VolumeUnmapMarkSnapChainRemovedSet(backendStoreDriver, engineName, volumeName, serviceAddress string, ...) (err error)
- type ReplicaCreateRequest
- type ReplicaError
- type ReplicaRebuildStatus
- type ServiceContext
- type SnapshotBackupStatus
- type SnapshotCloneStatus
- type SnapshotHashStatus
- type SnapshotPurgeStatus
- type TaskError
Constants ¶
View Source
const ( GRPCServiceTimeout = eclient.GRPCServiceCommonTimeout * 2 GRPCServiceLongTimeout = eclient.GRPCServiceLongTimeout + GRPCServiceTimeout )
Variables ¶
View Source
var (
ErrParameterFmt = "missing required %v parameter"
)
Functions ¶
This section is empty.
Types ¶
type BackupRestoreStatus ¶
type DiskServiceClient ¶ added in v1.5.0
type DiskServiceClient struct { DiskServiceContext // contains filtered or unexported fields }
func NewDiskServiceClient ¶ added in v1.5.0
func NewDiskServiceClient(serviceURL string, tlsConfig *tls.Config) (*DiskServiceClient, error)
NewDiskServiceClient creates a new DiskServiceClient.
func NewDiskServiceClientWithTLS ¶ added in v1.5.0
func NewDiskServiceClientWithTLS(serviceURL, caFile, certFile, keyFile, peerName string) (*DiskServiceClient, error)
NewDiskServiceClientWithTLS creates a new DiskServiceClient with TLS
func (*DiskServiceClient) Close ¶ added in v1.5.0
func (c *DiskServiceClient) Close() error
func (*DiskServiceClient) DiskCreate ¶ added in v1.5.0
func (c *DiskServiceClient) DiskCreate(diskType, diskName, diskUUID, diskPath string, blockSize int64) (*api.DiskInfo, error)
DiskCreate creates a disk with the given name and path. diskUUID is optional, if not provided, it indicates the disk is newly added.
func (*DiskServiceClient) DiskDelete ¶ added in v1.5.0
func (c *DiskServiceClient) DiskDelete(diskType, diskName, diskUUID string) error
DiskDelete deletes the disk with the given name and uuid.
func (*DiskServiceClient) DiskGet ¶ added in v1.5.0
func (c *DiskServiceClient) DiskGet(diskType, diskName, diskPath string) (*api.DiskInfo, error)
DiskGet returns the disk info with the given name and path.
func (*DiskServiceClient) DiskReplicaInstanceDelete ¶ added in v1.5.0
func (c *DiskServiceClient) DiskReplicaInstanceDelete(diskType, diskName, diskUUID, replciaInstanceName string) error
DiskReplicaInstanceDelete deletes the replica instance with the given name on the disk.
func (*DiskServiceClient) DiskReplicaInstanceList ¶ added in v1.5.0
func (c *DiskServiceClient) DiskReplicaInstanceList(diskType, diskName string) (map[string]*api.ReplicaStorageInstance, error)
func (*DiskServiceClient) VersionGet ¶ added in v1.5.0
func (c *DiskServiceClient) VersionGet() (*meta.DiskServiceVersionOutput, error)
VersionGet returns the disk service version.
type DiskServiceContext ¶ added in v1.5.0
type DiskServiceContext struct {
// contains filtered or unexported fields
}
type EngineBackupInfo ¶
type EngineBackupVolumeInfo ¶
type EngineCreateRequest ¶ added in v1.5.0
type InstanceCreateRequest ¶ added in v1.5.0
type InstanceServiceClient ¶ added in v1.5.0
type InstanceServiceClient struct { InstanceServiceContext // contains filtered or unexported fields }
func NewInstanceServiceClient ¶ added in v1.5.0
func NewInstanceServiceClient(serviceURL string, tlsConfig *tls.Config) (*InstanceServiceClient, error)
func NewInstanceServiceClientWithTLS ¶ added in v1.5.0
func NewInstanceServiceClientWithTLS(serviceURL, caFile, certFile, keyFile, peerName string) (*InstanceServiceClient, error)
func (*InstanceServiceClient) InstanceCreate ¶ added in v1.5.0
func (c *InstanceServiceClient) InstanceCreate(req *InstanceCreateRequest) (*api.Instance, error)
func (*InstanceServiceClient) InstanceDelete ¶ added in v1.5.0
func (*InstanceServiceClient) InstanceGet ¶ added in v1.5.0
func (c *InstanceServiceClient) InstanceGet(backendStoreDriver, name, instanceType string) (*api.Instance, error)
func (*InstanceServiceClient) InstanceList ¶ added in v1.5.0
func (c *InstanceServiceClient) InstanceList() (map[string]*api.Instance, error)
func (*InstanceServiceClient) InstanceLog ¶ added in v1.5.0
func (*InstanceServiceClient) InstanceReplace ¶ added in v1.5.0
func (*InstanceServiceClient) InstanceWatch ¶ added in v1.5.0
func (c *InstanceServiceClient) InstanceWatch(ctx context.Context) (*api.InstanceStream, error)
func (*InstanceServiceClient) VersionGet ¶ added in v1.5.0
func (c *InstanceServiceClient) VersionGet() (*meta.VersionOutput, error)
type InstanceServiceContext ¶ added in v1.5.0
type InstanceServiceContext struct {
// contains filtered or unexported fields
}
func (InstanceServiceContext) Close ¶ added in v1.5.0
func (c InstanceServiceContext) Close() error
type ProcessManagerClient ¶
type ProcessManagerClient struct { ProcessManagerServiceContext // contains filtered or unexported fields }
func NewProcessManagerClient ¶
func NewProcessManagerClient(serviceURL string, tlsConfig *tls.Config) (*ProcessManagerClient, error)
func NewProcessManagerClientWithTLS ¶
func NewProcessManagerClientWithTLS(serviceURL, caFile, certFile, keyFile, peerName string) (*ProcessManagerClient, error)
func (*ProcessManagerClient) ProcessCreate ¶
func (c *ProcessManagerClient) ProcessCreate(name, binary string, portCount int, args, portArgs []string) (*rpc.ProcessResponse, error)
func (*ProcessManagerClient) ProcessDelete ¶
func (c *ProcessManagerClient) ProcessDelete(name string) (*rpc.ProcessResponse, error)
func (*ProcessManagerClient) ProcessGet ¶
func (c *ProcessManagerClient) ProcessGet(name string) (*rpc.ProcessResponse, error)
func (*ProcessManagerClient) ProcessList ¶
func (c *ProcessManagerClient) ProcessList() (map[string]*rpc.ProcessResponse, error)
func (*ProcessManagerClient) ProcessLog ¶
func (*ProcessManagerClient) ProcessReplace ¶
func (c *ProcessManagerClient) ProcessReplace(name, binary string, portCount int, args, portArgs []string, terminateSignal string) (*rpc.ProcessResponse, error)
func (*ProcessManagerClient) ProcessWatch ¶
func (c *ProcessManagerClient) ProcessWatch(ctx context.Context) (*api.ProcessStream, error)
func (*ProcessManagerClient) VersionGet ¶
func (c *ProcessManagerClient) VersionGet() (*meta.VersionOutput, error)
type ProcessManagerServiceContext ¶
type ProcessManagerServiceContext struct {
// contains filtered or unexported fields
}
func (ProcessManagerServiceContext) Close ¶
func (c ProcessManagerServiceContext) Close() error
type ProxyClient ¶
type ProxyClient struct { ServiceURL string ServiceContext Version int }
func NewProxyClient ¶
func NewProxyClient(ctx context.Context, ctxCancel context.CancelFunc, address string, port int) (*ProxyClient, error)
func (*ProxyClient) BackupRestore ¶
func (c *ProxyClient) BackupRestore(backendStoreDriver, engineName, volumeName, serviceAddress, url, target, backupVolumeName string, envs []string, concurrentLimit int) (err error)
func (*ProxyClient) BackupRestoreStatus ¶
func (c *ProxyClient) BackupRestoreStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*BackupRestoreStatus, err error)
func (*ProxyClient) ClientVersionGet ¶
func (c *ProxyClient) ClientVersionGet() (version emeta.VersionOutput)
func (*ProxyClient) Close ¶
func (c *ProxyClient) Close() error
func (*ProxyClient) MetricsGet ¶
func (c *ProxyClient) MetricsGet(engineName, volumeName, serviceAddress string) (metrics *Metrics, err error)
func (*ProxyClient) ReplicaAdd ¶
func (*ProxyClient) ReplicaList ¶
func (c *ProxyClient) ReplicaList(backendStoreDriver, engineName, volumeName, serviceAddress string) (rInfoList []*etypes.ControllerReplicaInfo, err error)
func (*ProxyClient) ReplicaModeUpdate ¶
func (c *ProxyClient) ReplicaModeUpdate(backendStoreDriver, serviceAddress, replicaAddress string, mode string) (err error)
func (*ProxyClient) ReplicaRebuildingStatus ¶
func (c *ProxyClient) ReplicaRebuildingStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*ReplicaRebuildStatus, err error)
func (*ProxyClient) ReplicaRemove ¶
func (c *ProxyClient) ReplicaRemove(backendStoreDriver, serviceAddress, engineName, replicaAddress, replicaName string) (err error)
func (*ProxyClient) ReplicaVerifyRebuild ¶
func (c *ProxyClient) ReplicaVerifyRebuild(backendStoreDriver, engineName, volumeName, serviceAddress, replicaAddress, replicaName string) (err error)
func (*ProxyClient) ServerVersionGet ¶
func (c *ProxyClient) ServerVersionGet(serviceAddress string) (version *emeta.VersionOutput, err error)
func (*ProxyClient) SnapshotBackup ¶
func (c *ProxyClient) SnapshotBackup(backendStoreDriver, engineName, volumeName, serviceAddress, backupName, snapshotName, backupTarget, backingImageName, backingImageChecksum, compressionMethod string, concurrentLimit int, storageClassName string, labels map[string]string, envs []string) (backupID, replicaAddress string, err error)
func (*ProxyClient) SnapshotBackupStatus ¶
func (c *ProxyClient) SnapshotBackupStatus(backendStoreDriver, engineName, volumeName, serviceAddress, backupName, replicaAddress, replicaName string) (status *SnapshotBackupStatus, err error)
func (*ProxyClient) SnapshotClone ¶
func (c *ProxyClient) SnapshotClone(backendStoreDriver, engineName, volumeName, serviceAddress, snapshotName, fromEngineAddress, fromVolumeName, fromEngineName string, fileSyncHTTPClientTimeout int) (err error)
func (*ProxyClient) SnapshotCloneStatus ¶
func (c *ProxyClient) SnapshotCloneStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*SnapshotCloneStatus, err error)
func (*ProxyClient) SnapshotHash ¶
func (c *ProxyClient) SnapshotHash(backendStoreDriver, engineName, volumeName, serviceAddress string, snapshotName string, rehash bool) (err error)
func (*ProxyClient) SnapshotHashStatus ¶
func (c *ProxyClient) SnapshotHashStatus(backendStoreDriver, engineName, volumeName, serviceAddress, snapshotName string) (status map[string]*SnapshotHashStatus, err error)
func (*ProxyClient) SnapshotList ¶
func (*ProxyClient) SnapshotPurge ¶
func (c *ProxyClient) SnapshotPurge(backendStoreDriver, engineName, volumeName, serviceAddress string, skipIfInProgress bool) (err error)
func (*ProxyClient) SnapshotPurgeStatus ¶
func (c *ProxyClient) SnapshotPurgeStatus(backendStoreDriver, engineName, volumeName, serviceAddress string) (status map[string]*SnapshotPurgeStatus, err error)
func (*ProxyClient) SnapshotRemove ¶
func (c *ProxyClient) SnapshotRemove(backendStoreDriver, engineName, volumeName, serviceAddress string, names []string) (err error)
func (*ProxyClient) SnapshotRevert ¶
func (c *ProxyClient) SnapshotRevert(backendStoreDriver, engineName, volumeName, serviceAddress string, name string) (err error)
func (*ProxyClient) VolumeExpand ¶
func (c *ProxyClient) VolumeExpand(backendStoreDriver, engineName, volumeName, serviceAddress string, size int64) (err error)
func (*ProxyClient) VolumeFrontendShutdown ¶
func (c *ProxyClient) VolumeFrontendShutdown(backendStoreDriver, engineName, volumeName, serviceAddress string) (err error)
func (*ProxyClient) VolumeFrontendStart ¶
func (c *ProxyClient) VolumeFrontendStart(backendStoreDriver, engineName, volumeName, serviceAddress, frontendName string) (err error)
func (*ProxyClient) VolumeGet ¶
func (c *ProxyClient) VolumeGet(backendStoreDriver, engineName, volumeName, serviceAddress string) (info *etypes.VolumeInfo, err error)
func (*ProxyClient) VolumeSnapshot ¶
func (*ProxyClient) VolumeUnmapMarkSnapChainRemovedSet ¶
func (c *ProxyClient) VolumeUnmapMarkSnapChainRemovedSet(backendStoreDriver, engineName, volumeName, serviceAddress string, enabled bool) (err error)
type ReplicaCreateRequest ¶ added in v1.5.0
type ReplicaError ¶
func (ReplicaError) Error ¶
func (e ReplicaError) Error() string
type ReplicaRebuildStatus ¶
type ServiceContext ¶
type ServiceContext struct {
// contains filtered or unexported fields
}
func (ServiceContext) GetConnectionState ¶
func (s ServiceContext) GetConnectionState() connectivity.State
type SnapshotBackupStatus ¶
type SnapshotCloneStatus ¶
type SnapshotHashStatus ¶
type SnapshotPurgeStatus ¶
Click to show internal directories.
Click to hide internal directories.