jdk

package
v0.0.0-...-d2e13e4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultJdkMajorVersion = "8"
	DefaultVendor          = "openjdk"
	DefaultJdkBaseUrl      = "https://lang-jvm.s3.amazonaws.com/jdk"
)

Variables

View Source
var (
	DefaultVersionStrings = map[string]string{
		"8":  "1.8.0_212",
		"9":  "9.0.4",
		"10": "10.0.2",
		"11": "11.0.3",
		"12": "12.0.1",
	}
)

Functions

func CreateProfileScripts

func CreateProfileScripts(buildpackDir string, layer layers.Layer) error

func GetVersionUrl

func GetVersionUrl(v Version) (string, error)

func InstallCerts

func InstallCerts(jdk Jvm) error

func IsValidJdkUrl

func IsValidJdkUrl(url string) bool

Types

type Installer

type Installer struct {
	In           []byte
	Out, Err     io.Writer
	Version      Version
	BuildpackDir string
	Log          logger.Logger
}

func (*Installer) Init

func (i *Installer) Init(appDir string) error

func (*Installer) Install

func (i *Installer) Install(appDir string, layersDir layers.Layers) (Jvm, error)

type Jvm

type Jvm struct {
	Version Version `toml:"version"`
	Home    string  `toml:"home"`
}

type Version

type Version struct {
	// Major should be an int but https://github.com/go-yaml/yaml/issues/430
	Major  string `toml:"major"`
	Tag    string `toml:"tag"`
	Vendor string `toml:"vendor"`
}

func ParseVersionString

func ParseVersionString(v string) (Version, error)

Jump to

Keyboard shortcuts

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