client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: Apache-2.0 Imports: 9 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) CreateReplica

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

func (*ControllerClient) DeleteReplica

func (c *ControllerClient) DeleteReplica(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) RevertSnapshot

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

func (*ControllerClient) RevertVolume

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

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)

Jump to

Keyboard shortcuts

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