metadata

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AppMetadataLabel = "io.buildpacks.lifecycle.metadata"

Variables

This section is empty.

Functions

func GetRawMetadata

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

Types

type AppImageMetadata

type AppImageMetadata struct {
	App        AppMetadata         `json:"app"`
	Config     ConfigMetadata      `json:"config"`
	Launcher   LauncherMetadata    `json:"launcher"`
	Buildpacks []BuildpackMetadata `json:"buildpacks"`
	RunImage   RunImageMetadata    `json:"runImage"`
	Stack      StackMetadata       `json:"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"`
}

type BuildpackMetadata

type BuildpackMetadata struct {
	ID      string                   `json:"key"`
	Version string                   `json:"version"`
	Layers  map[string]LayerMetadata `json:"layers"`
}

type ConfigMetadata

type ConfigMetadata struct {
	SHA string `json:"sha"`
}

type LauncherMetadata

type LauncherMetadata struct {
	SHA string `json:"sha"`
}

type LayerMetadata

type LayerMetadata struct {
	SHA    string      `json:"sha" toml:"-"`
	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 RunImageMetadata

type RunImageMetadata struct {
	TopLayer string `json:"topLayer"`
	SHA      string `json:"sha"`
}

type StackMetadata

type StackMetadata struct {
	RunImage StackRunImageMetadata `toml:"run-image" json:"runImage"`
}

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