shell

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XShell

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

XShell exports chroot-ed shells.

func NewXShell

func NewXShell(chroot string) *XShell

func (*XShell) Shell

func (ss *XShell) Shell() (xstdin circuit.X, xstdout, xstderr circuit.X, err error)

Shell starts a new shell in a chroot and returns a cross-interface to its standard input, output and error.

func (*XShell) ShellInteractive

func (ss *XShell) ShellInteractive() (xpty circuit.X, err error)

ShellInteractive starts a new interactive shell in a chroot and returns a cross-interface to its pseudo-terminal.

func (*XShell) Tail

func (ss *XShell) Tail(arg ...string) (xstdin circuit.X, xstdout, xstderr circuit.X, err error)

Tail … XXX: Varargs doesn't work in cross-calls. Fix this.

type YShell

type YShell struct {
	circuit.X
}

YShell facilitates cross-calls to a XShell on the client side

func (YShell) Shell

func (y YShell) Shell() (stdin io.WriteCloser, stdout, stderr io.ReadCloser, err error)

func (YShell) Tail

func (y YShell) Tail(name string, arg ...string) (stdin io.WriteCloser, stdout, stderr io.ReadCloser, err error)

Jump to

Keyboard shortcuts

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