Documentation
¶
Index ¶
- Constants
- Variables
- func Build(entryResolver EntryResolver, dependencyManager DependencyManager, ...) packit.BuildFunc
- func Detect(logger scribe.Emitter) packit.DetectFunc
- func GetRollforwardConstraints(versionStr string, rollForward string) ([]string, error)
- func ResolveWithRollforward(path string, version string, rollForward string, stack string) (postal.Dependency, error)
- type DependencyManager
- type EntryResolver
- type GlobalJson
- type SBOMGenerator
- type Sdk
Constants ¶
View Source
const ( DotnetDependency = "dotnet-sdk" DotnetSdkVersion = "BP_DOTNET_SDK_VERSION" DeprecatedFrameworkVersion = "BP_DOTNET_FRAMEWORK_VERSION" )
Variables ¶
View Source
var Priorities = []interface{}{ DotnetSdkVersion, DeprecatedFrameworkVersion, "buildpack.yml", "global.json", regexp.MustCompile(`.*\.(cs)|(fs)|(vb)proj`), "runtimeconfig.json", "", }
Functions ¶
func Build ¶
func Build(entryResolver EntryResolver, dependencyManager DependencyManager, sbomGenerator SBOMGenerator, logger scribe.Emitter, clock chronos.Clock, ) packit.BuildFunc
func GetRollforwardConstraints ¶ added in v1.6.0
func ResolveWithRollforward ¶ added in v1.6.0
Types ¶
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 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 GlobalJson ¶ added in v1.6.0
type GlobalJson struct {
Sdk *Sdk `json:"sdk,omitempty"`
}
func FindGlobalJson ¶ added in v1.6.0
func FindGlobalJson(dir string) (*GlobalJson, error)
type SBOMGenerator ¶ added in v0.7.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.