buildplan

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: Apache-2.0 Imports: 5 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildPlan

type BuildPlan map[string]Dependency

BuildPlan represents the dependencies contributed by a build. Note that you may need to call Init() to load contents from os.Stdin.

func (BuildPlan) Init

func (b BuildPlan) Init() error

Init initializes the BuildPlan by reading os.Stdin. Will block until os.Stdin is closed.

func (BuildPlan) String

func (b BuildPlan) String() string

String makes BuildPlan satisfy the Stringer interface.

func (BuildPlan) Write

func (b BuildPlan) Write(writer Writer) error

Write writes the build plan.

type Dependency

type Dependency struct {
	// Version is the optional dependency version.
	Version string `toml:"version"`

	// Metadata is additional metadata attached to the dependency.
	Metadata Metadata `toml:"metadata"`
}

Dependency represents a dependency in a build.

func (Dependency) String

func (d Dependency) String() string

String makes Dependency satisfy the Stringer interface.

type Metadata

type Metadata = map[string]interface{}

Metadata is additional metadata attached to a dependency.

type Writer

type Writer func(buildPlan BuildPlan) error

Writer is a function write writes the contents of a BuildPlan

func DefaultWriter

func DefaultWriter(index int) Writer

DefaultWriter writes the build plan to a collection of files rooted at os.Args[<INDEX>].

Jump to

Keyboard shortcuts

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