Documentation
¶
Overview ¶
Package imageref reads image references as written, ${VAR:-default} templates included. The full parse (registry, tag, digest, pinning) is the artifact reference; this holds only what links need. See https://cernly.dev/how/facts/.
Index ¶
Constants ¶
const ( PinDigest = "digest" // @sha256:... PinExact = "exact" // a full version: x.y.z or a release date, variant suffix allowed PinFloating = "floating" // latest, no tag, a major or major.minor, a branch or word tag PinUnknown = "unknown" // the tag comes from a variable without a default )
Pinning grades.
Variables ¶
This section is empty.
Functions ¶
func Datastore ¶
Datastore classifies an image reference such as "docker.io/library/postgres:16-alpine@sha256:..." as postgres, version 16. The version comes from the tag through the version scheme parser, so RELEASE.<date> tags keep a date.
Types ¶
type Ref ¶
type Ref struct {
Raw string
Registry string
Repository string
Tag string
Digest string
Templated []string // variable names in Raw
Pinning string
}
Ref is the artifact_ref of scan.v1.schema.json for an image.