Documentation
¶
Index ¶
- Constants
- func BuildpackLayer(dest string, uid, gid int, bp Buildpack) (string, error)
- func GetLabel(image imgutil.Image, label string, obj interface{}) (ok bool, err error)
- func LayerDiffID(layerTarPath string) (v1.Hash, error)
- func SetLabel(image imgutil.Image, label string, data interface{}) error
- type Blob
- type BlobConfig
- type Buildpack
- type BuildpackDescriptor
- type BuildpackInfo
- type BuildpackRef
- type Order
- type OrderEntry
- type Stack
Constants ¶
View Source
const AssumedBuildpackAPIVersion = "0.1"
View Source
const BuildpacksDir = "/cnb/buildpacks"
Variables ¶
This section is empty.
Functions ¶
func BuildpackLayer ¶
Output:
layer tar = {ID}.{V}.tar
inside the layer = /cnbs/buildpacks/{ID}/{V}/*
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 ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.