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 ¶
Types ¶
type CustomTransport ¶
type CustomTransport struct {
// contains filtered or unexported fields
}
func NewCustomTransport ¶
func NewCustomTransport(opts Options) *CustomTransport
type GitHubContentTransport ¶
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.