Documentation ¶
Index ¶
- Constants
- func BuildpacksFromOCILayoutBlob(blob dist.Blob) (mainBP dist.Buildpack, dependencies []dist.Buildpack, err error)
- func ConfigFromOCILayoutBlob(blob dist.Blob) (config v1.ImageConfig, err error)
- func ExtractBuildpacks(pkg Package) (mainBP dist.Buildpack, depBPs []dist.Buildpack, err error)
- func IsOCILayoutBlob(blob blob2.Blob) (bool, error)
- type ImageFactory
- type Metadata
- type Package
- type PackageBuilder
- type WorkableImage
Constants ¶
View Source
const MetadataLabel = "io.buildpacks.buildpackage.metadata"
Variables ¶
This section is empty.
Functions ¶
func BuildpacksFromOCILayoutBlob ¶ added in v0.10.0
func BuildpacksFromOCILayoutBlob(blob dist.Blob) (mainBP dist.Buildpack, dependencies []dist.Buildpack, err error)
BuildpackFromOCILayoutBlob constructs buildpacks from a blob in OCI layout format.
func ConfigFromOCILayoutBlob ¶ added in v0.14.0
func ConfigFromOCILayoutBlob(blob dist.Blob) (config v1.ImageConfig, err error)
func ExtractBuildpacks ¶ added in v0.10.0
Types ¶
type ImageFactory ¶
type Metadata ¶
type Metadata struct { dist.BuildpackInfo Stacks []dist.Stack `toml:"stacks" json:"stacks"` }
type PackageBuilder ¶
type PackageBuilder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(imageFactory ImageFactory) *PackageBuilder
func (*PackageBuilder) AddDependency ¶
func (b *PackageBuilder) AddDependency(buildpack dist.Buildpack)
func (*PackageBuilder) SaveAsFile ¶ added in v0.10.0
func (b *PackageBuilder) SaveAsFile(path, imageOS string) error
func (*PackageBuilder) SaveAsImage ¶ added in v0.10.0
func (*PackageBuilder) SetBuildpack ¶
func (b *PackageBuilder) SetBuildpack(buildpack dist.Buildpack)
Click to show internal directories.
Click to hide internal directories.