Documentation ¶
Index ¶
- Constants
- func GetDiffer(ctx context.Context, store storage.Store, blobDigest digest.Digest, ...) (graphdriver.Differ, error)
- func ZstdCompressor(r io.Writer, metadata map[string]string, level *int) (io.WriteCloser, error)
- type ErrBadRequest
- type ErrFallbackToOrdinaryLayerDownload
- type ImageSourceChunk
- type ImageSourceSeekable
Constants ¶
Variables ¶
This section is empty.
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 ¶
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 ¶ added in v1.56.0
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 ¶ added in v1.56.0
func (c ErrFallbackToOrdinaryLayerDownload) Error() string
func (ErrFallbackToOrdinaryLayerDownload) Unwrap ¶ added in v1.56.0
func (c ErrFallbackToOrdinaryLayerDownload) Unwrap() error
type ImageSourceChunk ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.