aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-07 00:39:29 +0900
committerOphestra <cat@gensokyo.uk>2026-01-07 00:39:29 +0900
commit3a21ba1bcadd33a32a011329362d901374716626 (patch)
treee1b840ad264f60d728d097a5ef7cb82934986838 /internal/pkg/pkg.go
parent45301559bf4df313fef6894ec900e8a618339a79 (diff)
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>
Diffstat (limited to 'internal/pkg/pkg.go')
-rw-r--r--internal/pkg/pkg.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go
index 423aea12..93677db3 100644
--- a/internal/pkg/pkg.go
+++ b/internal/pkg/pkg.go
@@ -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