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" // JREDependency is a build plan dependency indicating a requirement for a JRE. JREDependency string = "openjdk-jre" // LaunchContribution is a build plan dependency yet indicate a requirement for the dependency at launch time. LaunchContribution string = "launch" )
View Source
const JDKDependency = "openjdk-jdk"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JDK ¶
type JDK struct {
// contains filtered or unexported fields
}
JDK represents a JDK contribution by the buildpack.
func NewJDK ¶
func NewJDK(build libjavabuildpack.Build) (JDK, bool, error)
NewJDK creates a new JDK instance. OK is true if build plan contains "openjdk-jdk" dependency, otherwise false.
func (JDK) Contribute ¶
Contribute contributes an expanded JDK to a cache layer.
type JRE ¶
type JRE struct {
// contains filtered or unexported fields
}
JRE represents a JRE contribution by the buildpack.
func NewJRE ¶
func NewJRE(build libjavabuildpack.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 ¶
Contribute contributes an expanded JRE to a cache layer.
Click to show internal directories.
Click to hide internal directories.