chunked

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TypeReg     = "reg"
	TypeChunk   = "chunk"
	TypeLink    = "hardlink"
	TypeChar    = "char"
	TypeBlock   = "block"
	TypeDir     = "dir"
	TypeFifo    = "fifo"
	TypeSymlink = "symlink"
)

Variables

This section is empty.

Functions

func GetDiffer

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

GetDiffer returns a differ than can be used with ApplyDiffWithDiffer.

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.

Types

type ErrBadRequest

type ErrBadRequest struct {
}

ErrBadRequest is returned when the request is not valid

func (ErrBadRequest) Error

func (e ErrBadRequest) Error() string

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.

Jump to

Keyboard shortcuts

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