Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeLabel(image imgutil.Image, label string, v interface{}) error
- func ReadGroup(path string) (buildpack.Group, error)
- func ReadOrder(path string) (buildpack.Order, error)
- func TruncateSha(sha string) string
- func WriteTOML(path string, data interface{}) error
- type Analyzer
- type BuildEnv
- type Builder
- type Buildpack
- type BuildpackStore
- type Cache
- type DefaultResolver
- type Detector
- type ExportOptions
- type Exporter
- type LauncherConfig
- type LayerFactory
- type Logger
- type MultiError
- type RebaseReport
- type Rebaser
- 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 { Buildpacks []buildpack.GroupBuildpack LayersDir string Logger Logger SkipLayers bool }
type Builder ¶
type Builder struct { AppDir string LayersDir string PlatformDir string PlatformAPI *api.Version Env BuildEnv 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) (buildpack.BuildResult, error) ConfigFile() *buildpack.Descriptor Detect(config *buildpack.DetectConfig) buildpack.DetectRun }
type BuildpackStore ¶ added in v0.7.0
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 Resolver Resolver Runs *sync.Map Store BuildpackStore }
func NewDetector ¶ added in v0.11.0
func NewDetector(config buildpack.DetectConfig, buildpacksDir string) (*Detector, error)
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 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 Resolver ¶ added in v0.11.0
type Resolver interface {
Resolve(done []buildpack.GroupBuildpack, detectRuns *sync.Map) ([]buildpack.GroupBuildpack, []platform.BuildPlanEntry, error)
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
testmock
Package testmock is a generated GoMock package.
|
Package testmock is a generated GoMock package. |
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. |
Click to show internal directories.
Click to hide internal directories.