local

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultEnable is default state for local execution
	DefaultEnable = false

	//DefaultEnableOutput enabled stdout logging
	DefaultEnableOutput = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled       bool `toml:"enabled"`
	EnabledOutput bool `toml:"enable-output"`
}

Config represents the meta configuration.

func NewConfig

func NewConfig() Config

NewConfig builds a new configuration with default values.

func (Config) Validate

func (c Config) Validate() error

Validate the config

type ExecutionData

type ExecutionData struct {
	Command   string
	Arguments []string
}

ExecutionData is used to determine settings for the request

type ExecutionProvider

type ExecutionProvider struct {
	Logger *logrus.Logger
	Config Config
}

ExecutionProvider fills in the interface

func NewExecutionProvider

func NewExecutionProvider(conf Config, logger *logrus.Logger) *ExecutionProvider

NewExecutionProvider creates a new ExecutionProvider

func (*ExecutionProvider) Execute

func (p *ExecutionProvider) Execute(t interface{}, r *provider.Response) error

Execute runs a task

Jump to

Keyboard shortcuts

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