archive

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package archive packages the SQLite database and manifest into the final .tar.gz artifact.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Path   string
	Size   int64
	SHA256 string
}

Result describes the archive on disk after a successful WriteTarGz call. SHA256 is the lowercase hex digest of the .tar.gz bytes, computed in the same pass that wrote the file so callers do not have to re-read it.

func WriteTarGz

func WriteTarGz(outPath string, files map[string]string) (Result, error)

WriteTarGz writes a gzip-compressed tar of the named files. The keys of files are paths on disk; the values are the names to use inside the archive. Files are written in name-in-archive sort order for deterministic output. The returned Result carries the on-disk size and the SHA256 of the .tar.gz, both computed during this call.

Jump to

Keyboard shortcuts

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