Documentation
¶
Index ¶
- Constants
- func GetRawMetadata(image imgutil.Image, metadataLabel string) (string, error)
- type AnalyzedMetadata
- type AppImageMetadata
- type AppMetadata
- type BuildpackMetadata
- type ConfigMetadata
- type ImageIdentifier
- type LauncherMetadata
- type LayerMetadata
- type LayerMetadataFile
- type RunImageMetadata
- type StackMetadata
- type StackRunImageMetadata
Constants ¶
View Source
const AppMetadataLabel = "io.buildpacks.lifecycle.metadata"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalyzedMetadata ¶ added in v0.3.0
type AnalyzedMetadata struct {
Image *ImageIdentifier `toml:"image"`
Metadata AppImageMetadata `toml:"metadata"`
}
type AppImageMetadata ¶
type AppImageMetadata struct {
App AppMetadata `json:"app" toml:"app"`
Config ConfigMetadata `json:"config" toml:"config"`
Launcher LauncherMetadata `json:"launcher" toml:"launcher"`
Buildpacks []BuildpackMetadata `json:"buildpacks" toml:"buildpacks"`
RunImage RunImageMetadata `json:"runImage" toml:"run-image"`
Stack StackMetadata `json:"stack" toml:"stack"`
}
func GetAppMetadata ¶
func GetAppMetadata(image imgutil.Image) (AppImageMetadata, error)
func (*AppImageMetadata) MetadataForBuildpack ¶
func (m *AppImageMetadata) MetadataForBuildpack(id string) BuildpackMetadata
type AppMetadata ¶
type AppMetadata struct {
SHA string `json:"sha" toml:"sha"`
}
type BuildpackMetadata ¶
type BuildpackMetadata struct {
ID string `json:"key" toml:"key"`
Version string `json:"version" toml:"version"`
Layers map[string]LayerMetadata `json:"layers" toml:"layers"`
}
type ConfigMetadata ¶
type ConfigMetadata struct {
SHA string `json:"sha" toml:"sha"`
}
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 {
SHA string `json:"sha" toml:"sha"`
}
type LayerMetadata ¶
type LayerMetadata struct {
SHA string `json:"sha" toml:"sha"`
LayerMetadataFile
}
type LayerMetadataFile ¶ added in v0.3.0
type RunImageMetadata ¶
type StackMetadata ¶
type StackMetadata struct {
RunImage StackRunImageMetadata `json:"runImage" toml:"run-image"`
}
type StackRunImageMetadata ¶
Click to show internal directories.
Click to hide internal directories.