tools

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile added in v0.2.5

func DownloadFile(ctx context.Context, url, out string) error

func GetLatestTag added in v0.2.5

func GetLatestTag(ctx context.Context, owner, repo string) (string, error)

func GoVerboseFlag

func GoVerboseFlag() []string

GoVerboseFlag checks if 'Mage' was run with the verbose flag and if so returns the Go verbose flag '-v' as a slice of strings. An empty slice of strings is returned otherwise.

func Runtime

func Runtime() (string, bool)

Runtime attempts to find an available container runtime in the PATH. The path to the first available runtime is returned along with a boolean value indicating if any runtimes were found.

Types

type FailedRequestError added in v0.2.5

type FailedRequestError int

func (FailedRequestError) Error added in v0.2.5

func (e FailedRequestError) Error() string

Jump to

Keyboard shortcuts

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