exec

package
v0.1.0-raplpha....-c86f6ab Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instruction

type Instruction struct {
	Name       string            `yaml:"name"`
	Command    string            `yaml:"command"`
	Arguments  []string          `yaml:"arguments"`
	Parameters map[string]string `yaml:"parameters"`
}

type Mixin

type Mixin struct {
	*context.Context

	Step Step
}

Exec is the logic behind the exec mixin

func New

func New() *Mixin

New exec mixin client, initialized with useful defaults.

func (*Mixin) Execute

func (m *Mixin) Execute() error

func (*Mixin) Install

func (m *Mixin) Install(commandFile string) error

func (*Mixin) LoadInstruction

func (m *Mixin) LoadInstruction(commandFile string) error

func (*Mixin) PrintVersion

func (m *Mixin) PrintVersion()

func (*Mixin) Uninstall

func (m *Mixin) Uninstall(commandFile string) error

type Step

type Step struct {
	Description string              `yaml:"description"`
	Outputs     []config.StepOutput `yaml:"outputs"`
	Instruction Instruction         `yaml:"exec"`
}

type TestMixin

type TestMixin struct {
	*Mixin
	TestContext *context.TestContext
}

func NewTestMixin

func NewTestMixin(t *testing.T) *TestMixin

NewTestMixin initializes a helm mixin, with the output buffered, and an in-memory file system.

Jump to

Keyboard shortcuts

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