metadata

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func FilePath added in v0.5.0

func FilePath(layersDir string) string

func GetRawMetadata

func GetRawMetadata(image imgutil.Image, metadataLabel string) (string, error)

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 BuildpackLayerMetadataFile struct {
	Data   interface{} `json:"data" toml:"metadata"`
	Build  bool        `json:"build" toml:"build"`
	Launch bool        `json:"launch" toml:"launch"`
	Cache  bool        `json:"cache" toml:"cache"`
}

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 BuildpackMetadata struct {
	ID      string `json:"id"`
	Version string `json:"version"`
}

type GitMetadata added in v0.4.0

type GitMetadata struct {
	Repository string `json:"repository"`
	Commit     string `json:"commit"`
}

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 RunImageMetadata struct {
	TopLayer  string `json:"topLayer" toml:"top-layer"`
	Reference string `json:"reference" toml:"reference"`
}

type SourceMetadata added in v0.4.0

type SourceMetadata struct {
	Git GitMetadata `json:"git"`
}

type Stack added in v0.5.0

type Stack struct {
	ID string `json:"Id,inline"`
}

func GetStackMetadata added in v0.5.0

func GetStackMetadata(image imgutil.Image) (Stack, error)

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

type StackRunImageMetadata struct {
	Image   string   `toml:"image" json:"image"`
	Mirrors []string `toml:"mirrors" json:"mirrors,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL