archive

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Package archive implements the Archive interface for the OCI archive store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OciArchiveStore

type OciArchiveStore struct {
	Root string
	Src  *oci.Store
}

OciArchiveStore represents a content store backed by an OCI archive directory. It uses a root file path and an underlying OCI store source to manage content blobs.

func (*OciArchiveStore) Info

func (s *OciArchiveStore) Info(ctx context.Context, dgst digest.Digest) (content.Info, error)

Info retrieves content information for the given digest from the OCI archive store.

ctx: The context for the operation. dgst: The digest of the content to locate. Returns the content.Info containing the digest and size, or an error if resolution fails.

func (*OciArchiveStore) ReaderAt

ReaderAt returns a content.ReaderAt for the given descriptor from the OCI archive store.

ctx: The context for the operation. desc: The OCI descriptor identifying the content to read. Returns a content.ReaderAt for accessing the content, or an error if the blob cannot be opened or accessed.

Jump to

Keyboard shortcuts

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