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 ¶
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 ¶
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 ¶
func (s *OciArchiveStore) ReaderAt(ctx context.Context, desc ocispec.Descriptor) (content.ReaderAt, error)
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.