remote

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 13 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)

type Remote

type Remote struct {
	types.ReaderWriterAt
	// contains filtered or unexported fields
}

func (*Remote) Close

func (r *Remote) Close() error

func (*Remote) Expand

func (r *Remote) Expand(size int64) (err error)

func (*Remote) GetHeadFileSize added in v1.1.0

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

func (*Remote) GetLastModifyTime added in v1.1.0

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

func (*Remote) GetMonitorChannel

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

func (*Remote) GetRevisionCounter

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

func (*Remote) IsRevisionCounterDisabled added in v1.1.0

func (r *Remote) IsRevisionCounterDisabled() (bool, error)

func (*Remote) RemainSnapshots

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

func (*Remote) SectorSize

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

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

func (*Remote) StopMonitoring

func (r *Remote) StopMonitoring()

type RevisionCounter

type RevisionCounter struct {
	Counter int64 `json:"counter,string"`
}

Jump to

Keyboard shortcuts

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