package compression

import "github.com/moby/buildkit/util/compression"

Index

Variables

var Default = Gzip

Functions

func ConvertAllLayerMediaTypes

func ConvertAllLayerMediaTypes(oci bool, descs ...ocispec.Descriptor) []ocispec.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 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

	// UnknownCompression means not supported yet.
	UnknownCompression Type = -1
)

func (Type) String

func (ct Type) String() string

Source Files

compression.go

Version
v0.9.1
Published
Oct 4, 2021
Platform
js/wasm
Imports
9 packages
Last checked
12 hours ago

Tools for package owners.