internal/pkg: reserve kind range

This is useful for custom implementations of Artifact.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-08 01:21:51 +09:00
parent 4eea136308
commit 409fd3149e

View File

@@ -191,6 +191,10 @@ const (
KindExecNet KindExecNet
// KindFile is the kind of [Artifact] returned by [NewFile]. // KindFile is the kind of [Artifact] returned by [NewFile].
KindFile KindFile
// KindCustomOffset is the first [Kind] value reserved for implementations
// not from this package.
KindCustomOffset = 1 << 31
) )
// Ident returns a deterministic identifier for the supplied params and // Ident returns a deterministic identifier for the supplied params and