Documentation ¶
Index ¶
- Constants
- type AnalyzedMetadata
- type BuildMetadata
- type BuildPlan
- type BuildPlanEntry
- type BuildReport
- type CacheMetadata
- type DefaultExiter
- type Exiter
- type ExportReport
- type GitMetadata
- type ImageIdentifier
- type ImageReport
- type LauncherMetadata
- type LayerMetadata
- type LayersMetadata
- type LayersMetadataCompat
- type LegacyExiter
- type LifecycleExitError
- type Platform
- type ProjectMetadata
- type ProjectSource
- type RunImageMetadata
- type SourceMetadata
- type StackMetadata
- type StackRunImageMetadata
Constants ¶
View Source
const ( BuildMetadataLabel = "io.buildpacks.build.metadata" LayerMetadataLabel = "io.buildpacks.lifecycle.metadata" ProjectMetadataLabel = "io.buildpacks.project.metadata" StackIDLabel = "io.buildpacks.stack.id" MixinsLabel = "io.buildpacks.stack.mixins" )
View Source
const CodeFailed = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzedMetadata ¶
type AnalyzedMetadata struct { PreviousImage *ImageIdentifier `toml:"image"` Metadata LayersMetadata `toml:"metadata"` RunImage *ImageIdentifier `toml:"run-image,omitempty"` }
type BuildMetadata ¶
type BuildMetadata struct { BOM []buildpack.BOMEntry `toml:"bom,omitempty" json:"bom"` Buildpacks []buildpack.GroupBuildpack `toml:"buildpacks" json:"buildpacks"` Labels []buildpack.Label `toml:"labels" json:"-"` Launcher LauncherMetadata `toml:"-" json:"launcher"` Processes []launch.Process `toml:"processes" json:"processes"` Slices []layers.Slice `toml:"slices" json:"-"` BuildpackDefaultProcessType string `toml:"buildpack-default-process-type,omitempty" json:"buildpack-default-process-type,omitempty"` PlatformAPI *api.Version `toml:"-" json:"-"` }
func (*BuildMetadata) MarshalJSON ¶ added in v0.14.0
func (md *BuildMetadata) MarshalJSON() ([]byte, error)
func (BuildMetadata) ToLaunchMD ¶
func (md BuildMetadata) ToLaunchMD() launch.Metadata
type BuildPlan ¶
type BuildPlan struct {
Entries []BuildPlanEntry `toml:"entries"`
}
type BuildPlanEntry ¶
type BuildPlanEntry struct { Providers []buildpack.GroupBuildpack `toml:"providers"` Requires []buildpack.Require `toml:"requires"` }
func (BuildPlanEntry) NoOpt ¶
func (be BuildPlanEntry) NoOpt() BuildPlanEntry
type BuildReport ¶
type CacheMetadata ¶
type CacheMetadata struct { BOM LayerMetadata `json:"sbom"` Buildpacks []buildpack.LayersMetadata `json:"buildpacks"` }
func (*CacheMetadata) MetadataForBuildpack ¶
func (cm *CacheMetadata) MetadataForBuildpack(id string) buildpack.LayersMetadata
type DefaultExiter ¶ added in v0.13.2
type DefaultExiter struct{}
func (*DefaultExiter) CodeFor ¶ added in v0.13.2
func (e *DefaultExiter) CodeFor(errType LifecycleExitError) int
type Exiter ¶ added in v0.13.2
type Exiter interface {
CodeFor(errType LifecycleExitError) int
}
type ExportReport ¶
type ExportReport struct { Build BuildReport `toml:"build,omitempty"` Image ImageReport `toml:"image"` }
type GitMetadata ¶
type ImageIdentifier ¶
type ImageIdentifier struct {
Reference string `toml:"reference"`
}
FIXME: fix key names to be accurate in the daemon case
type ImageReport ¶
type LauncherMetadata ¶
type LauncherMetadata struct { Version string `json:"version"` Source SourceMetadata `json:"source"` }
type LayerMetadata ¶
type LayerMetadata struct {
SHA string `json:"sha" toml:"sha"`
}
type LayersMetadata ¶
type LayersMetadata struct { App []LayerMetadata `json:"app" toml:"app"` BOM *LayerMetadata `json:"sbom,omitempty" toml:"sbom,omitempty"` Buildpacks []buildpack.LayersMetadata `json:"buildpacks" toml:"buildpacks"` Config LayerMetadata `json:"config" toml:"config"` Launcher LayerMetadata `json:"launcher" toml:"launcher"` ProcessTypes LayerMetadata `json:"process-types" toml:"process-types"` RunImage RunImageMetadata `json:"runImage" toml:"run-image"` Stack StackMetadata `json:"stack" toml:"stack"` }
NOTE: This struct MUST be kept in sync with `LayersMetadataCompat`
func (*LayersMetadata) MetadataForBuildpack ¶
func (m *LayersMetadata) MetadataForBuildpack(id string) buildpack.LayersMetadata
type LayersMetadataCompat ¶
type LayersMetadataCompat struct { App interface{} `json:"app" toml:"app"` BOM *LayerMetadata `json:"sbom,omitempty" toml:"sbom,omitempty"` Buildpacks []buildpack.LayersMetadata `json:"buildpacks" toml:"buildpacks"` Config LayerMetadata `json:"config" toml:"config"` Launcher LayerMetadata `json:"launcher" toml:"launcher"` ProcessTypes LayerMetadata `json:"process-types" toml:"process-types"` RunImage RunImageMetadata `json:"runImage" toml:"run-image"` Stack StackMetadata `json:"stack" toml:"stack"` }
NOTE: This struct MUST be kept in sync with `LayersMetadata`. It exists for situations where the `App` field type cannot be guaranteed, yet the original struct data must be maintained.
type LegacyExiter ¶ added in v0.13.2
type LegacyExiter struct{}
func (*LegacyExiter) CodeFor ¶ added in v0.13.2
func (e *LegacyExiter) CodeFor(errType LifecycleExitError) int
type LifecycleExitError ¶ added in v0.13.2
type LifecycleExitError int
const ( FailedDetect LifecycleExitError = iota FailedDetectWithErrors // no buildpacks detected DetectError // no buildpacks detected and at least one errored AnalyzeError // generic analyze error RestoreError // generic restore error FailedBuildWithErrors // buildpack error during /bin/build BuildError // generic build error ExportError // generic export error RebaseError // generic rebase error LaunchError // generic launch error )
type Platform ¶
type Platform struct { Exiter // contains filtered or unexported fields }
func NewPlatform ¶
type ProjectMetadata ¶
type ProjectMetadata struct {
Source *ProjectSource `toml:"source" json:"source,omitempty"`
}
type ProjectSource ¶
type RunImageMetadata ¶
type SourceMetadata ¶
type SourceMetadata struct {
Git GitMetadata `json:"git"`
}
type StackMetadata ¶
type StackMetadata struct {
RunImage StackRunImageMetadata `json:"runImage" toml:"run-image"`
}
func (*StackMetadata) BestRunImageMirror ¶
func (sm *StackMetadata) BestRunImageMirror(registry string) (string, error)
type StackRunImageMetadata ¶
Click to show internal directories.
Click to hide internal directories.