buildplan

package
v1.25.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 15 modules, 21 packages

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 Metadata

type Metadata map[string]interface{}

Metadata is the metadata of a dependency.

type Plan added in v1.21.0

type Plan struct {
	// Provided represents the dependencies provided by a buildpack. Optional.
	Provides []Provided `toml:"provides,omitempty"`

	// Required represents the dependencies required by a buildpack.  Optional.
	Requires []Required `toml:"requires,omitempty"`
}

Plan represents a contractual build plan.

type Plans added in v1.21.0

type Plans struct {
	// Plan is the primary Plan.
	Plan

	// Or are additional Plans. Optional.
	Or []Plan `toml:"or,omitempty"`
}

Plans is a collection of Plan's in marshalable form.

type Provided added in v1.21.0

type Provided struct {
	// Name represents the name of a dependency.
	Name string `toml:"name"`
}

Provided represents a dependency provided by a buildpack.

type Required added in v1.21.0

type Required struct {
	// Name represents the name of a dependency.
	Name string `toml:"name"`

	// Version represents the version of a dependency.  Optional.
	Version string `toml:"version,omitempty"`

	// Metadata represents the metadata of a dependency.  Optional.
	Metadata Metadata `toml:"metadata,omitempty"`
}

Required represents a dependency required by a buildpack.

type Writer

type Writer func(plans Plans) error

Writer is a function write writes the contents of a Plans

func DefaultWriter

func DefaultWriter(index int) Writer

DefaultWriter writes the Plans to a file at os.Args[<INDEX>].

Jump to

Keyboard shortcuts

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