Documentation ¶
Index ¶
- Constants
- func FilePath(layersDir string) string
- func GetRawMetadata(image imgutil.Image, metadataLabel string) (string, error)
- type AnalyzedMetadata
- type BuildMetadata
- type BuildpackLayerMetadata
- type BuildpackLayerMetadataFile
- type BuildpackLayersMetadata
- type BuildpackMetadata
- type GitMetadata
- type ImageIdentifier
- type LauncherMetadata
- type LayerMetadata
- type LayersMetadata
- type RunImageMetadata
- type SourceMetadata
- type Stack
- type StackMetadata
- type StackRunImageMetadata
Constants ¶
View Source
const BuildMetadataLabel = "io.buildpacks.build.metadata"
View Source
const LayerMetadataLabel = "io.buildpacks.lifecycle.metadata"
View Source
const StackMetadataLabel = "io.buildpacks.stack.id"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalyzedMetadata ¶ added in v0.3.0
type AnalyzedMetadata struct { Image *ImageIdentifier `toml:"image"` Metadata LayersMetadata `toml:"metadata"` }
type BuildMetadata ¶ added in v0.4.0
type BuildMetadata struct { BOM interface{} `json:"bom"` Buildpacks []BuildpackMetadata `json:"buildpacks"` Launcher LauncherMetadata `json:"launcher"` }
type BuildpackLayerMetadata ¶ added in v0.4.0
type BuildpackLayerMetadata struct { LayerMetadata BuildpackLayerMetadataFile }
type BuildpackLayerMetadataFile ¶ added in v0.4.0
type BuildpackLayersMetadata ¶ added in v0.4.0
type BuildpackLayersMetadata struct { ID string `json:"key" toml:"key"` Version string `json:"version" toml:"version"` Layers map[string]BuildpackLayerMetadata `json:"layers" toml:"layers"` }
type BuildpackMetadata ¶
type GitMetadata ¶ added in v0.4.0
type ImageIdentifier ¶ added in v0.3.0
type ImageIdentifier struct {
Reference string `toml:"reference"`
}
FIXME: fix key names to be accurate in the daemon case
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 ¶ added in v0.4.0
type LayersMetadata struct { App LayerMetadata `json:"app" toml:"app"` Config LayerMetadata `json:"config" toml:"config"` Launcher LayerMetadata `json:"launcher" toml:"launcher"` Buildpacks []BuildpackLayersMetadata `json:"buildpacks" toml:"buildpacks"` RunImage RunImageMetadata `json:"runImage" toml:"run-image"` Stack StackMetadata `json:"stack" toml:"stack"` }
func GetLayersMetadata ¶ added in v0.5.0
func GetLayersMetadata(image imgutil.Image) (LayersMetadata, error)
func (*LayersMetadata) MetadataForBuildpack ¶ added in v0.4.0
func (m *LayersMetadata) MetadataForBuildpack(id string) BuildpackLayersMetadata
type RunImageMetadata ¶
type SourceMetadata ¶ added in v0.4.0
type SourceMetadata struct {
Git GitMetadata `json:"git"`
}
type StackMetadata ¶
type StackMetadata struct {
RunImage StackRunImageMetadata `json:"runImage" toml:"run-image"`
}
func (*StackMetadata) BestRunImageMirror ¶ added in v0.5.0
func (sm *StackMetadata) BestRunImageMirror(registry string) (string, error)
type StackRunImageMetadata ¶
Click to show internal directories.
Click to hide internal directories.