Documentation ¶
Index ¶
- Variables
- func Download(ctx context.Context, src, dst, pwd string, opts Options) (string, error)
- func DownloadToTempDir(ctx context.Context, src string, opts Options) (string, error)
- func NewGitHubTransport(u *url.URL, insecure bool, token string) http.RoundTripper
- type Auth
- type CustomTransport
- type GitHubContentTransport
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkipDownload = errors.New("skip download")
Functions ¶
func DownloadToTempDir ¶
DownloadToTempDir downloads the configured source to a temp dir.
func NewGitHubTransport ¶ added in v0.54.0
Types ¶
type CustomTransport ¶ added in v0.54.0
type CustomTransport struct {
// contains filtered or unexported fields
}
func NewCustomTransport ¶ added in v0.54.0
func NewCustomTransport(opts Options) *CustomTransport
type GitHubContentTransport ¶ added in v0.54.0
type GitHubContentTransport struct {
// contains filtered or unexported fields
}
GitHubContentTransport is a round tripper for downloading the GitHub content.
Click to show internal directories.
Click to hide internal directories.