Documentation ¶
Index ¶
- Constants
- Variables
- func Build(entryResolver EntryResolver, dependencyMapper DependencyMapper, ...) packit.BuildFunc
- func Detect(buildpackYMLParser BuildpackYMLParser) packit.DetectFunc
- type BuildpackYMLParser
- type DependencyManager
- type DependencyMapper
- type DotnetSymlinker
- type EntryResolver
- type LogEmitter
- 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, dependencyManager DependencyManager, dotnetSymlinker DotnetSymlinker, logger LogEmitter, clock chronos.Clock, ) packit.BuildFunc
func Detect ¶
func Detect(buildpackYMLParser BuildpackYMLParser) packit.DetectFunc
Types ¶
type BuildpackYMLParser ¶
type DependencyManager ¶
type DependencyManager interface { Resolve(path, id, version, stack string) (postal.Dependency, error) Deliver(dependency postal.Dependency, cnbPath, layerPath, platformPath string) error GenerateBillOfMaterials(dependencies ...postal.Dependency) []packit.BOMEntry }
type DependencyMapper ¶
type DotnetSymlinker ¶
type EntryResolver ¶
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 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.