java

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PackageVersions is a map of Java Runtime download links
	PackageVersions = map[int]map[string]map[string]string{
		21: {
			"linux": {
				"amd64": "https://aka.ms/download-jdk/microsoft-jdk-21.0.4-linux-x64.tar.gz",
				"arm64": "https://aka.ms/download-jdk/microsoft-jdk-21.0.4-linux-aarch64.tar.gz",
			},
		},
		17: {
			"linux": {
				"amd64": "https://aka.ms/download-jdk/microsoft-jdk-17.0.7-linux-x64.tar.gz",
				"arm64": "https://aka.ms/download-jdk/microsoft-jdk-17.0.7-linux-aarch64.tar.gz",
			},
		},
		11: {
			"linux": {
				"amd64": "https://aka.ms/download-jdk/microsoft-jdk-11.0.19-linux-x64.tar.gz",
				"arm64": "https://aka.ms/download-jdk/microsoft-jdk-11.0.19-linux-aarch64.tar.gz",
			},
		},
	}
)

Functions

func Download

func Download(ctx context.Context, v int, arch, osName string, timeout time.Duration) (string, error)

Download downloads JVM package

func Install

func Install(ctx context.Context, dest string, v int, arch, osName string, timeout time.Duration) (string, error)

Install downloads and unpack JDK to destination folder

Types

This section is empty.

Jump to

Keyboard shortcuts

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