fileindex

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileTreeIndex

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

func NewFileTreeIndex

func NewFileTreeIndex(fs fs.ISimpleFS, pathSeparator string, maxResultSize int) *FileTreeIndex

func (*FileTreeIndex) AddPath

func (idx *FileTreeIndex) AddPath(pathname string) error

func (*FileTreeIndex) DelPath

func (idx *FileTreeIndex) DelPath(pathname string) error

func (*FileTreeIndex) MovePath

func (idx *FileTreeIndex) MovePath(pathname, dstParentPath string) error

func (*FileTreeIndex) ReadFrom

func (idx *FileTreeIndex) ReadFrom(pathname string) error

func (*FileTreeIndex) RenamePath

func (idx *FileTreeIndex) RenamePath(pathname, newName string) error

func (*FileTreeIndex) Reset added in v0.9.1

func (idx *FileTreeIndex) Reset() error

func (*FileTreeIndex) Search

func (idx *FileTreeIndex) Search(keyword string) ([]string, error)

func (*FileTreeIndex) String added in v0.9.1

func (idx *FileTreeIndex) String() string

func (*FileTreeIndex) WriteTo

func (idx *FileTreeIndex) WriteTo(pathname string) error

type IFileIndex added in v0.9.1

type IFileIndex interface {
	Search(keyword string) ([]string, error)
	AddPath(pathname string) error
	DelPath(pathname string) error
	RenamePath(pathname, newName string) error
	MovePath(pathname, dstParentPath string) error
	WriteTo(pathname string) error
	ReadFrom(pathname string) error
	Reset() error
	String() string
}

Jump to

Keyboard shortcuts

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