internal/pkg: implement file artifact

This is an Artifact implementing File, backed by a constant, caller-supplied byte slice.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-07 00:39:29 +09:00
parent 45301559bf
commit 3a21ba1bca
4 changed files with 92 additions and 0 deletions

View File

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