utils

package
v0.16.0-next.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(ctx context.Context, url string, dest string, httpClient *http.Client, headers map[string]string) error

func DownloadFileToBytes

func DownloadFileToBytes(ctx context.Context, url string, httpClient *http.Client, headers map[string]string) ([]byte, error)

func ExtractArchive

func ExtractArchive(file string, dst string) error

func ExtractTarballGz

func ExtractTarballGz(file string, dst string) error

func FileExists

func FileExists(name string) (bool, error)

func GPGSign added in v0.5.1

func GPGSign(dir, filename, signatureFile string, pgpPrivateKey []byte, detached bool) error

func GPGVerify added in v0.5.1

func GPGVerify(dir, filename, checksumFilename string, pgpPublicKey []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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