Documentation ¶
Index ¶
- Constants
- Variables
- func TruncateSha(sha string) string
- type Analyzer
- type AnalyzerFactory
- type BuildEnv
- type Builder
- type Buildpack
- type BuildpackStore
- type Cache
- type CacheHandler
- type ConfigHandler
- type DefaultResolver
- type Detector
- type ExportOptions
- type Exporter
- type ImageHandler
- type LauncherConfig
- type LayerDir
- type LayerFactory
- type Logger
- type MultiError
- type Platform
- type RebaseReport
- type Rebaser
- type RegistryHandler
- type Resolver
- type Restorer
Constants ¶
View Source
const ( CodeDetectPass = 0 CodeDetectFail = 100 )
Variables ¶
View Source
var ( ErrFailedDetection = errors.New("no buildpacks participating") ErrBuildpack = errors.New("buildpack(s) failed with err") )
Functions ¶
func TruncateSha ¶
Types ¶
type Analyzer ¶
type Analyzer struct { PreviousImage imgutil.Image RunImage imgutil.Image Logger Logger SBOMRestorer layer.SBOMRestorer // Platform API < 0.7 Buildpacks []buildpack.GroupBuildpack Cache Cache LayerMetadataRestorer layer.MetadataRestorer RestoresLayerMetadata bool }
type AnalyzerFactory ¶ added in v0.14.1
type AnalyzerFactory struct {
// contains filtered or unexported fields
}
func NewAnalyzerFactory ¶ added in v0.14.1
func NewAnalyzerFactory(platformAPI *api.Version, cacheHandler CacheHandler, configHandler ConfigHandler, imageHandler ImageHandler, registryHandler RegistryHandler) *AnalyzerFactory
func (*AnalyzerFactory) NewAnalyzer ¶ added in v0.14.1
func (f *AnalyzerFactory) NewAnalyzer( additionalTags []string, cacheImageRef string, launchCacheDir string, layersDir string, legacyCacheDir string, legacyGroup buildpack.Group, legacyGroupPath string, outputImageRef string, previousImageRef string, runImageRef string, skipLayers bool, logger Logger, ) (*Analyzer, error)
type Builder ¶
type Builder struct { AppDir string LayersDir string PlatformDir string Platform Platform Group buildpack.Group Plan platform.BuildPlan Out, Err io.Writer Logger Logger BuildpackStore BuildpackStore }
func (*Builder) BuildConfig ¶ added in v0.10.0
func (b *Builder) BuildConfig() (buildpack.BuildConfig, error)
type Buildpack ¶
type Buildpack interface { Build(bpPlan buildpack.Plan, config buildpack.BuildConfig, bpEnv buildpack.BuildEnv) (buildpack.BuildResult, error) ConfigFile() *buildpack.Descriptor Detect(config *buildpack.DetectConfig, bpEnv buildpack.BuildEnv) buildpack.DetectRun }
type BuildpackStore ¶ added in v0.7.0
type CacheHandler ¶ added in v0.14.1
type ConfigHandler ¶ added in v0.14.1
type ConfigHandler interface {
ReadGroup(path string) ([]buildpack.GroupBuildpack, error)
}
type DefaultResolver ¶ added in v0.11.0
type DefaultResolver struct {
Logger Logger
}
func (*DefaultResolver) Resolve ¶ added in v0.11.0
func (r *DefaultResolver) Resolve(done []buildpack.GroupBuildpack, detectRuns *sync.Map) ([]buildpack.GroupBuildpack, []platform.BuildPlanEntry, error)
Resolve aggregates the detect output for a group of buildpacks and tries to resolve a build plan for the group. If any required buildpack in the group failed detection or a build plan cannot be resolved, it returns an error.
type Detector ¶ added in v0.11.0
type Detector struct { buildpack.DetectConfig Platform Platform Resolver Resolver Runs *sync.Map Store BuildpackStore }
func NewDetector ¶ added in v0.11.0
type ExportOptions ¶ added in v0.7.0
type ExportOptions struct { LayersDir string AppDir string WorkingImage imgutil.Image RunImageRef string OrigMetadata platform.LayersMetadata AdditionalNames []string LauncherConfig LauncherConfig Stack platform.StackMetadata Project platform.ProjectMetadata DefaultProcessType string }
type Exporter ¶
type Exporter struct { Buildpacks []buildpack.GroupBuildpack LayerFactory LayerFactory Logger Logger PlatformAPI *api.Version }
func (*Exporter) Export ¶
func (e *Exporter) Export(opts ExportOptions) (platform.ExportReport, error)
type ImageHandler ¶ added in v0.14.1
type LauncherConfig ¶
type LauncherConfig struct { Path string Metadata platform.LauncherMetadata }
type LayerFactory ¶ added in v0.8.1
type MultiError ¶
type MultiError struct {
Errors []error
}
func (*MultiError) Error ¶
func (me *MultiError) Error() string
type RebaseReport ¶ added in v0.9.0
type RebaseReport struct {
Image platform.ImageReport `toml:"image"`
}
type RegistryHandler ¶ added in v0.14.1
type Resolver ¶ added in v0.11.0
type Resolver interface {
Resolve(done []buildpack.GroupBuildpack, detectRuns *sync.Map) ([]buildpack.GroupBuildpack, []platform.BuildPlanEntry, error)
}
type Restorer ¶
type Restorer struct { LayersDir string Logger Logger Buildpacks []buildpack.GroupBuildpack LayerMetadataRestorer layer.MetadataRestorer // Platform API >= 0.7 LayersMetadata platform.LayersMetadata // Platform API >= 0.7 Platform Platform SBOMRestorer layer.SBOMRestorer }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
testmock
Package testmock is a generated GoMock package.
|
Package testmock is a generated GoMock package. |
internal
|
|
testmock
Package testmock is a generated GoMock package.
|
Package testmock is a generated GoMock package. |
Package testmock is a generated GoMock package.
|
Package testmock is a generated GoMock package. |
tools
|
|
Click to show internal directories.
Click to hide internal directories.