Documentation
¶
Index ¶
- func IsTarball(filename string) bool
- type Cache
- func New(binaryName string, archiveURL string, destDir string, version string, ...) *Cache
- func NewGoodhostsCache(version string, getVersion func() (string, error)) *Cache
- func NewOcCache(version string, getVersion func() (string, error)) *Cache
- func NewPodmanCache(version string, getVersion func() (string, error)) *Cache
- type VersionMismatchError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewGoodhostsCache ¶
func (*Cache) CacheBinary ¶
CacheBinary downloads and caches the requested binary into the CRC directory
func (*Cache) CheckVersion ¶ added in v1.13.0
func (*Cache) EnsureIsCached ¶
type VersionMismatchError ¶ added in v1.13.0
func (*VersionMismatchError) Error ¶ added in v1.13.0
func (e *VersionMismatchError) Error() string
Click to show internal directories.
Click to hide internal directories.