efsindex

package
v0.0.0-...-dcff070 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EfsFileInfo

type EfsFileInfo struct {
	Path          string
	LastSynced    time.Time
	Updated       time.Time
	Deleted       bool
	StoredPath    string
	TrackingValue int64
}

type EfsIndex

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

func New

func New(path string, passphrase string) *EfsIndex

func (*EfsIndex) Close

func (i *EfsIndex) Close() error

func (*EfsIndex) DeleteFileInfo

func (i *EfsIndex) DeleteFileInfo(path string) error

We don't use this...

func (*EfsIndex) GetFileInfo

func (i *EfsIndex) GetFileInfo(path string) (EfsFileInfo, error)

func (*EfsIndex) GetPage

func (i *EfsIndex) GetPage(offset, limit int) ([]EfsFileInfo, error)

func (*EfsIndex) Load

func (i *EfsIndex) Load() error

func (*EfsIndex) MarkDeleted

func (i *EfsIndex) MarkDeleted(trackingValue int64) error

func (*EfsIndex) SetFileInfo

func (i *EfsIndex) SetFileInfo(fi EfsFileInfo) error

func (*EfsIndex) UpdatePath

func (i *EfsIndex) UpdatePath(oldPath, newPath string) error

todo add a updatePath statement

Jump to

Keyboard shortcuts

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