execd

package module
v0.0.0-...-6b8dcbc Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2015 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevNull devNull

useful for black-holing input or output from Exec()

Functions

func NewArgBodyReader

func NewArgBodyReader(in io.Reader) *argBodyReader

func NewArgBodyWriter

func NewArgBodyWriter(out io.Writer) *argBodyWriter

func NewBodyReader

func NewBodyReader(in io.Reader) *bodyReader

func NewBodyWriter

func NewBodyWriter(out io.Writer) *bodyWriter

Types

type Client

type Client struct {
	net.Conn
}

func DialClient

func DialClient(network, addr string) (*Client, error)

func NewClient

func NewClient(conn net.Conn) *Client

func (*Client) Exec

func (c *Client) Exec(in io.Reader, out io.Writer, args ...string) error

func (*Client) ExecString

func (c *Client) ExecString(input string, args ...string) (output string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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