Documentation
¶
Index ¶
- Constants
- func Build(ctx context.Context, log *slog.Logger, opts Options) error
- func NewStagingDir() (string, func(), error)
- func PushOCI(ctx context.Context, log *slog.Logger, rootDir, ref string) error
- func ValidateBundle(log *slog.Logger, rootDir string) error
- func ValidateOCI(ctx context.Context, log *slog.Logger, ref string) error
- type Artifact
- type Options
- type Plan
Constants ¶
const (
ManifestFileName = agentartifacts.ManifestFileName
)
Variables ¶
This section is empty.
Functions ¶
func NewStagingDir ¶
func ValidateBundle ¶
ValidateBundle validates a local offline artifact bundle directory. It reads manifest.json, derives the expected artifact paths from that manifest and the detected architectures, compares them to the files on disk, and verifies all checksum sidecars.
func ValidateOCI ¶
ValidateOCI pulls each platform from an offline artifact OCI index into a temporary staging directory and validates the pulled content. It verifies that the remote index has the expected artifact type, that each platform manifest has file title annotations on all layers, that each pulled platform bundle contains a valid manifest.json, and that the pulled files match the artifacts implied by manifest.json for that platform.