buildpackplan

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 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 the plan.

type Plan

type Plan struct {
	// Name represents the name of the plan.
	Name string `toml:"name"`

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

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

Plan represents a contractual buildpack plan.

type Plans

type Plans struct {
	// Entries represents all of the buildpack plans.
	Entries []Plan `toml:"entries,omitempty"`
}

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

func DefaultPlans

func DefaultPlans(path string, logger logger.Logger) (Plans, error)

DefaultPlans creates a new instance of Plans, unmarshalling it from a TOML file.

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