Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredentialResolver ¶ added in v1.4.1
type CredentialResolver interface {
Resolve(ctx context.Context, protocol, host, path string) (username, password string, err error)
}
CredentialResolver resolves a username/password (token) for a host, used to authenticate downloads of private assets.
type GithubRelease ¶
type GithubRelease struct {
Assets []GithubReleaseAsset `json:"assets,omitempty"`
}
type GithubReleaseAsset ¶
type HTTPStatusError ¶
HTTPStatusError wraps HTTP status code errors for better error handling.
func (*HTTPStatusError) Error ¶
func (e *HTTPStatusError) Error() string
type Option ¶ added in v1.4.1
type Option func(*options)
Option configures a download.
func WithCredentialResolver ¶ added in v1.4.1
func WithCredentialResolver(resolver CredentialResolver) Option
WithCredentialResolver enables authenticated retries for private assets.
Click to show internal directories.
Click to hide internal directories.