Documentation
¶
Index ¶
- Variables
- func CreateDB(logger hclog.Logger) error
- func IndexAddFiles(logger hclog.Logger, indexName, rootPath string) error
- func IndexAddGooglePhotosTakeout(logger hclog.Logger, indexName, rootPath string) error
- func IndexCat(logger hclog.Logger, indexName string) error
- func IndexChunk(logger hclog.Logger, indexName, targetIndexPrefix string, chunkSize int) error
- func IndexDelete(logger hclog.Logger, indexName string) error
- func IndexList(logger hclog.Logger) error
- func IndexStats(logger hclog.Logger, indexName string) error
- func Materialize(logger hclog.Logger, indexName, rootPath string) error
- func SetDifference(logger hclog.Logger, targetIndex, indexA, indexB string) error
- func SetIntersection(logger hclog.Logger, targetIndex, indexA, indexB string) error
- func SetUnion(logger hclog.Logger, targetIndex, indexA, indexB string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotInitialized indicates that the venn database has not been initialized ErrNotInitialized = errors.New("venn has not been initialized") // ErrNoIndexes indicates that no indexes have been created ErrNoIndexes = errors.New("no indexes have been created") // ErrIndexNotWellFormed indicates the index structure is corrupted ErrIndexNotWellFormed = errors.New("index is not well-formed") )
Functions ¶
func IndexAddFiles ¶
IndexAddFiles indexes all files in the given root path.
func IndexAddGooglePhotosTakeout ¶
IndexAddGooglePhotosTakeout indexes files from a Google Photos takeout, preserving timestamps from metadata.
func IndexChunk ¶
IndexChunk splits an index into multiple smaller indexes.
func IndexDelete ¶
IndexDelete deletes an index from the database.
func IndexStats ¶
IndexStats displays statistics about an index.
func Materialize ¶
Materialize creates a materialized view of an index in the given directory.
func SetDifference ¶
SetDifference creates a new index containing entries in A but not in B (A - B).
func SetIntersection ¶
SetIntersection creates a new index containing entries in both A and B (A ∩ B).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.