Documentation
¶
Index ¶
- Constants
- func ArchiveOCIImage(ctx context.Context, sourceRef, archivePath string) error
- func Build(ctx context.Context, log *slog.Logger, opts Options) error
- func NewStagingDir() (string, func(), error)
- func OCIImageArchiveName(sourceRef string) (string, 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
- func WriteBundleArchive(rootDir, archivePath string) error
- type Artifact
- type ContainerImageArchive
- type Options
- type Plan
Constants ¶
const (
ManifestFileName = bootstrapartifacts.ManifestFileName
)
Variables ¶
This section is empty.
Functions ¶
func ArchiveOCIImage ¶
ArchiveOCIImage copies a tagged image from an OCI registry into a local OCI layout and writes that layout as a gzip-compressed tar archive.
func NewStagingDir ¶
func OCIImageArchiveName ¶
OCIImageArchiveName returns the release archive filename for a tagged OCI image reference. Callers producing multiple archives must reject duplicate names before writing because the filename intentionally omits registry and repository namespace components.
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.
func WriteBundleArchive ¶
WriteBundleArchive writes rootDir as a deterministic gzip-compressed tar archive and writes an adjacent sha256sum file.