Documentation
¶
Index ¶
- Constants
- type Blob
- type Builder
- func (b *Builder) AddBuildpack(bp dist.Buildpack)
- func (b *Builder) Description() string
- func (b *Builder) GetBuildpacks() []BuildpackMetadata
- func (b *Builder) GetCreatedBy() CreatorMetadata
- func (b *Builder) GetLifecycleDescriptor() LifecycleDescriptor
- func (b *Builder) GetOrder() dist.Order
- func (b *Builder) GetStackInfo() StackMetadata
- func (b *Builder) Name() string
- 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) SetStackInfo(stackConfig StackConfig)
- type BuildpackConfig
- type BuildpackLayerInfo
- type BuildpackLayers
- type BuildpackMetadata
- type Config
- type CreatorMetadata
- type Lifecycle
- type LifecycleAPI
- type LifecycleConfig
- type LifecycleDescriptor
- type LifecycleInfo
- type LifecycleMetadata
- type Metadata
- type RunImageMetadata
- type StackConfig
- 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 BuildpackLayersLabel = "io.buildpacks.buildpack.layers"
View Source
const OrderLabel = "io.buildpacks.buildpack.order"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶ added in v0.4.0
type Blob interface {
Open() (io.ReadCloser, error)
}
type Builder ¶
func GetBuilder ¶ added in v0.2.0
GetBuilder constructs builder from builder image
func (*Builder) AddBuildpack ¶ added in v0.2.0
func (*Builder) Description ¶ added in v0.2.0
func (*Builder) GetBuildpacks ¶ added in v0.2.0
func (b *Builder) GetBuildpacks() []BuildpackMetadata
func (*Builder) GetCreatedBy ¶ added in v0.5.0
func (b *Builder) GetCreatedBy() CreatorMetadata
func (*Builder) GetLifecycleDescriptor ¶ added in v0.4.0
func (b *Builder) GetLifecycleDescriptor() LifecycleDescriptor
func (*Builder) GetStackInfo ¶ added in v0.2.0
func (b *Builder) GetStackInfo() StackMetadata
func (*Builder) SetDescription ¶ added in v0.2.0
func (*Builder) SetLifecycle ¶ added in v0.2.0
func (*Builder) SetStackInfo ¶ added in v0.2.0
func (b *Builder) SetStackInfo(stackConfig StackConfig)
type BuildpackConfig ¶ added in v0.2.0
type BuildpackConfig struct { dist.BuildpackInfo URI string `toml:"uri"` }
type BuildpackLayerInfo ¶ added in v0.5.0
type BuildpackLayers ¶ added in v0.5.0
type BuildpackLayers map[string]map[string]BuildpackLayerInfo
type BuildpackMetadata ¶
type BuildpackMetadata struct { dist.BuildpackInfo Latest bool `json:"latest"` // deprecated }
type Config ¶ added in v0.2.0
type Config struct { Description string `toml:"description"` Buildpacks []BuildpackConfig `toml:"buildpacks"` Order dist.Order `toml:"order"` Stack StackConfig `toml:"stack"` Lifecycle LifecycleConfig `toml:"lifecycle"` }
type CreatorMetadata ¶ added in v0.5.0
type Lifecycle ¶ added in v0.4.0
type Lifecycle interface { Blob Descriptor() LifecycleDescriptor }
func NewLifecycle ¶ added in v0.4.0
type LifecycleAPI ¶ added in v0.4.0
type LifecycleConfig ¶ added in v0.2.0
type LifecycleDescriptor ¶ added in v0.4.0
type LifecycleDescriptor struct { Info LifecycleInfo `toml:"lifecycle"` API LifecycleAPI `toml:"api"` }
type LifecycleInfo ¶ added in v0.4.0
type LifecycleInfo struct {
Version *Version `toml:"version" json:"version"`
}
type LifecycleMetadata ¶ added in v0.4.0
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 ¶ added in v0.3.0
type StackConfig ¶ added in v0.2.0
type StackMetadata ¶ added in v0.3.0
type StackMetadata struct {
RunImage RunImageMetadata `json:"runImage" toml:"run-image"`
}
type V1Group ¶ added in v0.4.0
type V1Group struct {
Buildpacks []dist.BuildpackRef `toml:"buildpacks" json:"buildpacks"`
}
type Version ¶ added in v0.4.0
Version is an extension to semver.Version to make it marshalable.
func VersionMustParse ¶ added in v0.4.1
func (*Version) MarshalText ¶ added in v0.4.0
MarshalText makes Version satisfy the encoding.TextMarshaler interface.
func (*Version) UnmarshalText ¶ added in v0.4.0
UnmarshalText makes Version satisfy the encoding.TextUnmarshaler interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.