utils_compression

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCompression = CompressionNone //CompressionZstd

DEPRECATED: container-level compression will be removed in v0.6

Variables

This section is empty.

Functions

func CompressFile

func CompressFile(path string, algo CompressionType) (string, int64, string, error)

func ComputeFileHashHex

func ComputeFileHashHex(path string) (string, error)

func OpenDecompressionReader

func OpenDecompressionReader(path string, algo CompressionType) (io.ReadCloser, error)

Types

type CompressionType

type CompressionType string
const (
	CompressionNone CompressionType = "none"
	CompressionGzip CompressionType = "gzip"
	CompressionZstd CompressionType = "zstd"
)

Jump to

Keyboard shortcuts

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