Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OCIImage ¶
OCIImage holds a v1.Image extracted from an OCI tar along with its annotations and a cleanup function. The caller must invoke Cleanup when the image is no longer needed (v1.Image reads blobs lazily from disk).
func ImageFromTar ¶
ImageFromTar extracts an OCI tar to a temporary directory, parses the OCI layout, and returns the first image from the index along with its annotations.
type OCILayoutStore ¶
type OCILayoutStore struct {
Store content.Store
Digest digest.Digest
// contains filtered or unexported fields
}
OCILayoutStore wraps a containerd content.Store backed by an extracted OCI tar layout. The Digest field holds the manifest digest from index.json, used to wire up BuildKit named contexts via oci-layout:<storeID>@<digest>.
func FromTar ¶
func FromTar(ociTarPath, destDir string) (*OCILayoutStore, error)
FromTar extracts an OCI image tar to destDir and returns an OCILayoutStore backed by the extracted blobs directory. The store can be passed directly to BuildKit's SolveOpt.OCIStores for named context resolution.