materialize

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.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 Materializer

type Materializer interface {
	Materialize(srcDB, outPath string) error
}

Materializer writes a projected node tree (from a mache SQLite DB) to an output format.

func ForFormat

func ForFormat(format string) (Materializer, error)

ForFormat returns the appropriate Materializer for the given format string.

type SQLiteMaterializer

type SQLiteMaterializer struct{}

SQLiteMaterializer copies the source DB as-is to the output path.

func (*SQLiteMaterializer) Materialize

func (m *SQLiteMaterializer) Materialize(srcDB, outPath string) error

type ZIPMaterializer

type ZIPMaterializer struct{}

ZIPMaterializer reads the node tree from a mache SQLite DB and writes all file nodes (kind=0) with non-NULL content as entries in a ZIP archive. Directory nodes are implicit (paths contain slashes).

func (*ZIPMaterializer) Materialize

func (m *ZIPMaterializer) Materialize(srcDB, outPath string) error

Jump to

Keyboard shortcuts

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