buildconfig

package
v0.8.1-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package buildconfig parses and stages application build packaging settings.

Index

Constants

View Source
const (
	Filename = "airlock.toml"
)

Variables

This section is empty.

Functions

func Stage

func Stage(root, dst string) error

Stage copies a validated selection to dst with its original relative layout and file permissions. dst must not already exist.

Types

type Build

type Build struct {
	RuntimeFiles []string `toml:"runtime_files"`
}

Build controls files copied into the runtime image.

type Config

type Config struct {
	Build Build `toml:"build"`
}

Config contains settings that affect application image construction.

type Selection

type Selection struct {
	Paths []string
	Files []sourcebundle.File
}

Selection is a validated runtime file selection.

func Load

func Load(root string) (Selection, error)

Load validates airlock.toml and resolves runtime_files against the canonical source bundle. A missing manifest and an empty runtime_files list select no files.

Jump to

Keyboard shortcuts

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