package compression
import "github.com/moby/buildkit/util/compression"
Index ¶
- Variables
- func ConvertAllLayerMediaTypes(oci bool, descs ...ocispecs.Descriptor) []ocispecs.Descriptor
- func DetectLayerMediaType(ctx context.Context, cs content.Store, id digest.Digest, oci bool) (string, error)
- type Config
- func New(t Type) Config
- func (c Config) SetForce(v bool) Config
- func (c Config) SetLevel(l int) Config
- type Type
Variables ¶
var Default = Gzip
Functions ¶
func ConvertAllLayerMediaTypes ¶
func ConvertAllLayerMediaTypes(oci bool, descs ...ocispecs.Descriptor) []ocispecs.Descriptor
func DetectLayerMediaType ¶
func DetectLayerMediaType(ctx context.Context, cs content.Store, id digest.Digest, oci bool) (string, error)
DetectLayerMediaType returns media type from existing blob data.
Types ¶
type Config ¶
func New ¶
func (Config) SetForce ¶
func (Config) SetLevel ¶
type Type ¶
type Type int
Type represents compression type for blob data.
const ( // Uncompressed indicates no compression. Uncompressed Type = iota // Gzip is used for blob data. Gzip // EStargz is used for estargz data. EStargz // Zstd is used for Zstandard data. Zstd // UnknownCompression means not supported yet. UnknownCompression Type = -1 )
func FromMediaType ¶
func Parse ¶
func (Type) DefaultMediaType ¶
func (Type) IsMediaType ¶
func (Type) String ¶
Source Files ¶
- Version
- v0.10.0-rc2
- Published
- Feb 25, 2022
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 5 minutes ago –
Tools for package owners.