builder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MetadataLabel = "io.buildpacks.builder.metadata"

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(img image.Image, cfg *config.Config) *Builder

func (*Builder) GetLocalRunImageMirrors

func (b *Builder) GetLocalRunImageMirrors() ([]string, error)

func (*Builder) GetMetadata

func (b *Builder) GetMetadata() (*Metadata, error)

func (*Builder) GetRunImageByRepoName

func (b *Builder) GetRunImageByRepoName(repoName string) (runImage string, err error)

func (*Builder) GetStack

func (b *Builder) GetStack() (string, error)

type BuildpackMetadata

type BuildpackMetadata struct {
	ID      string `json:"id"`
	Version string `json:"version"`
	Latest  bool   `json:"latest"`
}

type GroupMetadata

type GroupMetadata struct {
	Buildpacks []BuildpackMetadata `json:"buildpacks"`
}

type Metadata

type Metadata struct {
	Buildpacks []BuildpackMetadata `json:"buildpacks"`
	Groups     []GroupMetadata     `json:"groups"`
	Stack      stack.Metadata      `json:"stack"`
}

type Stack

type Stack struct {
	ID              string   `toml:"id"`
	BuildImage      string   `toml:"build-image"`
	RunImage        string   `toml:"run-image"`
	RunImageMirrors []string `toml:"run-image-mirrors,omitempty"`
}

type TOML

type TOML struct {
	Buildpacks []buildpack.Buildpack      `toml:"buildpacks"`
	Groups     []lifecycle.BuildpackGroup `toml:"groups"`
	Stack      Stack
}

Jump to

Keyboard shortcuts

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