Documentation
¶
Index ¶
- Constants
- func DecodeLayerMetadataFile(path, buildpackAPI string) (layertypes.LayerMetadataFile, string, error)
- func EncodeLayerMetadataFile(lmf layertypes.LayerMetadataFile, path, buildpackAPI string) error
- func WriteTOML(path string, data interface{}) error
- type BOMEntry
- type BuildConfig
- type BuildEnv
- type BuildPlan
- type BuildResult
- type BuildTOML
- type Buildpack
- type Descriptor
- type DetectConfig
- type DetectRun
- type DirBuildpackStore
- type EncoderDecoder
- type Error
- type ErrorType
- type Group
- type GroupBuildpack
- type Info
- type Label
- type LaunchTOML
- type Logger
- type Order
- type Plan
- type PlanSections
- type Provide
- type Require
- type StoreTOML
- type Unmet
Constants ¶
View Source
const EnvBuildpackDir = "CNB_BUILDPACK_DIR"
Variables ¶
This section is empty.
Functions ¶
func DecodeLayerMetadataFile ¶
func DecodeLayerMetadataFile(path, buildpackAPI string) (layertypes.LayerMetadataFile, string, error)
func EncodeLayerMetadataFile ¶
func EncodeLayerMetadataFile(lmf layertypes.LayerMetadataFile, path, buildpackAPI string) error
Types ¶
type BOMEntry ¶
type BOMEntry struct {
Require
Buildpack GroupBuildpack `toml:"buildpack" json:"buildpack"`
}
func WithBuildpack ¶
func WithBuildpack(bp GroupBuildpack, bom []BOMEntry) []BOMEntry
func (*BOMEntry) ConvertMetadataToVersion ¶
func (bom *BOMEntry) ConvertMetadataToVersion()
type BuildConfig ¶
type BuildPlan ¶
type BuildPlan struct {
PlanSections
Or planSectionsList `toml:"or"`
}
type BuildResult ¶
type Buildpack ¶
type Buildpack interface {
Build(bpPlan Plan, config BuildConfig) (BuildResult, error)
ConfigFile() *Descriptor
Detect(config *DetectConfig) DetectRun
}
type Descriptor ¶
type Descriptor struct {
API string `toml:"api"`
Buildpack Info `toml:"buildpack"`
Order Order `toml:"order"`
Dir string `toml:"-"`
}
func (*Descriptor) Build ¶
func (b *Descriptor) Build(bpPlan Plan, config BuildConfig) (BuildResult, error)
func (*Descriptor) ConfigFile ¶
func (b *Descriptor) ConfigFile() *Descriptor
func (*Descriptor) Detect ¶
func (b *Descriptor) Detect(config *DetectConfig) DetectRun
func (*Descriptor) IsMetaBuildpack ¶
func (b *Descriptor) IsMetaBuildpack() bool
func (*Descriptor) String ¶
func (b *Descriptor) String() string
type DetectConfig ¶
type DirBuildpackStore ¶
type DirBuildpackStore struct {
Dir string
}
func NewBuildpackStore ¶
func NewBuildpackStore(dir string) (*DirBuildpackStore, error)
type EncoderDecoder ¶
type EncoderDecoder interface {
IsSupported(buildpackAPI string) bool
Encode(file *os.File, lmf layertypes.LayerMetadataFile) error
Decode(path string) (layertypes.LayerMetadataFile, string, error)
}
type Error ¶
func NewLifecycleError ¶
type ErrorType ¶
type ErrorType string
const ErrTypeBuildpack ErrorType = "ERR_BUILDPACK"
const ErrTypeFailedDetection ErrorType = "ERR_FAILED_DETECTION"
type Group ¶
type Group struct {
Group []GroupBuildpack `toml:"group"`
}
type GroupBuildpack ¶
type GroupBuildpack struct {
API string `toml:"api,omitempty" json:"-"`
Homepage string `toml:"homepage,omitempty" json:"homepage,omitempty"`
ID string `toml:"id" json:"id"`
Optional bool `toml:"optional,omitempty" json:"optional,omitempty"`
Version string `toml:"version" json:"version"`
}
A GroupBuildpack represents a buildpack referenced in a buildpack.toml's [[order.group]]. It may be a regular buildpack, or a meta buildpack.
func (GroupBuildpack) NoAPI ¶
func (bp GroupBuildpack) NoAPI() GroupBuildpack
func (GroupBuildpack) NoHomepage ¶
func (bp GroupBuildpack) NoHomepage() GroupBuildpack
func (GroupBuildpack) NoOpt ¶
func (bp GroupBuildpack) NoOpt() GroupBuildpack
func (GroupBuildpack) String ¶
func (bp GroupBuildpack) String() string
type LaunchTOML ¶
type PlanSections ¶
type Require ¶
type Require struct {
Name string `toml:"name" json:"name"`
Version string `toml:"version,omitempty" json:"version,omitempty"`
Metadata map[string]interface{} `toml:"metadata" json:"metadata"`
}
func (*Require) ConvertVersionToMetadata ¶
func (r *Require) ConvertVersionToMetadata()
Directories
¶
| Path | Synopsis |
|---|---|
|
Package testmock is a generated GoMock package.
|
Package testmock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.