internal/pkg: known checksum exec artifact

This optionally attaches an output checksum to an execArtifact and enables host networking for the resulting container.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-06 20:57:43 +09:00
parent ceb75538cf
commit 156096ac98
5 changed files with 179 additions and 8 deletions

View File

@@ -185,6 +185,9 @@ const (
KindTar
// KindExec is the kind of [Artifact] returned by [NewExec].
KindExec
// KindExecNet is the kind of [Artifact] returned by [NewExec] but with a
// non-nil checksum.
KindExecNet
)
// Ident returns a deterministic identifier for the supplied params and