remote

package
Version: 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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() types.BackendFactory

Types

type Factory

type Factory struct {
}

func (*Factory) Create

func (rf *Factory) Create(address string) (types.Backend, error)

Create Remote with address given string, returns backend and error

func (*Factory) SignalToAdd

func (rf *Factory) SignalToAdd(address string, action string) error

type Remote

type Remote struct {
	types.IOs
	Name string
	// contains filtered or unexported fields
}

func (*Remote) Close

func (r *Remote) Close() error

func (*Remote) GetCloneStatus

func (r *Remote) GetCloneStatus() (string, error)

func (*Remote) GetMonitorChannel

func (r *Remote) GetMonitorChannel() types.MonitorChannel

func (*Remote) GetReplicaChain added in v1.12.1

func (r *Remote) GetReplicaChain() ([]string, error)

GetReplicaChain fetches replic chain

func (*Remote) GetRevisionCounter

func (r *Remote) GetRevisionCounter() (int64, error)

func (*Remote) GetVolUsage

func (r *Remote) GetVolUsage() (types.VolUsage, error)

func (*Remote) RemainSnapshots

func (r *Remote) RemainSnapshots() (int, error)

func (*Remote) Resize

func (r *Remote) Resize(name string, size string) error

func (*Remote) SectorSize

func (r *Remote) SectorSize() (int64, error)

func (*Remote) SetCheckpoint added in v1.12.1

func (r *Remote) SetCheckpoint(snapshotName string) error

SetCheckpoint ...

func (*Remote) SetRebuilding

func (r *Remote) SetRebuilding(rebuilding bool) error

func (*Remote) SetReplicaMode

func (r *Remote) SetReplicaMode(mode types.Mode) error

SetReplicaMode ...

func (*Remote) SetRevisionCounter

func (r *Remote) SetRevisionCounter(counter int64) error

func (*Remote) Size

func (r *Remote) Size() (int64, error)

func (*Remote) Snapshot

func (r *Remote) Snapshot(name string, userCreated bool, created string) error

func (*Remote) StopMonitoring

func (r *Remote) StopMonitoring()

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL