Documentation
¶
Index ¶
- Constants
- Variables
- func Binary(binary, version, osName, archName, binaryURL string) (string, error)
- func CacheToDaemon(img string) (string, error)
- func CleanUpOlderPreloads()
- func CreateDstDownloadMock(_, dst string) error
- func DefaultISOURLs() []string
- func DefaultKubeBinariesURL() 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 Licenses(dir 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 SetAliyunMirror()
- 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 = "v18" // 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 )
Functions ¶
func CacheToDaemon ¶ added in v1.21.0
CacheToDaemon loads image from tarball in the local cache directory to the local docker daemon It returns the img that was loaded into the daemon If online it will be: image:tag@sha256 If offline it will be: image:tag
func CleanUpOlderPreloads ¶ added in v1.24.0
func CleanUpOlderPreloads()
CleanUpOlderPreloads deletes preload files belonging to older minikube versions checks the current preload version and then if the saved tar file is belongs to older minikube it will delete it in case of failure only logs to the user
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 DefaultKubeBinariesURL ¶ added in v1.25.0
func DefaultKubeBinariesURL() string
DefaultKubeBinariesURL returns a URL to kube binaries
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 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 SetAliyunMirror ¶ added in v1.24.0
func SetAliyunMirror()
SetAliyunMirror set the download host for Aliyun mirror
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.