buildpackage

package
v0.40.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Buildpack    dist.BuildpackURI `toml:"buildpack"`
	Extension    dist.BuildpackURI `toml:"extension"`
	Dependencies []dist.ImageOrURI `toml:"dependencies"`
	// deprecated
	Platform dist.Platform `toml:"platform"`

	// Define targets for composite buildpacks
	Targets []dist.Target `toml:"targets"`
}

Config encapsulates the possible configuration options for buildpackage creation.

func DefaultConfig added in v0.15.0

func DefaultConfig() Config

func DefaultExtensionConfig added in v0.30.0

func DefaultExtensionConfig() Config

type ConfigReader

type ConfigReader struct{}

ConfigReader implements a Read method for buildpackage configuration which parses and validates buildpackage configuration from a toml file.

func NewConfigReader

func NewConfigReader() *ConfigReader

NewConfigReader returns an instance of ConfigReader. It does not take any parameters.

func (*ConfigReader) Read

func (r *ConfigReader) Read(path string) (Config, error)

Read reads and validates a buildpackage configuration from the file path provided and returns the configuration and any error that occurred during reading or validation.

func (*ConfigReader) ReadBuildpackDescriptor added in v0.34.0

func (r *ConfigReader) ReadBuildpackDescriptor(path string) (dist.BuildpackDescriptor, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL