snapshot

package
v4.3.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: AGPL-3.0 Imports: 18 Imported by: 1

Documentation

Overview

Package snapshot provides fast in-memory or on-file implementations of endpoint for storing snapshots

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltSnapshot

type BoltSnapshot struct {
	// contains filtered or unexported fields
}

func NewBoltSnapshot

func NewBoltSnapshot(folderPath, name string) (*BoltSnapshot, error)

func (*BoltSnapshot) Capture

func (s *BoltSnapshot) Capture(ctx context.Context, source model.PathSyncSource, paths ...string) error

func (*BoltSnapshot) Close

func (s *BoltSnapshot) Close(delete ...bool)

func (*BoltSnapshot) CreateNode

func (s *BoltSnapshot) CreateNode(ctx context.Context, node tree.N, updateIfExists bool) (err error)

func (*BoltSnapshot) DeleteNode

func (s *BoltSnapshot) DeleteNode(ctx context.Context, path string) (err error)

func (*BoltSnapshot) FinishSession

func (s *BoltSnapshot) FinishSession(ctx context.Context, sessionUuid string) error

func (*BoltSnapshot) FlushSession

func (s *BoltSnapshot) FlushSession(ctx context.Context, sessionUuid string) error

func (*BoltSnapshot) GetEndpointInfo

func (s *BoltSnapshot) GetEndpointInfo() model.EndpointInfo

func (*BoltSnapshot) IsEmpty

func (s *BoltSnapshot) IsEmpty() bool

func (*BoltSnapshot) LoadNode

func (s *BoltSnapshot) LoadNode(ctx context.Context, path string, extendedStats ...bool) (node tree.N, err error)

func (*BoltSnapshot) MoveNode

func (s *BoltSnapshot) MoveNode(ctx context.Context, oldPath string, newPath string) (err error)

func (*BoltSnapshot) SetManualCollector added in v4.2.6

func (s *BoltSnapshot) SetManualCollector()

func (*BoltSnapshot) StartSession

func (s *BoltSnapshot) StartSession(ctx context.Context, rootNode tree.N, silent bool) (string, error)

func (*BoltSnapshot) Walk

func (s *BoltSnapshot) Walk(ctx context.Context, walkFunc model.WalkNodesFunc, root string, recursive bool) (err error)

func (*BoltSnapshot) Watch

func (s *BoltSnapshot) Watch(recursivePath string) (*model.WatchObject, error)

Jump to

Keyboard shortcuts

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