snapshot

package
v2.1.4-hotfix2+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

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