Documentation ¶
Index ¶
- Constants
- func Build(projectPathParser PathParser, entryResolver EntryResolver, ...) packit.BuildFunc
- func Detect(projectPathParser PathParser, packageJSONParser VersionParser) packit.DetectFunc
- type BindingResolver
- type BuildManager
- type BuildPlanMetadata
- type BuildProcess
- type BuildProcessResolver
- type CIBuildProcess
- type ConfigurationManager
- type EntryResolver
- type Environment
- type EnvironmentConfig
- type Executable
- type InstallBuildProcess
- type PackageJSONParser
- type PackageManagerConfigurationManager
- type PathParser
- type ProjectPathParser
- type PruneBuildProcess
- type PruneProcess
- type RebuildBuildProcess
- type SBOMGenerator
- type Summer
- type VersionParser
Constants ¶
View Source
const ( NodeModules = "node_modules" Node = "node" Npm = "npm" LayerNameNodeModules = "modules" LayerNameCache = "npm-cache" )
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(projectPathParser PathParser, entryResolver EntryResolver, configurationManager ConfigurationManager, buildManager BuildManager, pruneProcess PruneProcess, clock chronos.Clock, logger scribe.Emitter, sbomGenerator SBOMGenerator, tmpDir string, ) packit.BuildFunc
func Detect ¶
func Detect(projectPathParser PathParser, packageJSONParser VersionParser) packit.DetectFunc
Types ¶
type BindingResolver ¶ added in v0.7.0
type BindingResolver interface {
Resolve(typ, provider, platformDir string) ([]servicebindings.Binding, error)
}
type BuildManager ¶
type BuildManager interface {
Resolve(workingDir, cacheDir string) (BuildProcess, error)
}
type BuildPlanMetadata ¶
type BuildProcess ¶
type BuildProcessResolver ¶
type BuildProcessResolver struct {
// contains filtered or unexported fields
}
func NewBuildProcessResolver ¶
func NewBuildProcessResolver(executable Executable, summer Summer, environment EnvironmentConfig, logger scribe.Logger) BuildProcessResolver
func (BuildProcessResolver) Resolve ¶
func (r BuildProcessResolver) Resolve(workingDir, cacheDir string) (BuildProcess, error)
type CIBuildProcess ¶
type CIBuildProcess struct {
// contains filtered or unexported fields
}
func NewCIBuildProcess ¶
func NewCIBuildProcess(executable Executable, summer Summer, environment EnvironmentConfig, logger scribe.Logger) CIBuildProcess
type ConfigurationManager ¶ added in v0.9.0
type EntryResolver ¶ added in v0.9.0
type Environment ¶ added in v0.2.6
type Environment struct {
// contains filtered or unexported fields
}
func NewEnvironment ¶ added in v0.2.6
func NewEnvironment() Environment
func (Environment) GetValue ¶ added in v0.2.6
func (e Environment) GetValue(key string) string
type EnvironmentConfig ¶ added in v0.2.6
type Executable ¶
type InstallBuildProcess ¶
type InstallBuildProcess struct {
// contains filtered or unexported fields
}
func NewInstallBuildProcess ¶
func NewInstallBuildProcess(executable Executable, environment EnvironmentConfig, logger scribe.Logger) InstallBuildProcess
type PackageJSONParser ¶
type PackageJSONParser struct{}
func NewPackageJSONParser ¶
func NewPackageJSONParser() PackageJSONParser
func (PackageJSONParser) ParseVersion ¶
func (p PackageJSONParser) ParseVersion(path string) (string, error)
type PackageManagerConfigurationManager ¶ added in v0.9.0
type PackageManagerConfigurationManager struct {
// contains filtered or unexported fields
}
func NewPackageManagerConfigurationManager ¶ added in v0.9.0
func NewPackageManagerConfigurationManager(bindingResolver BindingResolver, logs scribe.Emitter) PackageManagerConfigurationManager
func (PackageManagerConfigurationManager) DeterminePath ¶ added in v0.9.0
func (p PackageManagerConfigurationManager) DeterminePath(typ, platformDir, entry string) (string, error)
type PathParser ¶ added in v0.2.7
type ProjectPathParser ¶ added in v0.2.7
type ProjectPathParser struct{}
ProjectPathParser provides a mechanism for determining the proper working directory for the build process.
func NewProjectPathParser ¶ added in v0.2.7
func NewProjectPathParser() ProjectPathParser
NewProjectPathParser creates an instance of a ProjectPathParser.
type PruneBuildProcess ¶ added in v0.9.0
type PruneBuildProcess struct {
// contains filtered or unexported fields
}
func NewPruneBuildProcess ¶ added in v0.9.0
func NewPruneBuildProcess(executable Executable, environment EnvironmentConfig, logger scribe.Logger) PruneBuildProcess
type PruneProcess ¶ added in v0.9.0
type RebuildBuildProcess ¶
type RebuildBuildProcess struct {
// contains filtered or unexported fields
}
func NewRebuildBuildProcess ¶
func NewRebuildBuildProcess(executable Executable, summer Summer, environment EnvironmentConfig, logger scribe.Logger) RebuildBuildProcess
type SBOMGenerator ¶ added in v0.8.0
type VersionParser ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.