file

package
v1.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 4 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) Expand

func (f *Wrapper) Expand(size int64) (err error)

func (*Wrapper) GetHeadFileSize added in v1.1.0

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

GetHeadFileSize uses dummy head file size for file backend

func (*Wrapper) GetLastModifyTime added in v1.1.0

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

func (*Wrapper) GetMonitorChannel

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

func (*Wrapper) GetRevisionCounter

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

func (*Wrapper) IsRevisionCounterDisabled added in v1.1.0

func (f *Wrapper) IsRevisionCounterDisabled() (bool, error)

func (*Wrapper) PingResponse

func (f *Wrapper) PingResponse() error

func (*Wrapper) RemainSnapshots

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

func (*Wrapper) SectorSize

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

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

func (*Wrapper) StopMonitoring

func (f *Wrapper) StopMonitoring()

Jump to

Keyboard shortcuts

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