archive

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArchive

func IsArchive(filePath string) bool

func PullHTTP

PullHTTP downloads a compressed file from a URL and uncompresses it

func Uncompress

func Uncompress(filePath, dir string) error

Uncompress takes a file path and uncompresses it based on its extension. Supported extensions: zip, tgz, tar.gz

Types

type HTTPOptions

type HTTPOptions struct {
	Downloader artifact.Downloader
	Uncompress func(src, dest string) error
}

Jump to

Keyboard shortcuts

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