remote

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingInterval = 2 * time.Second
)

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(volumeName, address string, dataServerProtocol types.DataServerProtocol, engineToReplicaTimeout time.Duration) (types.Backend, error)

type Remote

type Remote struct {
	types.ReaderWriterUnmapperAt
	// 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) GetState added in v1.2.5

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

func (*Remote) GetUnmapMarkSnapChainRemoved added in v1.4.0

func (r *Remote) GetUnmapMarkSnapChainRemoved() (bool, 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) SetUnmapMarkSnapChainRemoved added in v1.4.0

func (r *Remote) SetUnmapMarkSnapChainRemoved(enabled bool) 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