aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/net.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-03 21:24:50 +0900
committerOphestra <cat@gensokyo.uk>2026-01-03 21:26:25 +0900
commit8ad990906555d843d1212c5eb8a1ac194031426c (patch)
tree710c54cad83d8fb20dd6666791249100480a426c /internal/pkg/net.go
parentdeda16da38187091ec59d28fb4fbc672ff71e70e (diff)
internal/pkg: compute identifier from deps
This provides infrastructure for computing a deterministic identifier based on current artifact kind, opaque parameters data, and optional dependency kind and identifiers. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/net.go')
-rw-r--r--internal/pkg/net.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/pkg/net.go b/internal/pkg/net.go
index 16229b25..519a9b0f 100644
--- a/internal/pkg/net.go
+++ b/internal/pkg/net.go
@@ -53,6 +53,9 @@ func (c *Cache) NewHTTPGet(hc *http.Client, url string, checksum Checksum) (File
return c.NewHTTP(hc, req, checksum), nil
}
+// Kind returns the hardcoded [Kind] constant.
+func (a *httpArtifact) Kind() Kind { return KindHTTP }
+
// ID returns the caller-supplied hash of the response body.
func (a *httpArtifact) ID() ID { return a.id }