genericexec

package
v1.0.0-RC3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 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 GenericExecConfig

type GenericExecConfig struct {
	Name           string
	Command        string
	Args           []string
	SuccessMessage string
	ErrorMessage   string
	Reentrant      bool
}

type GenericExecManager

type GenericExecManager struct {
	// contains filtered or unexported fields
}

func NewGenericExecManager

func NewGenericExecManager(execTaskConfigsByName map[string]GenericExecConfig, puppetConfig *puppetconfig.PuppetConfig, log *log.Logger, notifyCallback func(message string)) *GenericExecManager

func (*GenericExecManager) IsTaskConfigured

func (ctx *GenericExecManager) IsTaskConfigured(taskName string) bool

func (*GenericExecManager) RunTask

func (ctx *GenericExecManager) RunTask(taskName string, argValues TemplateGetter) <-chan GenericExecResult

type GenericExecManagerInterface

type GenericExecManagerInterface interface {
	RunTask(taskName string, getter TemplateGetter) <-chan GenericExecResult
}

type GenericExecResult

type GenericExecResult struct {
	Name     string
	ExitCode int
	StdOut   string
	StdErr   string
	Message  string
}

type TemplateGetter

type TemplateGetter interface {
	Get(string) string
}

Jump to

Keyboard shortcuts

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