Version: v1.25.5 Latest Latest

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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>].

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL