client

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (*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 (c *ControllerClient) VolumeSnapshot(name string, labels map[string]string) (string, error)

func (*ControllerClient) VolumeStart added in v0.6.0

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