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 ¶
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.