Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrManifestExpired = errors.New("manifest expired")
)
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Get(runtime, version string) (string, bool)
Set(runtime, version, path string) error
Path(runtime, version string) string
SetManifest(runtime string, manifest []Version) error
GetManifest(runtime string) ([]Version, error)
}
Cache manages downloaded runtimes
type Downloader ¶
Downloader handles downloading files
type Runtime ¶
type Runtime interface {
// Get downloads and installs the specified version of the runtime
// Returns the installation path
Get(ctx context.Context, version string) (string, error)
// GetLatest downloads and installs the latest stable version
GetLatest(ctx context.Context) (string, error)
// List returns available versions for the runtime
List(ctx context.Context) ([]Version, error)
// Name returns the name of the runtime (e.g., "go", "python", "node")
Name() string
}
Runtime represents a downloadable runtime environment
Click to show internal directories.
Click to hide internal directories.