utils

package
v0.0.0-...-46684da Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDataSHA256

func CalculateDataSHA256(ctx context.Context, data []byte) (string, error)

CalculateDataSHA256 calculates SHA256 hash of byte data

func CalculateFileSHA256

func CalculateFileSHA256(ctx context.Context, filePath string) (string, error)

CalculateFileSHA256 calculates SHA256 hash of a file

func DecompressGzipData

func DecompressGzipData(ctx context.Context, data []byte) ([]byte, error)

DecompressGzipData decompresses gzip data

func MapToTar

func MapToTar(ctx context.Context, files map[string][]byte) ([]byte, error)

MapToTar converts file mapping to tar format byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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