jre

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BuildContribution is a build plan dependency key indicating a requirement for the dependency at build time.
	BuildContribution string = "build"

	// Dependency is a build plan dependency indicating a requirement for a JRE.
	Dependency string = "openjdk-jre"

	// LaunchContribution is a build plan dependency yet indicate a requirement for the dependency at launch time.
	LaunchContribution string = "launch"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JRE

type JRE struct {
	// Dependency is the dependency to be contributed.
	Dependency buildpack.Dependency
	// contains filtered or unexported fields
}

JRE represents a JRE contribution by the buildpack.

func NewJRE

func NewJRE(build build.Build) (JRE, bool, error)

NewJRE creates a new JRE instance. OK is true if build plan contains "openjdk-jre" dependency, otherwise false.

func (JRE) Contribute

func (j JRE) Contribute() error

Contribute contributes an expanded JRE to a cache layer.

Jump to

Keyboard shortcuts

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