runtime

package
v0.0.0-...-31ca664 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package runtime provides the means to execute on a given AST.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyID        = errors.New("empty ID")
	ErrUndefined      = errors.New("undefined identifier")
	ErrConsumed       = errors.New("identifier has been consumed")
	ErrAlreadyDefined = errors.New("identifier is already in use")
	ErrInvalidState   = errors.New("invalid state")
	ErrUnknownSource  = errors.New("unknown source class")
	ErrUnknownSink    = errors.New("unknown sink class")
)

Functions

This section is empty.

Types

type Runtime

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

func NewRuntime

func NewRuntime(log hclog.Logger, plugins ...plugin.Plugin) *Runtime

func (*Runtime) DryRun

func (r *Runtime) DryRun(ast ...dsl.AstNode) error

func (*Runtime) Execute

func (r *Runtime) Execute(asts ...dsl.AstNode) error

func (*Runtime) ExecuteString

func (r *Runtime) ExecuteString(cmd string) error

func (*Runtime) Start

func (r *Runtime) Start(_ctx context.Context) error

func (*Runtime) Stop

func (r *Runtime) Stop() (rerr error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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