Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidChecksumFile = errors.New("invalid checksum file")
View Source
var ErrNoCheckSumAsset = errors.New("no checksum asset found")
Functions ¶
This section is empty.
Types ¶
type CheckSumValidator ¶
type CheckSumValidator interface {
IsCheckSumValid(ctx context.Context, binary string, checksums *Info, downloadedChecksum string) bool
}
func NewCheckSumValidator ¶
func NewCheckSumValidator(opts ...ValidatorOption) CheckSumValidator
type DownloadOpt ¶
type DownloadOpt func(*checksumDownloader)
func WithAssetSuffix ¶
func WithAssetSuffix(suffix string) DownloadOpt
type Downloader ¶
func NewCheckSumDownloader ¶
func NewCheckSumDownloader(opts ...DownloadOpt) Downloader
type ValidatorOption ¶
type ValidatorOption func(*validator)
func WithArch ¶
func WithArch(a string) ValidatorOption
func WithOS ¶
func WithOS(os string) ValidatorOption
Click to show internal directories.
Click to hide internal directories.