zstdchunked

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LayerConvertFunc

func LayerConvertFunc(opts ...estargz.Option) converter.ConvertFunc

LayerConvertFunc converts legacy tar.gz layers into zstd:chunked layers.

This changes Docker MediaType to OCI MediaType so this should be used in conjunction with WithDockerToOCI().

Otherwise "io.containers.zstd-chunked.manifest-checksum" annotation will be lost, because the Docker media type does not support layer annotations.

SpeedDefault (level 3) is used for the compression level. See also: https://pkg.go.dev/github.com/klauspost/compress/zstd#EncoderLevel

func LayerConvertFuncWithCompressionLevel added in v0.13.0

func LayerConvertFuncWithCompressionLevel(compressionLevel zstd.EncoderLevel, opts ...estargz.Option) converter.ConvertFunc

LayerConvertFuncWithCompressionLevel converts legacy tar.gz layers into zstd:chunked layers with the specified compression level.

This changes Docker MediaType to OCI MediaType so this should be used in conjunction with WithDockerToOCI(). See LayerConvertFunc for more details. The difference between this function and LayerConvertFunc is that this allows configuring the compression level.

func LayerConvertWithLayerOptsFunc

func LayerConvertWithLayerOptsFunc(opts map[digest.Digest][]estargz.Option) converter.ConvertFunc

LayerConvertWithLayerOptsFunc converts legacy tar.gz layers into zstd:chunked layers.

This changes Docker MediaType to OCI MediaType so this should be used in conjunction with WithDockerToOCI(). See LayerConvertFunc for more details. The difference between this function and LayerConvertFunc is that this allows to specify additional eStargz options per layer.

func LayerConvertWithLayerOptsFuncWithCompressionLevel added in v0.13.0

func LayerConvertWithLayerOptsFuncWithCompressionLevel(compressionLevel zstd.EncoderLevel, opts map[digest.Digest][]estargz.Option) converter.ConvertFunc

LayerConvertWithLayerOptsFuncWithCompressionLevel converts legacy tar.gz layers into zstd:chunked layers. This function allows to specify the compression level of zstd.

This changes Docker MediaType to OCI MediaType so this should be used in conjunction with WithDockerToOCI(). See LayerConvertFunc for more details. The difference between this function and LayerConvertFunc is that this allows to specify additional eStargz options per layer and allows to specify the compression level.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL