file

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: 3 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 (ff *Factory) Create(address string) (types.Backend, error)

func (*Factory) SignalToAdd

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

type Wrapper

type Wrapper struct {
	*os.File
}

func (*Wrapper) Close

func (f *Wrapper) Close() error

func (*Wrapper) GetCloneStatus

func (f *Wrapper) GetCloneStatus() (string, error)

func (*Wrapper) GetMonitorChannel

func (f *Wrapper) GetMonitorChannel() types.MonitorChannel

func (*Wrapper) GetReplicaChain added in v1.12.1

func (f *Wrapper) GetReplicaChain() ([]string, error)

GetReplicaChain ...

func (*Wrapper) GetRevisionCounter

func (f *Wrapper) GetRevisionCounter() (int64, error)

func (*Wrapper) GetVolUsage

func (f *Wrapper) GetVolUsage() (types.VolUsage, error)

func (*Wrapper) PingResponse

func (f *Wrapper) PingResponse() error

func (*Wrapper) RemainSnapshots

func (f *Wrapper) RemainSnapshots() (int, error)

func (*Wrapper) Resize

func (f *Wrapper) Resize(name string, size string) error

func (*Wrapper) SectorSize

func (f *Wrapper) SectorSize() (int64, error)

func (*Wrapper) SetCheckpoint added in v1.12.1

func (f *Wrapper) SetCheckpoint(snapshotName string) error

SetCheckpoint ...

func (*Wrapper) SetRebuilding

func (f *Wrapper) SetRebuilding(rebuilding bool) error

func (*Wrapper) SetReplicaMode

func (f *Wrapper) SetReplicaMode(mode types.Mode) error

SetReplicaMode ...

func (*Wrapper) SetRevisionCounter

func (f *Wrapper) SetRevisionCounter(counter int64) error

func (*Wrapper) Size

func (f *Wrapper) Size() (int64, error)

func (*Wrapper) Snapshot

func (f *Wrapper) Snapshot(name string, userCreated bool, created string) error

func (*Wrapper) StopMonitoring

func (f *Wrapper) StopMonitoring()

func (*Wrapper) Sync

func (f *Wrapper) Sync() (int, error)

func (*Wrapper) Unmap

func (f *Wrapper) Unmap(offset int64, length int64) (int, error)

Jump to

Keyboard shortcuts

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