Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PullHTTP ¶
func PullHTTP(_ context.Context, a *artifact.Artifact, opts *HTTPOptions) (*artifact.PullResult, error)
PullHTTP downloads a compressed file from a URL and uncompresses it
func Uncompress ¶
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 }
Click to show internal directories.
Click to hide internal directories.