utils

package
v0.14.27 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 17 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 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