downloadsource

package
v0.0.0-...-aa36d97 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFromHTTPS

func DownloadFromHTTPS(parsedURL *url.URL) (io.ReadCloser, string, error)

func DownloadFromS3

func DownloadFromS3(parsedURL *url.URL) (io.ReadCloser, string, error)

func ProcessTarGz

func ProcessTarGz(reader io.Reader, targetFile string, output output.Outputer) error

Types

type DownloadSourceRunner

type DownloadSourceRunner struct {
	// contains filtered or unexported fields
}

func New

func (*DownloadSourceRunner) Run

func (runner *DownloadSourceRunner) Run(params *Params) error

Download source code from a specified URI (S3 or HTTP/HTTPS) and unpacks it (.tar.gz). If a target file is specified, it will extract that specific file from the archive. Otherwise, it will list the files in the archive.

type Params

type Params struct {
	// contains filtered or unexported fields
}

func NewParams

func NewParams(sourceURI string, targetFile string) *Params

Jump to

Keyboard shortcuts

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