Documentation
¶
Overview ¶
Package artifact stores and serves the SHA-pinned repository tarballs that source-controller produces and agent jobs fetch. Paths embed a 128-bit random id, so a URL is unguessable by other workloads that can reach the serving port; the fetching init container verifies the sha256 digest end-to-end. The store is in-memory-indexed over plain files — artifacts are reproducible (a restart just re-fetches), so no durable index exists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
// URL the artifact is served at.
URL string
// Digest is the hex sha256 of the tarball.
Digest string
// Size in bytes.
Size int64
}
Info describes one stored artifact.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store keeps artifacts on disk keyed by owner name (the Repository object's namespaced name) and serves them over HTTP.
func NewStore ¶
NewStore builds a Store rooted at dir, minting URLs under baseURL (the cluster-internal address agents reach, e.g. http://patchy-source-controller.patchy.svc:9790).