buildpackage

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Buildpack    dist.BuildpackURI `toml:"buildpack"`
	Dependencies []dist.ImageOrURI `toml:"dependencies"`
}

type ImageFactory

type ImageFactory interface {
	NewImage(repoName string, local bool) (imgutil.Image, error)
}

type Metadata

type Metadata struct {
	dist.BuildpackInfo
	Stacks []dist.Stack `toml:"stacks" json:"stacks"`
}

type PackageBuilder

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

func NewBuilder

func NewBuilder(imageFactory ImageFactory) *PackageBuilder

func (*PackageBuilder) AddDependency

func (p *PackageBuilder) AddDependency(buildpack dist.Buildpack)

func (*PackageBuilder) Save

func (p *PackageBuilder) Save(repoName string, publish bool) (imgutil.Image, error)

func (*PackageBuilder) SetBuildpack

func (p *PackageBuilder) SetBuildpack(buildpack dist.Buildpack)

Jump to

Keyboard shortcuts

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