jdk

package
v0.0.0-...-5faa4f6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const MinJavaVersion = 11

Variables

This section is empty.

Functions

func DownloadJdk

func DownloadJdk(client *http.Client, d *Descriptor, logger *log.Logger) ([]byte, error)

func FetchRecommendedJdk

func FetchRecommendedJdk(client *http.Client, homeDir string, logger *log.Logger) (string, error)

func FindLocally

func FindLocally(minVersion int) (string, bool)

func GetJavaMajorVersion

func GetJavaMajorVersion(jdkPath, homeDir string) (version int, err error)

func JavaHome

func JavaHome() (string, bool)

func Verify

func Verify(client *http.Client, d *Descriptor, r io.Reader, logger *log.Logger) (bool, error)

Types

type Descriptor

type Descriptor struct {
	Platform string
	Arch     string
	Version  string
}

func (*Descriptor) String

func (d *Descriptor) String() string

type Error

type Error struct {
	*Descriptor
}

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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