Documentation ¶
Overview ¶
Package snapshot provides fast in-memory or on-file implementations of endpoint for storing snapshots
Index ¶
- type BoltSnapshot
- func (s *BoltSnapshot) Capture(ctx context.Context, source model.PathSyncSource, paths ...string) error
- func (s *BoltSnapshot) Close(delete ...bool)
- func (s *BoltSnapshot) CreateNode(ctx context.Context, node tree.N, updateIfExists bool) (err error)
- func (s *BoltSnapshot) DeleteNode(ctx context.Context, path string) (err error)
- func (s *BoltSnapshot) FinishSession(ctx context.Context, sessionUuid string) error
- func (s *BoltSnapshot) FlushSession(ctx context.Context, sessionUuid string) error
- func (s *BoltSnapshot) GetEndpointInfo() model.EndpointInfo
- func (s *BoltSnapshot) IsEmpty() bool
- func (s *BoltSnapshot) LoadNode(ctx context.Context, path string, extendedStats ...bool) (node tree.N, err error)
- func (s *BoltSnapshot) MoveNode(ctx context.Context, oldPath string, newPath string) (err error)
- func (s *BoltSnapshot) SetManualCollector()
- func (s *BoltSnapshot) StartSession(ctx context.Context, rootNode tree.N, silent bool) (string, error)
- func (s *BoltSnapshot) Walk(ctx context.Context, walkFunc model.WalkNodesFunc, root string, recursive bool) (err error)
- func (s *BoltSnapshot) Watch(recursivePath string) (*model.WatchObject, error)
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 (*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) SetManualCollector ¶
func (s *BoltSnapshot) SetManualCollector()
func (*BoltSnapshot) StartSession ¶
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)
Click to show internal directories.
Click to hide internal directories.