archive

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 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

func PullHTTP(ctx context.Context, a *artifact.Artifact, opts *HTTPOptions) (*artifact.PullResult, error)

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