devcontainer

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package devcontainer exports the Halos Dev Container Feature source (features/halos) with option defaults baked in for one org/ring.

The feature applies a per-org egress firewall only when firewall=true, which needs the container to run with NET_ADMIN and NET_RAW. The firewall starts at container start (feature entrypoint), not at image build.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(rel *release.Release, o Options, v mdm.Verifier) (map[string][]byte, error)

Export returns relative path -> content for a feature source dir (devcontainer-feature.json, install.sh, init-firewall.sh). rel may be nil; if given it must pass v (a real signature verifier), and a nil v is an error. PubKeyPEM and HalodSHA256 are required: the feature refuses to install without them.

Types

type Options

type Options struct {
	Registry    string
	Org         string // defaults to rel.Manifest.Org when rel is given
	Ring        string // defaults to rel.Manifest.Ring when rel is given
	PubKeyPEM   string // release public key (ed25519 or ECDSA P-256), PKIX PEM, embedded inline
	HalodSHA256 string // hex sha256 of halod, or "amd64=<hex>,arm64=<hex>"
}

Options override the feature's option defaults. Empty fields keep the default.

Jump to

Keyboard shortcuts

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