runners

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Template    *template.Template `yaml:"template"`
	Description string             `yaml:"description"`
	Parameters  map[string]string  `yaml:"parameters"`
	ForEach     bool               `yaml:"for_each"`
}

func (Runner) Exec

func (r Runner) Exec(data interface{}) error

type Runners

type Runners map[string]Runner

func Defaults

func Defaults() Runners

func New

func New(path string) (Runners, error)

func (*Runners) AdHoc

func (r *Runners) AdHoc(t string) (name string, err error)

AdHoc appends a new runner from a template string and returns its (generated) name/key

Jump to

Keyboard shortcuts

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