Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + var Default = Gzip + var EStargz = estargzType + var EStargzAnnotations = []string + var Gzip = gzipType + var Uncompressed = uncompressedType + var Zstd = zstdType + func ConvertAllLayerMediaTypes(ctx context.Context, oci bool, descs ...ocispecs.Descriptor) []ocispecs.Descriptor + func DetectLayerMediaType(ctx context.Context, cs content.Store, id digest.Digest, oci bool) (string, error) + func IsMediaType(ct Type, mt string) bool + type Compressor func(dest io.Writer, mediaType string) (io.WriteCloser, error) + type Config struct + Force bool + Level *int + Type Type + func New(t Type) Config + func ParseAttributes(attrs map[string]string) (Config, error) + func (c Config) SetForce(v bool) Config + func (c Config) SetLevel(l int) Config + type Decompressor func(ctx context.Context, cs content.Store, desc ocispecs.Descriptor) (io.ReadCloser, error) + type Finalizer func(context.Context, content.Store) (map[string]string, error) + type Type interface + Compress func(ctx context.Context, comp Config) (compressorFunc Compressor, finalize Finalizer) + Decompress func(ctx context.Context, cs content.Store, desc ocispecs.Descriptor) (io.ReadCloser, error) + MediaType func() string + NeedsComputeDiffBySelf func(comp Config) bool + NeedsConversion func(ctx context.Context, cs content.Store, desc ocispecs.Descriptor) (bool, error) + OnlySupportOCITypes func() bool + String func() string + func FromMediaType(mediaType string) (Type, error) + func Parse(t string) (Type, error)