builder

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OrderDetectionMaxDepth = -1
	OrderDetectionNone     = 0
)

Variables

This section is empty.

Functions

func ValidateConfig added in v0.12.0

func ValidateConfig(c Config) error

ValidateConfig validates the config

Types

type BuildpackCollection added in v0.9.0

type BuildpackCollection []BuildpackConfig

BuildpackCollection is a list of BuildpackConfigs

type BuildpackConfig

type BuildpackConfig struct {
	dist.BuildpackInfo
	dist.ImageOrURI
}

BuildpackConfig details the configuration of a Buildpack

func (*BuildpackConfig) DisplayString added in v0.16.0

func (c *BuildpackConfig) DisplayString() string

type Config

type Config struct {
	Description string              `toml:"description"`
	Buildpacks  BuildpackCollection `toml:"buildpacks"`
	Order       dist.Order          `toml:"order"`
	Stack       StackConfig         `toml:"stack"`
	Lifecycle   LifecycleConfig     `toml:"lifecycle"`
}

Config is a builder configuration file

func ReadConfig

func ReadConfig(path string) (config Config, warnings []string, err error)

ReadConfig reads a builder configuration from the file path provided and returns the configuration along with any warnings encountered while parsing

type DetectionOrder added in v0.15.0

type DetectionOrder []DetectionOrderEntry

type DetectionOrderEntry added in v0.15.0

type DetectionOrderEntry struct {
	dist.BuildpackRef   `yaml:",inline"`
	Cyclical            bool           `json:"cyclic,omitempty" yaml:"cyclic,omitempty" toml:"cyclic,omitempty"`
	GroupDetectionOrder DetectionOrder `json:"buildpacks,omitempty" yaml:"buildpacks,omitempty" toml:"buildpacks,omitempty"`
}

type LifecycleConfig

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

LifecycleConfig details the configuration of the Lifecycle

type StackConfig

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

StackConfig details the configuration of a Stack

Jump to

Keyboard shortcuts

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