package compression
import "github.com/moby/buildkit/util/compression"
Index ¶
- Variables
- func ConvertAllLayerMediaTypes(oci bool, descs ...ocispec.Descriptor) []ocispec.Descriptor
- func DetectLayerMediaType(ctx context.Context, cs content.Store, id digest.Digest, oci bool) (string, error)
- type Type
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 ¶
Source Files ¶
- Version
- v0.9.0
- Published
- Jul 16, 2021
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 12 hours ago –
Tools for package owners.