download

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src, dest string) error

func DownloadFile

func DownloadFile(srcURL string) (string, error)

func ExtractTarGz

func ExtractTarGz(tarPath, destDir string, stripComponents int) error

func ExtractZip

func ExtractZip(zipPath, destDir string, stripComponents int) error

Types

type GitHubRef

type GitHubRef struct {
	Owner   string
	Repo    string
	Branch  string
	Subpath string
}

func ParseGitHubURL

func ParseGitHubURL(raw string) (*GitHubRef, error)

func (*GitHubRef) ArchiveURL

func (r *GitHubRef) ArchiveURL() string

type SourceKind

type SourceKind int
const (
	SourceGitHub SourceKind = iota
	SourceZipURL
	SourceTarGzURL
	SourceLocalDir
	SourceLocalZipFile
	SourceUnknown
)

func InferSourceKind

func InferSourceKind(src string) SourceKind

Jump to

Keyboard shortcuts

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