fetch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAndUnpackTo

func DownloadAndUnpackTo(ctx context.Context, url string, destPath string) error

func DownloadBlobFromGitHub

func DownloadBlobFromGitHub(ctx context.Context, url string) ([]byte, error)

Types

type GitHubAuth

type GitHubAuth struct {
	Token string
}

type GitHubLicense

type GitHubLicense struct {
	Filename string `json:"name"`
	URL      string `json:"html_url"`
	Content  []byte `json:"content"`
	Sha      string `json:"sha"`
}

func DownloadLicenseFromGithub

func DownloadLicenseFromGithub(ctx context.Context, repoURL string, ref string) (*GitHubLicense, error)

Jump to

Keyboard shortcuts

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