Documentation ¶
Index ¶
- Constants
- Variables
- func Binary(binary, version, osName, archName string) (string, error)
- func CacheToDaemon(img string) error
- func CreateDstDownloadMock(src, dst string) error
- func DefaultISOURLs() []string
- func Driver(name string, destination string, v semver.Version) error
- func ISO(urls []string, skipChecksum bool) (string, error)
- func ImageExistsInCache(img string) bool
- func ImageExistsInDaemon(img string) bool
- func ImageToCache(img string) error
- func ImageToDaemon(img string) error
- func LocalISOResource(isoURL string) string
- func Preload(k8sVersion, containerRuntime, driverName string) error
- func PreloadChecksumPath(k8sVersion, containerRuntime string) string
- func PreloadExists(k8sVersion, containerRuntime, driverName string, forcePreload ...bool) bool
- func TarballName(k8sVersion, containerRuntime string) string
- func TarballPath(k8sVersion, containerRuntime string) string
Constants ¶
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 = "v11" // PreloadBucket is the name of the GCS bucket where preloaded volume tarballs exist PreloadBucket = "minikube-preloaded-volume-tarballs" )
Variables ¶
var DefaultJSONOutput getter.ProgressTracker = &jsonOutput{}
DefaultJSONOutput is a progress tracker with JSON output
var DefaultProgressBar getter.ProgressTracker = &progressBar{}
DefaultProgressBar is the default cheggaaa progress bar
var ( // DownloadMock is called instead of the download implementation if not nil. DownloadMock func(src, dst string) error = nil )
Functions ¶
func CacheToDaemon ¶ added in v1.21.0
CacheToDaemon loads image from tarball in the local cache directory to the local docker daemon
func CreateDstDownloadMock ¶ added in v1.21.0
CreateDstDownloadMock is the default mock implementation of download.
func DefaultISOURLs ¶
func DefaultISOURLs() []string
DefaultISOURLs returns a list of ISO URL's to consult by default, in priority order
func ImageExistsInCache ¶ added in v1.21.0
ImageExistsInCache if img exist in local cache directory
func ImageExistsInDaemon ¶ added in v1.21.0
ImageExistsInDaemon if img exist in local docker daemon
func ImageToCache ¶ added in v1.21.0
ImageToCache downloads img (if not present in cache) and writes it to the local cache directory
func ImageToDaemon ¶ added in v1.21.0
ImageToDaemon downloads img (if not present in daemon) and writes it to the local docker daemon
func LocalISOResource ¶
LocalISOResource returns a local file:// URI equivalent for a local or remote ISO path
func PreloadChecksumPath ¶
PreloadChecksumPath returns the local path to the cached checksum file
func PreloadExists ¶
PreloadExists returns true if there is a preloaded tarball that can be used
func TarballName ¶ added in v1.9.0
TarballName returns name of the tarball
func TarballPath ¶
TarballPath returns the local path to the cached preload tarball
Types ¶
This section is empty.