Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrVersionNotFound 版本不存在 ErrVersionNotFound = errors.New("version not found") // ErrPackageNotFound 版本包不存在 ErrPackageNotFound = errors.New("installation package not found") )
View Source
var ( // ErrUnsupportedChecksumAlgorithm 不支持的校验和算法 ErrUnsupportedChecksumAlgorithm = errors.New("unsupported checksum algorithm") // ErrChecksumNotMatched 校验和不匹配 ErrChecksumNotMatched = errors.New("file checksum does not match the computed checksum") // ErrChecksumFileNotFound 校验和文件不存在 ErrChecksumFileNotFound = errors.New("checksum file not found") )
Functions ¶
func NewDownloadError ¶
NewDownloadError 返回下载失败错误实例
func NewURLUnreachableError ¶
NewURLUnreachableError 返回URL不可达错误实例
Types ¶
type DownloadError ¶
type DownloadError struct {
// contains filtered or unexported fields
}
DownloadError 下载失败错误
type URLUnreachableError ¶
type URLUnreachableError struct {
// contains filtered or unexported fields
}
URLUnreachableError URL不可达错误
func (URLUnreachableError) Err ¶
func (e URLUnreachableError) Err() error
func (URLUnreachableError) Error ¶
func (e URLUnreachableError) Error() string
func (URLUnreachableError) URL ¶
func (e URLUnreachableError) URL() string
Click to show internal directories.
Click to hide internal directories.