cache

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileCache

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

FileCache implements a file-based cache for runtimes

func NewFileCache

func NewFileCache(baseDir string) (*FileCache, error)

NewFileCache creates a new file-based cache

func (*FileCache) Clean

func (c *FileCache) Clean(runtime string) error

Clean removes all cached versions of a runtime

func (*FileCache) Get

func (c *FileCache) Get(runtime, version string) (string, bool)

Get retrieves a cached runtime path

func (*FileCache) GetManifest

func (c *FileCache) GetManifest(runtime string) ([]types.Version, error)

func (*FileCache) Path

func (c *FileCache) Path(runtime, version string) string

Path returns the cache path for a runtime

func (*FileCache) Set

func (c *FileCache) Set(runtime, version, path string) error

Set stores a runtime path in the cache

func (*FileCache) SetManifest

func (c *FileCache) SetManifest(runtime string, manifest []types.Version) error

Jump to

Keyboard shortcuts

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