cache

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 15 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(executableName string, archiveURL string, version string, getVersion func(string) (string, error)) *Cache

func NewAdminHelperCache added in v1.21.0

func NewAdminHelperCache() *Cache

func NewMachineDriverLibvirtCache added in v1.14.0

func NewMachineDriverLibvirtCache() *Cache

func (*Cache) CacheExecutable added in v1.20.0

func (c *Cache) CacheExecutable() error

CacheExecutable downloads and caches the requested executable 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) GetExecutableName added in v1.20.0

func (c *Cache) GetExecutableName() string

func (*Cache) GetExecutablePath added in v1.20.0

func (c *Cache) GetExecutablePath() string

func (*Cache) IsCached

func (c *Cache) IsCached() bool

type VersionMismatchError added in v1.13.0

type VersionMismatchError struct {
	ExecutableName  string
	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