Documentation ¶
Index ¶
- Constants
- type Blob
- type Builder
- func (b *Builder) AddBuildpack(bp dist.Buildpack)
- func (b *Builder) Buildpacks() []BuildpackMetadata
- func (b *Builder) CreatedBy() CreatorMetadata
- func (b *Builder) Description() string
- func (b *Builder) Image() imgutil.Image
- func (b *Builder) LifecycleDescriptor() LifecycleDescriptor
- func (b *Builder) Mixins() []string
- func (b *Builder) Name() string
- func (b *Builder) Order() dist.Order
- func (b *Builder) Save(logger logging.Logger) error
- func (b *Builder) SetDescription(description string)
- func (b *Builder) SetEnv(env map[string]string)
- func (b *Builder) SetLifecycle(lifecycle Lifecycle) error
- func (b *Builder) SetOrder(order dist.Order)
- func (b *Builder) SetStack(stackConfig builder.StackConfig)
- func (b *Builder) Stack() StackMetadata
- type BuildpackMetadata
- type CreatorMetadata
- type Lifecycle
- type LifecycleAPI
- type LifecycleDescriptor
- type LifecycleInfo
- type LifecycleMetadata
- type Metadata
- type RunImageMetadata
- type StackMetadata
- type V1Group
- type V1Order
- type Version
Constants ¶
View Source
const ( AssumedLifecycleVersion = "0.3.0" AssumedPlatformAPIVersion = "0.1" DefaultLifecycleVersion = "0.5.0" DefaultBuildpackAPIVersion = "0.2" DefaultPlatformAPIVersion = "0.1" )
View Source
const (
OrderLabel = "io.buildpacks.buildpack.order"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob interface {
Open() (io.ReadCloser, error)
}
type Builder ¶
func (*Builder) AddBuildpack ¶
func (*Builder) Buildpacks ¶
func (b *Builder) Buildpacks() []BuildpackMetadata
func (*Builder) CreatedBy ¶
func (b *Builder) CreatedBy() CreatorMetadata
func (*Builder) Description ¶
func (*Builder) LifecycleDescriptor ¶
func (b *Builder) LifecycleDescriptor() LifecycleDescriptor
func (*Builder) SetDescription ¶
func (*Builder) SetLifecycle ¶
func (*Builder) SetStack ¶
func (b *Builder) SetStack(stackConfig builder.StackConfig)
func (*Builder) Stack ¶
func (b *Builder) Stack() StackMetadata
type BuildpackMetadata ¶
type BuildpackMetadata struct { dist.BuildpackInfo Latest bool `json:"latest"` // deprecated }
type CreatorMetadata ¶
type Lifecycle ¶
type Lifecycle interface { Blob Descriptor() LifecycleDescriptor }
func NewLifecycle ¶
type LifecycleAPI ¶
type LifecycleDescriptor ¶
type LifecycleDescriptor struct { Info LifecycleInfo `toml:"lifecycle"` API LifecycleAPI `toml:"api"` }
type LifecycleInfo ¶
type LifecycleInfo struct {
Version *Version `toml:"version" json:"version"`
}
type LifecycleMetadata ¶
type LifecycleMetadata struct { LifecycleInfo API LifecycleAPI `json:"api"` }
type Metadata ¶
type Metadata struct { Description string `json:"description"` Buildpacks []BuildpackMetadata `json:"buildpacks"` Groups V1Order `json:"groups"` // deprecated Stack StackMetadata `json:"stack"` Lifecycle LifecycleMetadata `json:"lifecycle"` CreatedBy CreatorMetadata `json:"createdBy"` }
type RunImageMetadata ¶
type StackMetadata ¶
type StackMetadata struct {
RunImage RunImageMetadata `json:"runImage" toml:"run-image"`
}
type V1Group ¶
type V1Group struct {
Buildpacks []dist.BuildpackRef `toml:"buildpacks" json:"buildpacks"`
}
type Version ¶
Version is an extension to semver.Version to make it marshalable.
func VersionMustParse ¶
func (*Version) MarshalText ¶
MarshalText makes Version satisfy the encoding.TextMarshaler interface.
func (*Version) UnmarshalText ¶
UnmarshalText makes Version satisfy the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.