builder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 24 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 {
	UID, GID int
	StackID  string
	// contains filtered or unexported fields
}

func GetBuilder added in v0.2.0

func GetBuilder(img imgutil.Image) (*Builder, error)

func New added in v0.2.0

func New(img imgutil.Image, name string) (*Builder, error)

func (*Builder) AddBuildpack added in v0.2.0

func (b *Builder) AddBuildpack(bp buildpack.Buildpack) error

func (*Builder) Description added in v0.2.0

func (b *Builder) Description() string

func (*Builder) GetBuildpacks added in v0.2.0

func (b *Builder) GetBuildpacks() []BuildpackMetadata

func (*Builder) GetLifecycleVersion added in v0.2.0

func (b *Builder) GetLifecycleVersion() *semver.Version

func (*Builder) GetOrder added in v0.2.0

func (b *Builder) GetOrder() []GroupMetadata

func (*Builder) GetStackInfo added in v0.2.0

func (b *Builder) GetStackInfo() StackMetadata

func (*Builder) Name added in v0.2.0

func (b *Builder) Name() string

func (*Builder) Save added in v0.2.0

func (b *Builder) Save() error

func (*Builder) SetDescription added in v0.2.0

func (b *Builder) SetDescription(description string)

func (*Builder) SetEnv added in v0.2.0

func (b *Builder) SetEnv(env map[string]string)

func (*Builder) SetLifecycle added in v0.2.0

func (b *Builder) SetLifecycle(md lifecycle.Metadata) error

func (*Builder) SetOrder added in v0.2.0

func (b *Builder) SetOrder(order []GroupMetadata) error

func (*Builder) SetStackInfo added in v0.2.0

func (b *Builder) SetStackInfo(stackConfig StackConfig)

type BuildpackConfig added in v0.2.0

type BuildpackConfig struct {
	ID      string `toml:"id"`
	Version string `toml:"version"`
	URI     string `toml:"uri"`
	Latest  bool   `toml:"latest"`
}

type BuildpackMetadata

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

type Config added in v0.2.0

type Config struct {
	Description string            `toml:"description"`
	Buildpacks  []BuildpackConfig `toml:"buildpacks"`
	Groups      []GroupMetadata   `toml:"groups"`
	Stack       StackConfig       `toml:"stack"`
	Lifecycle   LifecycleConfig   `toml:"lifecycle"`
}

func ReadConfig added in v0.3.0

func ReadConfig(path string) (Config, error)

ReadConfig reads a builder configuration from the file path provided

type GroupBuildpack added in v0.2.0

type GroupBuildpack struct {
	ID       string `json:"id" toml:"id"`
	Version  string `json:"version" toml:"version"`
	Optional bool   `json:"optional,omitempty" toml:"optional,omitempty"`
}

type GroupMetadata

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

type LifecycleConfig added in v0.2.0

type LifecycleConfig struct {
	URI     string `toml:"uri"`
	Version string `toml:"version"`
}

type Metadata

type Metadata struct {
	Description string              `json:"description"`
	Buildpacks  []BuildpackMetadata `json:"buildpacks"`
	Groups      []GroupMetadata     `json:"groups"`
	Stack       StackMetadata       `json:"stack"`
	Lifecycle   lifecycle.Metadata  `json:"lifecycle"`
}

type OrderTOML added in v0.2.0

type OrderTOML struct {
	Groups []GroupMetadata `toml:"groups"`
}

type RunImageMetadata added in v0.3.0

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

type StackConfig added in v0.2.0

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

type StackMetadata added in v0.3.0

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

Jump to

Keyboard shortcuts

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