exec

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Overview

Package exec provides code that can execute a script

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliRun

func CliRun(uid, gid uint32, cmd string, args ...string) (io.Reader, error)

CliRun executes specified command using local CLI interface

Types

type Executor

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

Executor represents a type that can execute a script

func New

func New(src *script.Script) *Executor

New returns an *Executor

func (*Executor) Execute

func (e *Executor) Execute() error

Execute executes the configured script

Jump to

Keyboard shortcuts

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