file

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 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)

type Wrapper

type Wrapper struct {
	*os.File
}

func (*Wrapper) Close

func (f *Wrapper) Close() error

func (*Wrapper) GetMonitorChannel added in v0.3.0

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

func (*Wrapper) GetRevisionCounter added in v0.3.0

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

func (*Wrapper) PingResponse added in v0.3.0

func (f *Wrapper) PingResponse() error

func (*Wrapper) RemainSnapshots added in v0.3.0

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

func (*Wrapper) SectorSize

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

func (*Wrapper) SetRevisionCounter added in v0.3.0

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, labels map[string]string) error

func (*Wrapper) StopMonitoring added in v0.3.0

func (f *Wrapper) StopMonitoring()

Jump to

Keyboard shortcuts

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