Documentation ¶
Index ¶
- Constants
- func GetControllerReplica(r *types.ControllerReplicaInfo) *contollerpb.ControllerReplica
- func GetControllerReplicaInfo(cr *contollerpb.ControllerReplica) *types.ControllerReplicaInfo
- func GetVolumeInfo(v *contollerpb.Volume) *types.VolumeInfo
- type ControllerClient
- func (c *ControllerClient) BackupReplicaMappingCreate(backupID string, replicaAddress string) error
- func (c *ControllerClient) BackupReplicaMappingDelete(backupID string) error
- func (c *ControllerClient) BackupReplicaMappingGet() (map[string]string, error)
- func (c *ControllerClient) Check() error
- func (c *ControllerClient) JournalList(limit int) error
- func (c *ControllerClient) ReplicaCreate(address string) (*types.ControllerReplicaInfo, error)
- func (c *ControllerClient) ReplicaDelete(address string) error
- func (c *ControllerClient) ReplicaGet(address string) (*types.ControllerReplicaInfo, error)
- func (c *ControllerClient) ReplicaList() ([]*types.ControllerReplicaInfo, error)
- func (c *ControllerClient) ReplicaPrepareRebuild(address string) (*types.PrepareRebuildOutput, error)
- func (c *ControllerClient) ReplicaUpdate(replica *types.ControllerReplicaInfo) (*types.ControllerReplicaInfo, error)
- func (c *ControllerClient) ReplicaVerifyRebuild(address string) error
- func (c *ControllerClient) VersionDetailGet() (*meta.VersionOutput, error)
- func (c *ControllerClient) VolumeFrontendShutdown() error
- func (c *ControllerClient) VolumeFrontendStart(frontend string) error
- func (c *ControllerClient) VolumeGet() (*types.VolumeInfo, error)
- func (c *ControllerClient) VolumeRevert(snapshot string) error
- func (c *ControllerClient) VolumeSnapshot(name string, labels map[string]string) (string, error)
- func (c *ControllerClient) VolumeStart(replicas ...string) error
Constants ¶
View Source
const (
GRPCServiceTimeout = 1 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func GetControllerReplica ¶ added in v0.6.0
func GetControllerReplica(r *types.ControllerReplicaInfo) *contollerpb.ControllerReplica
func GetControllerReplicaInfo ¶ added in v0.6.0
func GetControllerReplicaInfo(cr *contollerpb.ControllerReplica) *types.ControllerReplicaInfo
func GetVolumeInfo ¶ added in v0.6.0
func GetVolumeInfo(v *contollerpb.Volume) *types.VolumeInfo
Types ¶
type ControllerClient ¶
type ControllerClient struct {
// contains filtered or unexported fields
}
func NewControllerClient ¶
func NewControllerClient(address string) *ControllerClient
func (*ControllerClient) BackupReplicaMappingCreate ¶ added in v0.6.0
func (c *ControllerClient) BackupReplicaMappingCreate(backupID string, replicaAddress string) error
func (*ControllerClient) BackupReplicaMappingDelete ¶ added in v0.6.0
func (c *ControllerClient) BackupReplicaMappingDelete(backupID string) error
func (*ControllerClient) BackupReplicaMappingGet ¶ added in v0.6.0
func (c *ControllerClient) BackupReplicaMappingGet() (map[string]string, error)
func (*ControllerClient) Check ¶ added in v0.6.0
func (c *ControllerClient) Check() error
func (*ControllerClient) JournalList ¶ added in v0.6.0
func (c *ControllerClient) JournalList(limit int) error
func (*ControllerClient) ReplicaCreate ¶ added in v0.6.0
func (c *ControllerClient) ReplicaCreate(address string) (*types.ControllerReplicaInfo, error)
func (*ControllerClient) ReplicaDelete ¶ added in v0.6.0
func (c *ControllerClient) ReplicaDelete(address string) error
func (*ControllerClient) ReplicaGet ¶ added in v0.6.0
func (c *ControllerClient) ReplicaGet(address string) (*types.ControllerReplicaInfo, error)
func (*ControllerClient) ReplicaList ¶ added in v0.6.0
func (c *ControllerClient) ReplicaList() ([]*types.ControllerReplicaInfo, error)
func (*ControllerClient) ReplicaPrepareRebuild ¶ added in v0.6.0
func (c *ControllerClient) ReplicaPrepareRebuild(address string) (*types.PrepareRebuildOutput, error)
func (*ControllerClient) ReplicaUpdate ¶ added in v0.6.0
func (c *ControllerClient) ReplicaUpdate(replica *types.ControllerReplicaInfo) (*types.ControllerReplicaInfo, error)
func (*ControllerClient) ReplicaVerifyRebuild ¶ added in v0.6.0
func (c *ControllerClient) ReplicaVerifyRebuild(address string) error
func (*ControllerClient) VersionDetailGet ¶ added in v0.6.0
func (c *ControllerClient) VersionDetailGet() (*meta.VersionOutput, error)
func (*ControllerClient) VolumeFrontendShutdown ¶ added in v0.6.0
func (c *ControllerClient) VolumeFrontendShutdown() error
func (*ControllerClient) VolumeFrontendStart ¶ added in v0.6.0
func (c *ControllerClient) VolumeFrontendStart(frontend string) error
func (*ControllerClient) VolumeGet ¶ added in v0.6.0
func (c *ControllerClient) VolumeGet() (*types.VolumeInfo, error)
func (*ControllerClient) VolumeRevert ¶ added in v0.6.0
func (c *ControllerClient) VolumeRevert(snapshot string) error
func (*ControllerClient) VolumeSnapshot ¶ added in v0.6.0
func (*ControllerClient) VolumeStart ¶ added in v0.6.0
func (c *ControllerClient) VolumeStart(replicas ...string) error
Click to show internal directories.
Click to hide internal directories.