exec

package
v0.0.0-...-fd2add7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package exec facilitates remote execution of OS processes across workers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XCmd

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

XCmd exports chroot-ed shells.

func XCommand

func XCommand(name string, setsid bool, arg ...string) *XCmd

func (*XCmd) Run

func (x *XCmd) Run() error

Run executes the command and blocks until it completes, akin to os/exec.Cmd.Run

func (*XCmd) Start

func (x *XCmd) Start() (xstdin circuit.X, xstdout, xstderr circuit.X, err error)

Start starts the command and returns cross-interfaces to its standard input, output and error.

func (*XCmd) StartPTY

func (x *XCmd) StartPTY(stty []string) (xpty circuit.X, err error)

func (*XCmd) Wait

func (x *XCmd) Wait() error

Wait blocks until the process completes, akin to os/exec.Cmd.Wait

type YCmd

type YCmd struct {
	circuit.X // Cross-interface to *XCmd
}

YCmd facilitates usage of a cross-interface to XCmd on the caller side

func (YCmd) Run

func (y YCmd) Run() error

func (YCmd) Start

func (y YCmd) Start() (stdin io.WriteCloser, stdout, stderr io.ReadCloser, err error)

func (YCmd) Wait

func (y YCmd) Wait() error

Jump to

Keyboard shortcuts

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