client

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerClient

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

func NewControllerClient

func NewControllerClient(controller string) *ControllerClient

func (*ControllerClient) CreateQuorumReplica

func (c *ControllerClient) CreateQuorumReplica(address string) (*rest.Replica, error)

func (*ControllerClient) CreateReplica

func (c *ControllerClient) CreateReplica(address string) (*rest.Replica, error)

func (*ControllerClient) DeleteReplica

func (c *ControllerClient) DeleteReplica(address string) (*rest.Replica, error)

func (*ControllerClient) DeleteSnapshot

func (c *ControllerClient) DeleteSnapshot(name string) error

DeleteSnapshot ...

func (*ControllerClient) GetCheckpoint added in v1.12.1

func (c *ControllerClient) GetCheckpoint() (string, error)

func (*ControllerClient) GetReplica

func (c *ControllerClient) GetReplica(address string) (*rest.Replica, error)

func (*ControllerClient) GetVolume

func (c *ControllerClient) GetVolume() (*rest.Volume, error)

func (*ControllerClient) ListJournal

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

func (*ControllerClient) ListReplicas

func (c *ControllerClient) ListReplicas() ([]rest.Replica, error)

func (*ControllerClient) PrepareRebuild

func (c *ControllerClient) PrepareRebuild(address string) (*rest.PrepareRebuildOutput, error)

func (*ControllerClient) Register

func (c *ControllerClient) Register(address string, revisionCount int64, replicaType string, upTime time.Duration, state string) error

func (*ControllerClient) RevertSnapshot

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

func (*ControllerClient) RevertVolume

func (c *ControllerClient) RevertVolume(name string) (*rest.Volume, error)

func (*ControllerClient) SetLogging

func (c *ControllerClient) SetLogging(lf util.LogToFile) error

SetLogging ...

func (*ControllerClient) Snapshot

func (c *ControllerClient) Snapshot(name string) (string, error)

func (*ControllerClient) Start

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

func (*ControllerClient) UpdateReplica

func (c *ControllerClient) UpdateReplica(replica rest.Replica) (rest.Replica, error)

func (*ControllerClient) VerifyRebuildReplica

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

Jump to

Keyboard shortcuts

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