dist

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const AssumedBuildpackAPIVersion = "0.1"
View Source
const BuildpacksDir = "/cnb/buildpacks"

Variables

This section is empty.

Functions

func BuildpackLayer

func BuildpackLayer(dest string, uid, gid int, bp Buildpack) (string, error)

Output:

layer tar = {ID}.{V}.tar

inside the layer = /cnbs/buildpacks/{ID}/{V}/*

func GetLabel

func GetLabel(image imgutil.Image, label string, obj interface{}) (ok bool, err error)

func LayerDiffID

func LayerDiffID(layerTarPath string) (v1.Hash, error)

func SetLabel

func SetLabel(image imgutil.Image, label string, data interface{}) error

Types

type Blob

type Blob interface {
	Open() (io.ReadCloser, error)
}

type BlobConfig

type BlobConfig struct {
	URI string `toml:"uri"`
}

type Buildpack

type Buildpack interface {
	Blob
	Descriptor() BuildpackDescriptor
}

func NewBuildpack

func NewBuildpack(blob Blob) (Buildpack, error)

type BuildpackDescriptor

type BuildpackDescriptor struct {
	API    *api.Version  `toml:"api"`
	Info   BuildpackInfo `toml:"buildpack"`
	Stacks []Stack       `toml:"stacks"`
	Order  Order         `toml:"order"`
}

func (*BuildpackDescriptor) EscapedID

func (b *BuildpackDescriptor) EscapedID() string

func (*BuildpackDescriptor) SupportsStack

func (b *BuildpackDescriptor) SupportsStack(stackID string) bool

type BuildpackInfo

type BuildpackInfo struct {
	ID      string `toml:"id" json:"id"`
	Version string `toml:"version" json:"version,omitempty"`
}

type BuildpackRef

type BuildpackRef struct {
	BuildpackInfo
	Optional bool `toml:"optional,omitempty" json:"optional,omitempty"`
}

type Order

type Order []OrderEntry

type OrderEntry

type OrderEntry struct {
	Group []BuildpackRef `toml:"group" json:"group"`
}

type Stack

type Stack struct {
	ID string
}

Directories

Path Synopsis
Package testmocks is a generated GoMock package.
Package testmocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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