java

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInstallationNotFound = errors.New("installation not found")
)

Functions

This section is empty.

Types

type Installation

type Installation struct {
	Name    string `json:"name"`
	Path    string `json:"path"`
	Arch    string `json:"arch"`
	Version int    `json:"version"`
}

func DiscoverJava

func DiscoverJava(executable, name string) (*Installation, error)

type Manager

type Manager interface {
	GetDefault() string
	SetDefault(name string) error

	Discover(name string) (*Installation, error)

	Installations() []string
	GetInstallation(name string) *Installation

	Save() error
}

func NewManager

func NewManager(dataDir string) (Manager, error)

Jump to

Keyboard shortcuts

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