Documentation
¶
Index ¶
- Constants
- func CreateValidSymlink(oldName string, newName string) error
- func GetConstrainedCompatibleSDK(sdkVersion string, runtimetoSDK map[string][]string, ...) (string, error)
- func GetConstrainedCompatibleSDKForGlobalJson(sdkVersion string, compatibleDeps []*semver.Version) (string, error)
- func GetLatestCompatibleSDKDeps(sdkVersion string, context build.Build) ([]*semver.Version, error)
- func GetRuntimetoSDKMap(context build.Build) (map[string][]string, error)
- func GetSDKFloatVersion(version string) (string, error)
- func IsCompatibleSDKOptionWithRuntime(constraintVersion, sdkVersion string) (bool, error)
- func SelectRollStrategy(buildpackYAMLVersion, globalJSONVersion string) (bool, bool, error)
- func SymlinkSharedFolder(dotnetRoot, layerRoot string) error
- type Contributor
- type RuntimeConfig
Constants ¶
View Source
const DotnetSDK = "dotnet-sdk"
View Source
const (
IncompatibleGlobalAndBuildpackYml = "the versions specfied in global.json and buildpack.yml are incompatible, please reconfigure"
)
Variables ¶
This section is empty.
Functions ¶
func CreateValidSymlink ¶
func GetConstrainedCompatibleSDKForGlobalJson ¶
func GetConstrainedCompatibleSDKForGlobalJson(sdkVersion string, compatibleDeps []*semver.Version) (string, error)
This function gets the latest sdk that in the in the same feature line as the version specified in global.json. The feature line is indicated by the hundreds place of the sdk path for example in sdk 2.2.805 the feture line in 8 This is how global.json is supposed to roll forward according to Dotnet
func GetSDKFloatVersion ¶
func IsCompatibleSDKOptionWithRuntime ¶
Will make sure that version constraint provided by user is compatible with app constraint (i.e. the version provided in buildpack.yml or global.json is the same major.minor as the csproj/runtimeconfig major minor)
func SelectRollStrategy ¶
func SymlinkSharedFolder ¶
Types ¶
type Contributor ¶
type Contributor struct {
// contains filtered or unexported fields
}
func NewContributor ¶
func NewContributor(context build.Build) (Contributor, bool, error)
func (Contributor) Contribute ¶
func (c Contributor) Contribute() error
type RuntimeConfig ¶
type RuntimeConfig struct { BinaryName string Version string // contains filtered or unexported fields }
func NewRuntimeConfig ¶
func NewRuntimeConfig(appRoot string) (*RuntimeConfig, error)
func (*RuntimeConfig) HasASPNetDependency ¶
func (r *RuntimeConfig) HasASPNetDependency() bool
func (*RuntimeConfig) HasApplyPatches ¶
func (r *RuntimeConfig) HasApplyPatches() bool
func (*RuntimeConfig) HasExecutable ¶
func (r *RuntimeConfig) HasExecutable() (bool, error)
func (*RuntimeConfig) HasRuntimeDependency ¶
func (r *RuntimeConfig) HasRuntimeDependency() bool
func (*RuntimeConfig) IsPresent ¶
func (r *RuntimeConfig) IsPresent() bool
Click to show internal directories.
Click to hide internal directories.