Documentation ¶
Index ¶
- Constants
- Variables
- func Build(entryResolver EntryResolver, dependencyMapper DependencyMapper, ...) packit.BuildFunc
- func Detect(buildpackYMLParser BuildpackYMLParser) packit.DetectFunc
- type BuildPlanRefinery
- type BuildpackYMLParser
- type DependencyManager
- type DependencyMapper
- type DotnetSymlinker
- type EntryResolver
- type LogEmitter
- type PlanRefinery
- type RuntimeToSdks
- type SDKVersionMapper
- type SdkVersionParser
- type Symlinker
Constants ¶
View Source
const (
DotnetDependency = "dotnet-sdk"
)
Variables ¶
View Source
var Priorities = []interface{}{
"RUNTIME_VERSION",
"buildpack.yml",
"global.json",
"runtimeconfig.json",
"",
}
Functions ¶
func Build ¶
func Build(entryResolver EntryResolver, dependencyMapper DependencyMapper, buildPlanRefinery BuildPlanRefinery, dependencyManager DependencyManager, dotnetSymlinker DotnetSymlinker, logger LogEmitter, clock chronos.Clock, ) packit.BuildFunc
func Detect ¶
func Detect(buildpackYMLParser BuildpackYMLParser) packit.DetectFunc
Types ¶
type BuildPlanRefinery ¶
type BuildPlanRefinery interface {
BillOfMaterial(dependency postal.Dependency) packit.BuildpackPlanEntry
}
type BuildpackYMLParser ¶
type DependencyManager ¶
type DependencyManager interface { Resolve(path, id, version, stack string) (postal.Dependency, error) Install(dependency postal.Dependency, cnbPath, layerPath string) error }
type DependencyMapper ¶
type DotnetSymlinker ¶
type EntryResolver ¶
type EntryResolver interface { Resolve(name string, entries []packit.BuildpackPlanEntry, priorites []interface{}) (packit.BuildpackPlanEntry, []packit.BuildpackPlanEntry) MergeLayerTypes(name string, entries []packit.BuildpackPlanEntry) (launch, build bool) }
type LogEmitter ¶
type LogEmitter struct { // Emitter is embedded and therefore delegates all of its functions to the // LogEmitter. scribe.Emitter }
func NewLogEmitter ¶
func NewLogEmitter(output io.Writer) LogEmitter
func (LogEmitter) Candidates ¶
func (e LogEmitter) Candidates(entries []packit.BuildpackPlanEntry)
func (LogEmitter) Environment ¶
func (l LogEmitter) Environment(env packit.Environment)
func (LogEmitter) SelectedDependency ¶
func (l LogEmitter) SelectedDependency(entry packit.BuildpackPlanEntry, dependency postal.Dependency, now time.Time)
type PlanRefinery ¶
type PlanRefinery struct{}
func NewPlanRefinery ¶
func NewPlanRefinery() PlanRefinery
func (PlanRefinery) BillOfMaterial ¶
func (r PlanRefinery) BillOfMaterial(dependency postal.Dependency) packit.BuildpackPlanEntry
type RuntimeToSdks ¶
type SDKVersionMapper ¶
type SDKVersionMapper struct {
// contains filtered or unexported fields
}
func NewSDKVersionMapper ¶
func NewSDKVersionMapper(logger LogEmitter) SDKVersionMapper
func (SDKVersionMapper) FindCorrespondingVersion ¶
func (r SDKVersionMapper) FindCorrespondingVersion(path, versionKey string) (string, error)
type SdkVersionParser ¶
type SdkVersionParser struct{}
func NewSdkVersionParser ¶
func NewSdkVersionParser() SdkVersionParser
Source Files ¶
Click to show internal directories.
Click to hide internal directories.