package chunked

import "github.com/containers/storage/pkg/chunked"

Index

Constants

const (
	TypeReg     = minimal.TypeReg
	TypeChunk   = minimal.TypeChunk
	TypeLink    = minimal.TypeLink
	TypeChar    = minimal.TypeChar
	TypeBlock   = minimal.TypeBlock
	TypeDir     = minimal.TypeDir
	TypeFifo    = minimal.TypeFifo
	TypeSymlink = minimal.TypeSymlink
)

Functions

func GetDiffer

func GetDiffer(ctx context.Context, store storage.Store, blobDigest digest.Digest, blobSize int64, annotations map[string]string, iss ImageSourceSeekable) (graphdriver.Differ, error)

GetDiffer returns a differ than can be used with ApplyDiffWithDiffer. If it returns an error that matches ErrFallbackToOrdinaryLayerDownload, the caller can retry the operation with a different method.

func ZstdCompressor

func ZstdCompressor(r io.Writer, metadata map[string]string, level *int) (io.WriteCloser, error)

ZstdCompressor is a CompressorFunc for the zstd compression algorithm. Deprecated: Use pkg/chunked/compressor.ZstdCompressor.

Types

type ErrBadRequest

type ErrBadRequest struct {
}

ErrBadRequest is returned when the request is not valid

func (ErrBadRequest) Error

func (e ErrBadRequest) Error() string

type ErrFallbackToOrdinaryLayerDownload

type ErrFallbackToOrdinaryLayerDownload struct {
	Err error
}

ErrFallbackToOrdinaryLayerDownload is a custom error type that suggests to the caller that a fallback mechanism can be used instead of a hard failure.

func (ErrFallbackToOrdinaryLayerDownload) Error

func (ErrFallbackToOrdinaryLayerDownload) Unwrap

type ImageSourceChunk

type ImageSourceChunk struct {
	Offset uint64
	Length uint64
}

ImageSourceChunk is a portion of a blob.

type ImageSourceSeekable

type ImageSourceSeekable interface {
	// GetBlobAt returns a stream for the specified blob.
	GetBlobAt([]ImageSourceChunk) (chan io.ReadCloser, chan error, error)
}

ImageSourceSeekable is an image source that permits to fetch chunks of the entire blob.

Source Files

bloom_filter_linux.go cache_linux.go compression.go compression_linux.go filesystem_linux.go storage.go storage_linux.go

Directories

PathSynopsis
pkg/chunked/compressorPackage rollsum implements rolling checksums similar to apenwarr's bup, which is similar to librsync.
pkg/chunked/dump
pkg/chunked/internal
pkg/chunked/toc
Version
v1.58.0 (latest)
Published
Apr 15, 2025
Platform
linux/amd64
Imports
49 packages
Last checked
3 weeks ago

Tools for package owners.