state

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	AvailableTools() ([]string, error)
	AvailableVersions(tool string) ([]string, error)
	RecommendedVersion(tool string) (string, error)
	Refresh(force bool) error
}

func NewCache

func NewCache(log *zap.Logger, localRoot string, settings *config.State) Cache

type State

type State interface {
	Fetch(target billy.Filesystem) error
	RecommendVersion(binary config.Binary) error
	AddVersions(binaries ...config.Binary) error
	DeleteVersions(binaries ...config.Binary) error
}

Jump to

Keyboard shortcuts

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