download

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 30 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PreloadVersion is the current version of the preloaded tarball
	//
	// NOTE: You may need to bump this version up when upgrading auxiliary docker images
	PreloadVersion = "v6"
	// PreloadBucket is the name of the GCS bucket where preloaded volume tarballs exist
	PreloadBucket = "minikube-preloaded-volume-tarballs"
)

Variables

View Source
var DefaultJSONOutput getter.ProgressTracker = &jsonOutput{}

DefaultJSONOutput is a progress tracker with JSON output

View Source
var DefaultProgressBar getter.ProgressTracker = &progressBar{}

DefaultProgressBar is the default cheggaaa progress bar

Functions

func Binary

func Binary(binary, version, osName, archName string) (string, error)

Binary will download a binary onto the host

func DefaultISOURLs

func DefaultISOURLs() []string

DefaultISOURLs returns a list of ISO URL's to consult by default, in priority order

func Driver

func Driver(name string, destination string, v semver.Version) error

Driver downloads an arbitrary driver

func EnableMock added in v1.10.0

func EnableMock(b bool)

EnableMock allows tests to selectively enable if downloads are mocked

func ISO

func ISO(urls []string, skipChecksum bool) (string, error)

ISO downloads and returns the path to the downloaded ISO

func LocalISOResource

func LocalISOResource(isoURL string) string

LocalISOResource returns a local file:// URI equivalent for a local or remote ISO path

func Preload

func Preload(k8sVersion, containerRuntime string) error

Preload caches the preloaded images tarball on the host machine

func PreloadChecksumPath

func PreloadChecksumPath(k8sVersion, containerRuntime string) string

PreloadChecksumPath returns the local path to the cached checksum file

func PreloadExists

func PreloadExists(k8sVersion, containerRuntime string, forcePreload ...bool) bool

PreloadExists returns true if there is a preloaded tarball that can be used

func TarballName added in v1.9.0

func TarballName(k8sVersion, containerRuntime string) string

TarballName returns name of the tarball

func TarballPath

func TarballPath(k8sVersion, containerRuntime string) string

TarballPath returns the local path to the cached preload tarball

Types

This section is empty.

Jump to

Keyboard shortcuts

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