remote

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 15 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) GetSnapshotCountAndSizeUsage added in v1.6.0

func (r *Remote) GetSnapshotCountAndSizeUsage() (int, 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) IsReplicaRebuilding added in v1.4.4

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

func (*Remote) IsRevisionCounterDisabled added in v1.1.0

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

func (*Remote) ResetRebuild added in v1.4.4

func (r *Remote) ResetRebuild() error

func (*Remote) SectorSize

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

func (*Remote) SetRevisionCounter

func (r *Remote) SetRevisionCounter(counter int64) error

func (*Remote) SetSnapshotMaxCount added in v1.6.0

func (r *Remote) SetSnapshotMaxCount(count int) error

func (*Remote) SetSnapshotMaxSize added in v1.6.0

func (r *Remote) SetSnapshotMaxSize(size 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