plans

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package plans contains the plans structure.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoStages is an error that can be returned from Plan.Valid.
	ErrNoStages = errors.New("no stages found")
)

Functions

This section is empty.

Types

type MetaPlan added in v0.5.0

type MetaPlan struct {
	Plans []string `yaml:"plans"`
}

MetaPlan is a representation of a meta plan.

func (*MetaPlan) UnmarshalYAML added in v0.5.0

func (m *MetaPlan) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML is a custom yaml unmarshaller for MetaPlan's.

type Plan

type Plan struct {
	Environment yaml.StringOrSlice `yaml:"environment"`
	Stages      []stages.Stage     `yaml:"stages"`
	Merge       bool               `yaml:"merge"`
}

Plan is the representation of a Plan.

func (*Plan) Execute

func (p *Plan) Execute(path string, tasks map[string]tasks.Task, env []string, st *state.State) error

Execute runs the plan.

func (*Plan) Valid added in v0.11.2

func (p *Plan) Valid() error

Valid validates the plan.

Jump to

Keyboard shortcuts

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