source

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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

func IsOCIReference(source string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL