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 ¶
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 ¶
func ConfigFromOCILayoutBlob(blob dist.Blob) (config v1.ImageConfig, err error)
func ExtractBuildpacks ¶
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 ¶
func (b *PackageBuilder) SaveAsFile(path, imageOS string) error
func (*PackageBuilder) SaveAsImage ¶
func (*PackageBuilder) SetBuildpack ¶
func (b *PackageBuilder) SetBuildpack(buildpack dist.Buildpack)
Click to show internal directories.
Click to hide internal directories.