Documentation ¶
Index ¶
- Constants
- func Build(entryResolver EntryResolver, configurationManager ConfigurationManager, ...) packit.BuildFunc
- func Detect() packit.DetectFunc
- func UpdateNpmCacheLayer(logger scribe.Emitter, workingDir string, cacheLayer packit.Layer) (packit.Layer, error)
- 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 LinkedModuleResolver
- type Linker
- type Lockfile
- type PackageManagerConfigurationManager
- type PruneBuildProcess
- type PruneProcess
- type RebuildBuildProcess
- type SBOMGenerator
- type Summer
- type SymlinkResolver
- type Symlinker
- type VersionParser
Constants ¶
View Source
const ( NodeModules = "node_modules" Node = "node" Npm = "npm" LayerNameNodeModules = "modules" LayerNameCache = "npm-cache" )
View Source
const NODE_MODULES_CACHE = "node_modules_cache"
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(entryResolver EntryResolver, configurationManager ConfigurationManager, buildManager BuildManager, pruneProcess PruneProcess, clock chronos.Clock, logger scribe.Emitter, sbomGenerator SBOMGenerator, linker Symlinker, environment EnvironmentConfig, symlinkResolver SymlinkResolver, ) packit.BuildFunc
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 string) (BuildProcess, bool, error)
}
type BuildPlanMetadata ¶
type BuildProcess ¶
type BuildProcessResolver ¶
type BuildProcessResolver struct {
// contains filtered or unexported fields
}
func NewBuildProcessResolver ¶
func NewBuildProcessResolver(logger scribe.Logger, rebuild, install, ci BuildProcess) BuildProcessResolver
func (BuildProcessResolver) Resolve ¶
func (r BuildProcessResolver) Resolve(workingDir string) (BuildProcess, bool, 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 ParseEnvironment ¶ added in v1.1.0
func ParseEnvironment(path string, variables []string) (Environment, error)
func (Environment) LookupBool ¶ added in v1.1.0
func (e Environment) LookupBool(key string) (bool, error)
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 LinkedModuleResolver ¶ added in v1.1.0
type LinkedModuleResolver struct {
// contains filtered or unexported fields
}
func NewLinkedModuleResolver ¶ added in v1.1.0
func NewLinkedModuleResolver(linker Symlinker) LinkedModuleResolver
func (LinkedModuleResolver) Copy ¶ added in v1.1.2
func (r LinkedModuleResolver) Copy(lockfilePath, sourceLayerPath, targetLayerPath string) error
func (LinkedModuleResolver) ParseLockfile ¶ added in v1.1.2
func (r LinkedModuleResolver) ParseLockfile(lockfilePath string) (Lockfile, error)
func (LinkedModuleResolver) Resolve ¶ added in v1.1.0
func (r LinkedModuleResolver) Resolve(lockfilePath, layerPath 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, defaultPath string) PackageManagerConfigurationManager
func (PackageManagerConfigurationManager) DeterminePath ¶ added in v0.9.0
func (p PackageManagerConfigurationManager) DeterminePath(typ, platformDir, entry string) (string, error)
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 SymlinkResolver ¶ added in v1.1.0
type VersionParser ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.