Documentation
¶
Overview ¶
Package source resolves Gemara artifact sources (file paths or OCI references) and loads them into classified ArtifactSets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOCIReference ¶
IsOCIReference returns true if the source looks like an OCI registry reference. It uses oras-go's ParseReference to parse the string according to the OCI distribution spec, then validates that the parsed registry field looks like a network host (contains ":" for a port, equals "localhost", or looks like a DNS name).
func LoadArtifacts ¶
func LoadArtifacts(ctx context.Context, source string, plainHTTP bool, cacheDir string) (*requirement.ArtifactSet, error)
LoadArtifacts loads and classifies Gemara artifacts from either a file path or OCI reference. When cacheDir is non-empty, OCI artifacts are cached on disk for subsequent invocations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.