zstd

package
v0.0.0-...-e07cf5f Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkedExtractor

type ChunkedExtractor struct {
	// contains filtered or unexported fields
}

ChunkedExtractor handles file extraction from zstd:chunked (stargz-zstd) layers zstd:chunked is a seekable format similar to eStargz but using zstd compression

func NewChunkedExtractor

func NewChunkedExtractor(reader io.ReaderAt, size int64) *ChunkedExtractor

NewChunkedExtractor creates a new zstd:chunked extractor

func (*ChunkedExtractor) ExtractFile

func (e *ChunkedExtractor) ExtractFile(ctx context.Context, targetPath string, outputPath string) error

ExtractFile extracts a specific file from a zstd:chunked layer

func (*ChunkedExtractor) ListFiles

func (e *ChunkedExtractor) ListFiles(ctx context.Context) ([]string, error)

ListFiles lists all files in a zstd:chunked layer

type Extractor

type Extractor struct {
	// contains filtered or unexported fields
}

Extractor handles file extraction from standard zstd-compressed OCI layers

func NewExtractor

func NewExtractor(layer v1.Layer) *Extractor

NewExtractor creates a new standard zstd layer extractor

func (*Extractor) ExtractFile

func (e *Extractor) ExtractFile(ctx context.Context, targetPath string, outputPath string) error

ExtractFile extracts a specific file from a zstd-compressed OCI layer This downloads and decompresses the entire layer using zstd

func (*Extractor) ListFiles

func (e *Extractor) ListFiles(ctx context.Context) ([]string, error)

ListFiles lists all files in a zstd-compressed OCI layer

Jump to

Keyboard shortcuts

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