sourcebundle

package
v0.4.0-rc.15 Latest Latest
Warning

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

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

Documentation

Overview

Package sourcebundle defines the source tree Airlock synchronizes with local workspaces. Hashing and archive creation use the same deterministic file set.

Index

Constants

View Source
const StatePrefix = "sha256:"

StatePrefix identifies source-state hashes on the wire and in agent.toml.

Variables

This section is empty.

Functions

func Digest

func Digest(root string) (string, error)

Digest returns the deterministic content state for root.

func ExtractArchive

func ExtractArchive(r io.Reader, dst string) error

ExtractArchive extracts a source archive into an empty or existing directory. Only regular files with safe relative paths are accepted.

func Mirror

func Mirror(src, dst string) error

Mirror replaces dst's synchronized source files with src while preserving excluded and ignored local state such as .git and .airlock.

func WriteArchive

func WriteArchive(w io.Writer, root string) (string, error)

WriteArchive writes root as a deterministic tar.gz source archive and returns the state represented by that archive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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