snapshot

package
v3.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: AGPL-3.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.Node, 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.Node, err error)

func (*BoltSnapshot) MoveNode

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

func (*BoltSnapshot) StartSession

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

func (*BoltSnapshot) Walk

func (s *BoltSnapshot) Walk(walknFc 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