internal

package
v0.0.0-...-e72ff92 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LifecycleRegistryServer = "index.docker.io"
	LifecycleRepoImage      = "buildpacksio/lifecycle"
)

Variables

This section is empty.

Functions

func GetLatestBuildImage

func GetLatestBuildImage(buildImageRef, runImageRef string) (string, error)

func OutputBuilder

func OutputBuilder(variable string, builder Builder) error

func UpdateBuildpacksAndOrder

func UpdateBuildpacksAndOrder(orders []Order, server string) ([]Order, []ImageConfig, error)

func ValidateRunImage

func ValidateRunImage(ref string) error

func ValidateRunImageMirrors

func ValidateRunImageMirrors(mirrors []string) error

Types

type Builder

type Builder struct {
	Description string        `toml:"description"`
	Buildpacks  []ImageConfig `toml:"buildpacks"`
	Lifecycle   Lifecycle     `toml:"lifecycle"`
	Order       []Order       `toml:"order"`
	Stack       stackConfig   `toml:"stack"`
}

func ParseBuilderFile

func ParseBuilderFile(path string) (Builder, error)

type Buildpack

type Buildpack struct {
	ID       string `toml:"id"`
	Version  string `toml:"version"`
	Homepage string `toml:"homepage,omitempty"`
	Optional bool   `toml:"optional,omitempty"`
}

type ImageConfig

type ImageConfig struct {
	Image   string `toml:"image"`
	Version string `toml:"version"`
}

type ImageReference

type ImageReference struct {
	Domain string
	Path   string
	Tag    string
}

func NewImageReference

func NewImageReference(ref string) (ImageReference, error)

func (ImageReference) LatestVersion

func (r ImageReference) LatestVersion(tagSuffix string) (string, error)

Gets latest version from a registry of an image filtered by tag suffix.

func (ImageReference) Name

func (r ImageReference) Name() string

type Lifecycle

type Lifecycle struct {
	Version string `toml:"version"`
}

func GetLatestLifecycle

func GetLatestLifecycle() (Lifecycle, error)

type Order

type Order struct {
	Group []Buildpack `toml:"group"`
}

Jump to

Keyboard shortcuts

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