sdk

package
v0.0.153 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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(oldName string, newName string) error

func GetConstrainedCompatibleSDK

func GetConstrainedCompatibleSDK(sdkVersion string, runtimetoSDK map[string][]string, compatibleDeps []*semver.Version) (string, error)

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 GetLatestCompatibleSDKDeps

func GetLatestCompatibleSDKDeps(sdkVersion string, context build.Build) ([]*semver.Version, error)

func GetRuntimetoSDKMap

func GetRuntimetoSDKMap(context build.Build) (map[string][]string, error)

func GetSDKFloatVersion

func GetSDKFloatVersion(version string) (string, error)

func IsCompatibleSDKOptionWithRuntime

func IsCompatibleSDKOptionWithRuntime(constraintVersion, sdkVersion string) (bool, error)

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 SelectRollStrategy(buildpackYAMLVersion, globalJSONVersion string) (bool, bool, error)

func SymlinkSharedFolder

func SymlinkSharedFolder(dotnetRoot, layerRoot string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL