Documentation ¶
Index ¶
- Constants
- func Build(parser ConfigurationParser, buildProcess BuildProcess, pathManager PathManager, ...) packit.BuildFunc
- func Detect(parser ConfigurationParser) packit.DetectFunc
- type BuildConfiguration
- type BuildConfigurationParser
- type BuildProcess
- type ConfigurationParser
- type Executable
- type GoBuildConfiguration
- type GoBuildProcess
- type GoPathManager
- type GoTargetManager
- type PathManager
- type SBOMGenerator
- type SourceDeleter
- type SourceRemover
- type TargetManager
Constants ¶
View Source
const ( TargetsLayerName = "targets" GoCacheLayerName = "gocache" WorkspaceSHAKey = "workspace_sha" )
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build( parser ConfigurationParser, buildProcess BuildProcess, pathManager PathManager, clock chronos.Clock, logs scribe.Emitter, sourceRemover SourceRemover, sbomGenerator SBOMGenerator, ) packit.BuildFunc
func Detect ¶
func Detect(parser ConfigurationParser) packit.DetectFunc
Types ¶
type BuildConfiguration ¶ added in v0.0.23
type BuildConfigurationParser ¶ added in v0.0.5
type BuildConfigurationParser struct {
// contains filtered or unexported fields
}
func NewBuildConfigurationParser ¶ added in v0.0.5
func NewBuildConfigurationParser(targetManager TargetManager) BuildConfigurationParser
func (BuildConfigurationParser) Parse ¶ added in v0.0.5
func (p BuildConfigurationParser) Parse(buildpackVersion, workingDir string) (BuildConfiguration, error)
type BuildProcess ¶
type BuildProcess interface {
Execute(config GoBuildConfiguration) (binaries []string, err error)
}
type ConfigurationParser ¶ added in v0.0.5
type ConfigurationParser interface {
Parse(buildpackVersion, workingDir string) (BuildConfiguration, error)
}
type Executable ¶
type GoBuildConfiguration ¶ added in v0.0.5
type GoBuildProcess ¶
type GoBuildProcess struct {
// contains filtered or unexported fields
}
func NewGoBuildProcess ¶
func NewGoBuildProcess(executable Executable, logs scribe.Emitter, clock chronos.Clock) GoBuildProcess
func (GoBuildProcess) Execute ¶
func (p GoBuildProcess) Execute(config GoBuildConfiguration) ([]string, error)
type GoPathManager ¶
type GoPathManager struct {
// contains filtered or unexported fields
}
func NewGoPathManager ¶
func NewGoPathManager(tempDir string) GoPathManager
func (GoPathManager) Setup ¶
func (m GoPathManager) Setup(workspace, importPath string) (string, string, error)
func (GoPathManager) Teardown ¶
func (m GoPathManager) Teardown(path string) error
type GoTargetManager ¶ added in v0.1.0
type GoTargetManager struct{}
func NewGoTargetManager ¶ added in v0.1.0
func NewGoTargetManager() GoTargetManager
func (GoTargetManager) CleanAndValidate ¶ added in v0.1.0
func (tm GoTargetManager) CleanAndValidate(inputTargets []string, workingDir string) ([]string, error)
func (GoTargetManager) GenerateDefaults ¶ added in v0.1.0
func (tm GoTargetManager) GenerateDefaults(workingDir string) ([]string, error)
type PathManager ¶
type SBOMGenerator ¶ added in v1.0.0
type SourceDeleter ¶
type SourceDeleter struct{}
func NewSourceDeleter ¶
func NewSourceDeleter() SourceDeleter
func (SourceDeleter) Clear ¶
func (d SourceDeleter) Clear(path string) error
type SourceRemover ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.