ociartifact

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescriptorsByTitle

func DescriptorsByTitle(manifest ocispec.Manifest) map[string]ocispec.Descriptor

DescriptorsByTitle indexes an OCI artifact manifest's layers by title annotation.

func FetchManifest

func FetchManifest(ctx context.Context, sourceRoot string) (ocispec.Manifest, error)

FetchManifest resolves an OCI artifact source and returns its selected platform manifest. The source must be of the form oci://registry/repo:tag.

func Open

func Open(ctx context.Context, source string) (io.ReadCloser, error)

Open opens one OCI artifact blob selected by title from a source of the form oci://registry/repo:tag#path/to/blob. It resolves and reads the artifact manifest metadata for the source, then returns a reader for only the selected blob. It does not pull or materialize the whole OCI artifact bundle.

Types

This section is empty.

Jump to

Keyboard shortcuts

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