cache

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTarball added in v1.13.0

func IsTarball(filename string) bool

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(binaryName string, archiveURL string, destDir string, version string, getVersion func() (string, error)) *Cache

func NewGoodhostsCache

func NewGoodhostsCache(version string, getVersion func() (string, error)) *Cache

func NewMachineDriverLibvirtCache added in v1.14.0

func NewMachineDriverLibvirtCache(version string, getVersion func() (string, error)) *Cache

func NewOcCache

func NewOcCache(version string, getVersion func() (string, error)) *Cache

func NewPodmanCache

func NewPodmanCache(version string, getVersion func() (string, error)) *Cache

func (*Cache) CacheBinary

func (c *Cache) CacheBinary() error

CacheBinary downloads and caches the requested binary into the CRC directory

func (*Cache) CheckVersion added in v1.13.0

func (c *Cache) CheckVersion() error

func (*Cache) EnsureIsCached

func (c *Cache) EnsureIsCached() error

func (*Cache) IsCached

func (c *Cache) IsCached() bool

type VersionMismatchError added in v1.13.0

type VersionMismatchError struct {
	ExpectedVersion string
	CurrentVersion  string
}

func (*VersionMismatchError) Error added in v1.13.0

func (e *VersionMismatchError) Error() string

Jump to

Keyboard shortcuts

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