executor

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_STORAGE_SIZE = 2 * 1024 * 1024 // 2 MB

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Quiet          bool
	DisableCleanup bool
	ErrsDir        string
}

ExecutorConfig contains executor configuration

type Executor

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

Executor is executor struct

func NewExecutor

func NewExecutor(cfg *Config) *Executor

NewExecutor create new executor struct

func (*Executor) Run

func (e *Executor) Run(r *recipe.Recipe, tags []string) bool

Run run recipe on given executor

func (*Executor) Validate

func (e *Executor) Validate(r *recipe.Recipe, cfg *ValidationConfig) []error

Validate validates recipe

type ValidationConfig

type ValidationConfig struct {
	Tags               []string
	IgnoreDependencies bool
	IgnorePrivileges   bool
}

ValidationConfig is config for validation

Jump to

Keyboard shortcuts

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