client

package
v1.0.2-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	GRPCServiceTimeout = 1 * time.Minute
)

Variables

This section is empty.

Functions

func GetSyncFileInfo

func GetSyncFileInfo(info *ptypes.SyncFileInfo) types.SyncFileInfo

func GetSyncFileInfoList

func GetSyncFileInfoList(list []*ptypes.SyncFileInfo) []types.SyncFileInfo

func GetVolumeInfo

func GetVolumeInfo(v *ptypes.Volume) *types.VolumeInfo

Types

type ControllerClient

type ControllerClient struct {
	// contains filtered or unexported fields
}

func NewControllerClient

func NewControllerClient(address string) *ControllerClient

func (*ControllerClient) BackupReplicaMappingCreate

func (c *ControllerClient) BackupReplicaMappingCreate(backupID string, replicaAddress string) error

func (*ControllerClient) BackupReplicaMappingDelete

func (c *ControllerClient) BackupReplicaMappingDelete(backupID string) error

func (*ControllerClient) BackupReplicaMappingGet

func (c *ControllerClient) BackupReplicaMappingGet() (map[string]string, error)

func (*ControllerClient) Check

func (c *ControllerClient) Check() error

func (*ControllerClient) JournalList

func (c *ControllerClient) JournalList(limit int) error

func (*ControllerClient) ReplicaCreate

func (c *ControllerClient) ReplicaCreate(address string) (*types.ControllerReplicaInfo, error)

func (*ControllerClient) ReplicaDelete

func (c *ControllerClient) ReplicaDelete(address string) error

func (*ControllerClient) ReplicaGet

func (c *ControllerClient) ReplicaGet(address string) (*types.ControllerReplicaInfo, error)

func (*ControllerClient) ReplicaList

func (c *ControllerClient) ReplicaList() ([]*types.ControllerReplicaInfo, error)

func (*ControllerClient) ReplicaPrepareRebuild

func (c *ControllerClient) ReplicaPrepareRebuild(address string) ([]types.SyncFileInfo, error)

func (*ControllerClient) ReplicaUpdate

func (*ControllerClient) ReplicaVerifyRebuild

func (c *ControllerClient) ReplicaVerifyRebuild(address string) error

func (*ControllerClient) VersionDetailGet

func (c *ControllerClient) VersionDetailGet() (*meta.VersionOutput, error)

func (*ControllerClient) VolumeExpand

func (c *ControllerClient) VolumeExpand(size int64) error

func (*ControllerClient) VolumeFrontendShutdown

func (c *ControllerClient) VolumeFrontendShutdown() error

func (*ControllerClient) VolumeFrontendStart

func (c *ControllerClient) VolumeFrontendStart(frontend string) error

func (*ControllerClient) VolumeGet

func (c *ControllerClient) VolumeGet() (*types.VolumeInfo, error)

func (*ControllerClient) VolumeRevert

func (c *ControllerClient) VolumeRevert(snapshot string) error

func (*ControllerClient) VolumeSnapshot

func (c *ControllerClient) VolumeSnapshot(name string, labels map[string]string) (string, error)

func (*ControllerClient) VolumeStart

func (c *ControllerClient) VolumeStart(replicas ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL