Documentation ¶
Overview ¶
Package dist is responsible for cataloging all data types in relation to distributing Cloud Native Buildpack components.
Index ¶
- Constants
- func AddBuildpackToLayersMD(layerMD BuildpackLayers, descriptor BuildpackDescriptor, diffID string)
- func GetLabel(labeled Labeled, label string, obj interface{}) (ok bool, err error)
- func LayerDiffID(layerTarPath string) (v1.Hash, error)
- func SetLabel(labelable Labelable, label string, data interface{}) error
- type BuildpackDescriptor
- type BuildpackInfo
- type BuildpackLayerInfo
- type BuildpackLayers
- type BuildpackRef
- type BuildpackURI
- type ImageOrURI
- type ImageRef
- type Labelable
- type Labeled
- type License
- type Order
- type OrderEntry
- type Platform
- type Stack
Constants ¶
View Source
const AssumedBuildpackAPIVersion = "0.1"
View Source
const BuildpackLayersLabel = "io.buildpacks.buildpack.layers"
View Source
const BuildpacksDir = "/cnb/buildpacks"
Variables ¶
This section is empty.
Functions ¶
func AddBuildpackToLayersMD ¶
func AddBuildpackToLayersMD(layerMD BuildpackLayers, descriptor BuildpackDescriptor, diffID string)
Types ¶
type BuildpackDescriptor ¶
type BuildpackDescriptor struct { API *api.Version `toml:"api"` Info BuildpackInfo `toml:"buildpack"` Stacks []Stack `toml:"stacks"` Order Order `toml:"order"` }
func (*BuildpackDescriptor) EnsureStackSupport ¶
func (b *BuildpackDescriptor) EnsureStackSupport(stackID string, providedMixins []string, validateRunStageMixins bool) error
func (*BuildpackDescriptor) EscapedID ¶
func (b *BuildpackDescriptor) EscapedID() string
type BuildpackInfo ¶
type BuildpackInfo struct { ID string `toml:"id,omitempty" json:"id,omitempty" yaml:"id,omitempty"` Name string `toml:"name,omitempty" json:"name,omitempty" yaml:"name,omitempty"` Version string `toml:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"` Description string `toml:"description,omitempty" json:"description,omitempty" yaml:"description,omitempty"` Homepage string `toml:"homepage,omitempty" json:"homepage,omitempty" yaml:"homepage,omitempty"` Keywords []string `toml:"keywords,omitempty" json:"keywords,omitempty" yaml:"keywords,omitempty"` Licenses []License `toml:"licenses,omitempty" json:"licenses,omitempty" yaml:"licenses,omitempty"` }
func (BuildpackInfo) FullName ¶
func (b BuildpackInfo) FullName() string
func (BuildpackInfo) Match ¶
func (b BuildpackInfo) Match(o BuildpackInfo) bool
Match compares two buildpacks by ID and Version
type BuildpackLayerInfo ¶
type BuildpackLayers ¶
type BuildpackLayers map[string]map[string]BuildpackLayerInfo
func (BuildpackLayers) Get ¶
func (b BuildpackLayers) Get(id, version string) (BuildpackLayerInfo, bool)
type BuildpackRef ¶
type BuildpackRef struct { BuildpackInfo `yaml:"buildpackinfo,inline"` Optional bool `toml:"optional,omitempty" json:"optional,omitempty" yaml:"optional,omitempty"` }
type BuildpackURI ¶
type BuildpackURI struct {
URI string `toml:"uri"`
}
type ImageOrURI ¶
type ImageOrURI struct { BuildpackURI ImageRef }
func (*ImageOrURI) DisplayString ¶
func (c *ImageOrURI) DisplayString() string
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.