download

package
v0.0.1-0...-46c5078 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 29 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrChecksumMismatch = errors.New("checksum mismatch")

ErrChecksumMismatch is returned when the checksum does not match.

View Source
var ErrInvalidChecksumLine = errors.New("invalid checksum line")

ErrInvalidChecksumLine is returned when the checksum line is invalid.

View Source
var ErrNoAssetFound = errors.New("no matching asset found")
View Source
var ErrNoChecksum = errors.New("no checksum")

ErrNoChecksum is returned when there are no checksums.

View Source
var ErrNotVerifiedAssets = errors.New("not verified assets")

ErrNotVerifiedAssets is returned when there are no verified assets.

View Source
var ErrTooManyChecksums = errors.New("too many checksums")

ErrTooManyChecksums is returned when there are more than one checksum.

View Source
var ErrUnexpected = errors.New("unexpected error")

ErrUnexpected is returned when an unexpected error occurs.

View Source
var ErrUnknownChecksumAlgorithm = errors.New("unknown checksum algorithm")

ErrUnknownChecksumAlgorithm is returned when the checksum algorithm is unknown.

Functions

func Action

func Action(ctx context.Context, args Args) error

Types

type Args

type Args struct {
	install.Args
	Destination string
}

type Plan

type Plan struct {
	Assets []githubapi.Asset
}

func CreatePlan

func CreatePlan(ctx context.Context, args Args) (*Plan, error)

func (Plan) Download

func (p Plan) Download(ctx context.Context, args Args) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL