Documentation ¶
Index ¶
- Constants
- Variables
- type BackupRestoreStatus
- type EngineBackupInfo
- type EngineBackupVolumeInfo
- type ProcessManagerClient
- func (c *ProcessManagerClient) ProcessCreate(name, binary string, portCount int, args, portArgs []string) (*api.Process, error)
- func (c *ProcessManagerClient) ProcessDelete(name string) (*api.Process, error)
- func (c *ProcessManagerClient) ProcessGet(name string) (*api.Process, error)
- func (c *ProcessManagerClient) ProcessList() (map[string]*api.Process, 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, ...) (*api.Process, 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(serviceAddress, url, target, volumeName string, envs []string) (err error)
- func (c *ProxyClient) BackupRestoreStatus(serviceAddress string) (status map[string]*BackupRestoreStatus, err error)
- func (c *ProxyClient) ClientVersionGet() (version emeta.VersionOutput)
- func (c *ProxyClient) Close() error
- func (c *ProxyClient) ReplicaAdd(serviceAddress, replicaAddress string, restore bool, size, currentSize int64, ...) (err error)
- func (c *ProxyClient) ReplicaList(serviceAddress string) (rInfoList []*etypes.ControllerReplicaInfo, err error)
- func (c *ProxyClient) ReplicaModeUpdate(serviceAddress, replicaAddress string, mode string) (err error)
- func (c *ProxyClient) ReplicaRebuildingStatus(serviceAddress string) (status map[string]*ReplicaRebuildStatus, err error)
- func (c *ProxyClient) ReplicaRemove(serviceAddress, replicaAddress string) (err error)
- func (c *ProxyClient) ReplicaVerifyRebuild(serviceAddress, replicaAddress string) (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(serviceAddress, backupName, replicaAddress string) (status *SnapshotBackupStatus, err error)
- func (c *ProxyClient) SnapshotClone(serviceAddress, name, fromController string) (err error)
- func (c *ProxyClient) SnapshotCloneStatus(serviceAddress string) (status map[string]*SnapshotCloneStatus, err error)
- func (c *ProxyClient) SnapshotHash(serviceAddress string, snapshotName string, rehash bool) (err error)
- func (c *ProxyClient) SnapshotHashStatus(serviceAddress, snapshotName string) (status map[string]*SnapshotHashStatus, err error)
- func (c *ProxyClient) SnapshotList(serviceAddress string) (snapshotDiskInfo map[string]*etypes.DiskInfo, err error)
- func (c *ProxyClient) SnapshotPurge(serviceAddress string, skipIfInProgress bool) (err error)
- func (c *ProxyClient) SnapshotPurgeStatus(serviceAddress string) (status map[string]*SnapshotPurgeStatus, err error)
- func (c *ProxyClient) SnapshotRemove(serviceAddress string, names []string) (err error)
- func (c *ProxyClient) SnapshotRevert(serviceAddress string, name string) (err error)
- func (c *ProxyClient) VolumeExpand(serviceAddress string, size int64) (err error)
- func (c *ProxyClient) VolumeFrontendShutdown(serviceAddress string) (err error)
- func (c *ProxyClient) VolumeFrontendStart(serviceAddress, frontendName string) (err error)
- func (c *ProxyClient) VolumeGet(serviceAddress string) (info *etypes.VolumeInfo, err error)
- func (c *ProxyClient) VolumeSnapshot(serviceAddress, volumeSnapshotName string, labels map[string]string) (snapshotName string, err error)
- func (c *ProxyClient) VolumeUnmapMarkSnapChainRemovedSet(serviceAddress string, enabled bool) (err error)
- 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 EngineBackupInfo ¶
type EngineBackupVolumeInfo ¶
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 (*ProcessManagerClient) ProcessDelete ¶
func (c *ProcessManagerClient) ProcessDelete(name string) (*api.Process, error)
func (*ProcessManagerClient) ProcessGet ¶
func (c *ProcessManagerClient) ProcessGet(name string) (*api.Process, error)
func (*ProcessManagerClient) ProcessList ¶
func (c *ProcessManagerClient) ProcessList() (map[string]*api.Process, error)
func (*ProcessManagerClient) ProcessLog ¶
func (*ProcessManagerClient) ProcessReplace ¶
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(serviceAddress, url, target, volumeName string, envs []string) (err error)
func (*ProxyClient) BackupRestoreStatus ¶
func (c *ProxyClient) BackupRestoreStatus(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) ReplicaAdd ¶
func (*ProxyClient) ReplicaList ¶
func (c *ProxyClient) ReplicaList(serviceAddress string) (rInfoList []*etypes.ControllerReplicaInfo, err error)
func (*ProxyClient) ReplicaModeUpdate ¶
func (c *ProxyClient) ReplicaModeUpdate(serviceAddress, replicaAddress string, mode string) (err error)
func (*ProxyClient) ReplicaRebuildingStatus ¶
func (c *ProxyClient) ReplicaRebuildingStatus(serviceAddress string) (status map[string]*ReplicaRebuildStatus, err error)
func (*ProxyClient) ReplicaRemove ¶
func (c *ProxyClient) ReplicaRemove(serviceAddress, replicaAddress string) (err error)
func (*ProxyClient) ReplicaVerifyRebuild ¶
func (c *ProxyClient) ReplicaVerifyRebuild(serviceAddress, replicaAddress string) (err error)
func (*ProxyClient) ServerVersionGet ¶
func (c *ProxyClient) ServerVersionGet(serviceAddress string) (version *emeta.VersionOutput, err error)
func (*ProxyClient) SnapshotBackup ¶
func (*ProxyClient) SnapshotBackupStatus ¶
func (c *ProxyClient) SnapshotBackupStatus(serviceAddress, backupName, replicaAddress string) (status *SnapshotBackupStatus, err error)
func (*ProxyClient) SnapshotClone ¶
func (c *ProxyClient) SnapshotClone(serviceAddress, name, fromController string) (err error)
func (*ProxyClient) SnapshotCloneStatus ¶
func (c *ProxyClient) SnapshotCloneStatus(serviceAddress string) (status map[string]*SnapshotCloneStatus, err error)
func (*ProxyClient) SnapshotHash ¶
func (c *ProxyClient) SnapshotHash(serviceAddress string, snapshotName string, rehash bool) (err error)
func (*ProxyClient) SnapshotHashStatus ¶
func (c *ProxyClient) SnapshotHashStatus(serviceAddress, snapshotName string) (status map[string]*SnapshotHashStatus, err error)
func (*ProxyClient) SnapshotList ¶
func (*ProxyClient) SnapshotPurge ¶
func (c *ProxyClient) SnapshotPurge(serviceAddress string, skipIfInProgress bool) (err error)
func (*ProxyClient) SnapshotPurgeStatus ¶
func (c *ProxyClient) SnapshotPurgeStatus(serviceAddress string) (status map[string]*SnapshotPurgeStatus, err error)
func (*ProxyClient) SnapshotRemove ¶
func (c *ProxyClient) SnapshotRemove(serviceAddress string, names []string) (err error)
func (*ProxyClient) SnapshotRevert ¶
func (c *ProxyClient) SnapshotRevert(serviceAddress string, name string) (err error)
func (*ProxyClient) VolumeExpand ¶
func (c *ProxyClient) VolumeExpand(serviceAddress string, size int64) (err error)
func (*ProxyClient) VolumeFrontendShutdown ¶
func (c *ProxyClient) VolumeFrontendShutdown(serviceAddress string) (err error)
func (*ProxyClient) VolumeFrontendStart ¶
func (c *ProxyClient) VolumeFrontendStart(serviceAddress, frontendName string) (err error)
func (*ProxyClient) VolumeGet ¶
func (c *ProxyClient) VolumeGet(serviceAddress string) (info *etypes.VolumeInfo, err error)
func (*ProxyClient) VolumeSnapshot ¶
func (*ProxyClient) VolumeUnmapMarkSnapChainRemovedSet ¶
func (c *ProxyClient) VolumeUnmapMarkSnapChainRemovedSet(serviceAddress string, enabled bool) (err error)
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.