Documentation ¶
Index ¶
- Constants
- type Blob
- type Builder
- func (b *Builder) AddBuildpack(bp dist.Buildpack)
- func (b *Builder) Buildpacks() []dist.BuildpackInfo
- func (b *Builder) CreatedBy() CreatorMetadata
- func (b *Builder) Description() string
- func (b *Builder) GID() int
- 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)
- func (b *Builder) SetOrder(order dist.Order)
- func (b *Builder) SetStack(stackConfig builder.StackConfig)
- func (b *Builder) Stack() StackMetadata
- func (b *Builder) UID() int
- type CreatorMetadata
- type Lifecycle
- type LifecycleAPI
- type LifecycleDescriptor
- type LifecycleInfo
- type LifecycleMetadata
- type Metadata
- type RunImageMetadata
- type StackMetadata
- type Version
Constants ¶
View Source
const ( StackPath = "/cnb/stack.toml" EnvUID = "CNB_USER_ID" EnvGID = "CNB_GROUP_ID" )
View Source
const ( DefaultLifecycleVersion = "0.7.5" DefaultBuildpackAPIVersion = "0.2" )
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 ¶
type Builder struct { StackID string // contains filtered or unexported fields }
Builder represents a pack builder, used to build images
func (*Builder) AddBuildpack ¶
AddBuildpack adds a buildpack to the builder
func (*Builder) Buildpacks ¶
func (b *Builder) Buildpacks() []dist.BuildpackInfo
Buildpacks returns the buildpack list
func (*Builder) CreatedBy ¶
func (b *Builder) CreatedBy() CreatorMetadata
CreatedBy returns metadata around the creation of the builder
func (*Builder) Description ¶
Description returns the builder description
func (*Builder) LifecycleDescriptor ¶
func (b *Builder) LifecycleDescriptor() LifecycleDescriptor
LifecycleDescriptor returns the LifecycleDescriptor
func (*Builder) SetDescription ¶
SetDescription sets the description of the builder
func (*Builder) SetLifecycle ¶
SetLifecycle sets the lifecycle of the builder
func (*Builder) SetStack ¶
func (b *Builder) SetStack(stackConfig builder.StackConfig)
SetStack sets the stack of the builder
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 []dist.BuildpackInfo `json:"buildpacks"` 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 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.