runner

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart interface {
	RunnerDirectory() string
	RuntimeDefaults() map[string]interface{}
}

type Command

type Command struct {
	Pre  string `yaml:"pre"`
	Post string `yaml:"post"`
	Run  string `yaml:"run"`
	Name string `yaml:"name"`
}

func (Command) Start

func (c Command) Start(dir string) CommandOutput

type CommandOutput

type CommandOutput struct {
	PreOutput, PostOutput, Output string
	Error                         error
	Command                       Command
	Testrun                       bool
	Elapsed                       float64
}

func (CommandOutput) Log

func (r CommandOutput) Log()

type Commands

type Commands []Command

func (Commands) Start

func (l Commands) Start(dir string) []CommandOutput

type Options

type Options struct {
	Commands Commands `yaml:"commands"`
	Pre      []string `yaml:"pre"`
	Post     []string `yaml:"post"`
}

type TestRunner

type TestRunner struct{}

func (*TestRunner) Run

func (t *TestRunner) Run(c Chart, o Options) ([]CommandOutput, error)

Jump to

Keyboard shortcuts

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