plan

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Execute(showPlan bool, showDiff bool, template *file.TaggedBytes, snippet *file.TaggedBytes, snippetProcessor *library.Processor, snippetVars library.InterpolatorParams, globals library.InterpolatorParams) ([]byte, error)
}

type ExecutorStep

type ExecutorStep struct {
	Snippet      string                     `yaml:"snippet,omitempty"`
	Processor    *library.Processor         `yaml:"processor,omitempty"`
	Interpolator library.InterpolatorParams `yaml:"interpolator,omitempty"`
}

type InterpolationExecutor

type InterpolationExecutor struct {
	ProcessorFactory factory.ProcessorFactory
	Interpolator     interpolator.Interpolator
	Diff             diff.Diff
	Output           io.Writer
	File             file.FileAccess
	Yaml             yaml.YamlAccess
}

func (*InterpolationExecutor) Execute

func (i *InterpolationExecutor) Execute(showPlan bool, showDiff bool, template *file.TaggedBytes, snippet *file.TaggedBytes, snippetProcessor *library.Processor, snippetVars library.InterpolatorParams, globals library.InterpolatorParams) ([]byte, error)

type Plan

type Plan struct {
	Global library.InterpolatorParams `yaml:"global,omitempty"`
	Steps  []*Step                    `yaml:"steps,omitempty"`
}

func Append

func Append(a *Plan, b *Plan) *Plan

func FromScenarioTree

func FromScenarioTree(node *library.ScenarioNode) *Plan

type Step

type Step struct {
	Snippet   string            `yaml:"snippet,omitempty"`
	Params    []TaggedParams    `yaml:"params,omitempty"`
	Processor library.Processor `yaml:"processor,omitempty"`
}

func (*Step) FlattenParams

func (s *Step) FlattenParams() library.InterpolatorParams

type TaggedParams

type TaggedParams struct {
	Tag          string                     `yaml:"tag,omitempty"`
	Interpolator library.InterpolatorParams `yaml:"interpolator,omitempty"`
}

Jump to

Keyboard shortcuts

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