exec

package
v0.0.0-...-a93a756 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Runtime

func Runtime() agent.Runtime

Runtime returns the exec package agent.Runtime

Types

type Function

type Function struct {
	*runtime.Builder
	Command string
	Args    []string
}

Function is a struct which implements the agent.Runtime It executes the work for a provided node on a function to Run and uses the os/exec package to invoke a subprocess

func NewFunction

func NewFunction(command string, args ...string) *Function

NewFunction configures a new exec.Function pointer

func (*Function) Run

func (fn *Function) Run(context.Context) (*adagio.Result, error)

Run spawns a subprocess for the desired command and returns the combined output writer as an adagio Result output slice of bytes

Jump to

Keyboard shortcuts

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