Help us shape the future of Go! Take the 2026 Go Developer Survey

export

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package export converts Strata lockfiles to portable container formats.

The primary export format is OCI Image Layout (OCI Image Layout Specification 1.0), which is compatible with Docker, Podman, and Apptainer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(ctx context.Context, lf *spec.LockFile, layerPaths []overlay.LayerPath, outputPath, tag string) error

Export converts a lockfile's layers into an OCI Image Layout tar archive. Requires unsquashfs (squashfs-tools) to be installed on PATH.

layerPaths must be ordered: the first entry is the bottom-most layer (lowest MountOrder). Layers are combined into separate OCI diff layers. The resulting archive at outputPath is a valid OCI Image Layout that can be loaded with:

docker load -i outputPath
podman load -i outputPath

func TarDirDeterministic

func TarDirDeterministic(dir string) ([]byte, string, error)

TarDirDeterministic creates a deterministic tar archive of dir. Files are sorted by path, timestamps are zeroed, and uid/gid are cleared. Returns the raw tar bytes and their sha256 hex digest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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