util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSHA256

func ComputeSHA256(filePath string) (string, error)

ComputeSHA256 computes the SHA256 hash of a file

func ComputeSHA256FromURL

func ComputeSHA256FromURL(ctx context.Context, url string) (string, error)

ComputeSHA256FromURL fetches content from a URL and computes its SHA256 hash

func ComputeSHA256Reader

func ComputeSHA256Reader(r io.Reader) (string, error)

ComputeSHA256Reader computes the SHA256 hash from a reader

func CreateTarGz

func CreateTarGz(outputPath string, files map[string]string) error

CreateTarGz creates a .tar.gz archive from a map of archive paths to local paths The files map is: archivePath -> localPath (e.g., "myapp/1.0.0/bin/myapp" -> "/tmp/myapp")

func ExtractTarGz

func ExtractTarGz(archivePath, destDir string) error

ExtractTarGz extracts a .tar.gz archive to a destination directory

func ExtractZip

func ExtractZip(archivePath, destDir string) error

ExtractZip extracts a .zip archive to a destination directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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