Documentation ¶
Index ¶
- type ControllerClient
- func (c *ControllerClient) CreateReplica(address string) (*rest.Replica, error)
- func (c *ControllerClient) DeleteReplica(address string) (*rest.Replica, error)
- func (c *ControllerClient) GetVolume() (*rest.Volume, error)
- func (c *ControllerClient) ListJournal(limit int) error
- func (c *ControllerClient) ListReplicas() ([]rest.Replica, error)
- func (c *ControllerClient) RevertSnapshot(snapshot string) error
- func (c *ControllerClient) RevertVolume(name string) (*rest.Volume, error)
- func (c *ControllerClient) Snapshot(name string) (string, error)
- func (c *ControllerClient) Start(replicas ...string) error
- func (c *ControllerClient) UpdateReplica(replica rest.Replica) (rest.Replica, error)
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) 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 ¶
Click to show internal directories.
Click to hide internal directories.