util

package
v0.0.0-...-4187e75 Latest Latest
Warning

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

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

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSHA256

func CalculateSHA256(filePath string) (string, error)

CalculateSHA256 calculates the SHA256 hash of a file

func CompressXZ

func CompressXZ(src, dst string) error

CompressXZ compresses a file using xz compression

func CompressXZWithProgress

func CompressXZWithProgress(src, dst string, progressCallback func(float64)) error

CompressXZWithProgress compresses a file with progress tracking

func DecompressXZ

func DecompressXZ(src, dst string) error

DecompressXZ decompresses an xz file to a destination path

func DecompressXZWithProgress

func DecompressXZWithProgress(src, dst string, progressCallback func(float64)) error

DecompressXZWithProgress decompresses an xz file with progress tracking

func ExtractTarGz

func ExtractTarGz(src, dstDir string) error

ExtractTarGz extracts a tar.gz archive to a destination directory

func ExtractTarXz

func ExtractTarXz(src, dstDir string) error

ExtractTarXz extracts a tar.xz archive to a destination directory

func ExtractTarXzWithProgress

func ExtractTarXzWithProgress(src, dstDir string, progressCallback func(float64)) error

ExtractTarXzWithProgress extracts a tar.xz archive with progress tracking

func ParseSHA256SUMSFile

func ParseSHA256SUMSFile(path string) (map[string]string, error)

ParseSHA256SUMSFile parses a SHA256SUMS file and returns a map of filename -> hash

func VerifySHA256File

func VerifySHA256File(filePath, checksumsPath string) error

VerifySHA256File verifies a file against a SHA256SUMS file

Types

This section is empty.

Jump to

Keyboard shortcuts

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