github.com/YousefHaggyHeroku/pack@v1.5.5/internal/builder/metadata.go (about) 1 package builder 2 3 import "github.com/YousefHaggyHeroku/pack/internal/dist" 4 5 const ( 6 OrderLabel = "io.buildpacks.buildpack.order" 7 ) 8 9 type Metadata struct { 10 Description string `json:"description"` 11 Buildpacks []dist.BuildpackInfo `json:"buildpacks"` 12 Stack StackMetadata `json:"stack"` 13 Lifecycle LifecycleMetadata `json:"lifecycle"` 14 CreatedBy CreatorMetadata `json:"createdBy"` 15 } 16 17 type CreatorMetadata struct { 18 Name string `json:"name" yaml:"name"` 19 Version string `json:"version" yaml:"version"` 20 } 21 22 type LifecycleMetadata struct { 23 LifecycleInfo 24 // Deprecated: use APIs instead 25 API LifecycleAPI `json:"api"` 26 APIs LifecycleAPIs `json:"apis"` 27 } 28 29 type StackMetadata struct { 30 RunImage RunImageMetadata `json:"runImage" toml:"run-image"` 31 } 32 33 type RunImageMetadata struct { 34 Image string `json:"image" toml:"image"` 35 Mirrors []string `json:"mirrors" toml:"mirrors"` 36 }