Documentation
¶
Index ¶
- Constants
- Variables
- func Build(entryResolver EntryResolver, dependencies DependencyManager, ...) packit.BuildFunc
- func Detect(buildpackYAMLParser VersionParser) packit.DetectFunc
- type BuildPlanMetadata
- type BuildPlanRefinery
- type BuildpackYAMLParser
- type DependencyManager
- type EntryResolver
- type PlanRefinery
- type VersionParser
Constants ¶
View Source
const ( DependencySHAKey = "dependency-sha" GoDependency = "go" GoLayerName = "go" )
Variables ¶
View Source
var Priorities = []interface{}{
"BP_GO_VERSION",
"buildpack.yml",
"go.mod",
}
Functions ¶
func Build ¶
func Build(entryResolver EntryResolver, dependencies DependencyManager, planRefinery PlanRefinery, clock chronos.Clock, logs scribe.Emitter) packit.BuildFunc
func Detect ¶
func Detect(buildpackYAMLParser VersionParser) packit.DetectFunc
Types ¶
type BuildPlanMetadata ¶
type BuildPlanRefinery ¶
type BuildPlanRefinery struct{}
func NewBuildPlanRefinery ¶
func NewBuildPlanRefinery() BuildPlanRefinery
func (BuildPlanRefinery) BillOfMaterials ¶
func (r BuildPlanRefinery) BillOfMaterials(dependency postal.Dependency) packit.BuildpackPlanEntry
type BuildpackYAMLParser ¶
type BuildpackYAMLParser struct{}
func NewBuildpackYAMLParser ¶
func NewBuildpackYAMLParser() BuildpackYAMLParser
func (BuildpackYAMLParser) ParseVersion ¶
func (p BuildpackYAMLParser) ParseVersion(path string) (string, error)
type DependencyManager ¶
type DependencyManager interface {
Resolve(path, id, version, stack string) (postal.Dependency, error)
Install(dependency postal.Dependency, cnbPath, layerPath string) error
}
type EntryResolver ¶
type EntryResolver interface {
Resolve(name string, entries []packit.BuildpackPlanEntry, priorites []interface{}) (packit.BuildpackPlanEntry, []packit.BuildpackPlanEntry)
MergeLayerTypes(name string, entries []packit.BuildpackPlanEntry) (launch bool, build bool)
}
type PlanRefinery ¶
type PlanRefinery interface {
BillOfMaterials(postal.Dependency) packit.BuildpackPlanEntry
}
type VersionParser ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.