Versions in this module Expand all Collapse all v0 v0.20.1 Jun 18, 2024 v0.20.0 Jun 18, 2024 Changes in this version + var ErrConsumed = errors.New("stream was already consumed") + var ErrNotComputed = errors.New("value not computed until stream is consumed") + type Layer struct + func NewLayer(rc io.ReadCloser, opts ...LayerOption) *Layer + func (l *Layer) Compressed() (io.ReadCloser, error) + func (l *Layer) DiffID() (v1.Hash, error) + func (l *Layer) Digest() (v1.Hash, error) + func (l *Layer) MediaType() (types.MediaType, error) + func (l *Layer) Size() (int64, error) + func (l *Layer) Uncompressed() (io.ReadCloser, error) + type LayerOption func(*Layer) + func WithCompressionLevel(level int) LayerOption + func WithMediaType(mt types.MediaType) LayerOption