Versions in this module Expand all Collapse all v0 v0.7.1 Dec 6, 2013 Changes in this version + func Register(name string, handler Handler) error + func Tail(src io.Reader, n int, dst *[]string) + type Engine struct + func New(root string) (*Engine, error) + func (eng *Engine) Hack_GetGlobalVar(key string) interface{} + func (eng *Engine) Hack_SetGlobalVar(key string, val interface{}) + func (eng *Engine) Job(name string, args ...string) *Job + func (eng *Engine) Logf(format string, args ...interface{}) (n int, err error) + func (eng *Engine) Register(name string, handler Handler) error + func (eng *Engine) Root() string + func (eng *Engine) String() string + type Hack map[string]interface + type Handler func(*Job) Status + type Input struct + func NewInput() *Input + func (i *Input) Add(src io.Reader) error + func (i *Input) Read(p []byte) (n int, err error) + type Job struct + Args []string + Eng *Engine + Name string + Stderr *Output + Stdin *Input + Stdout *Output + func (job *Job) CallString() string + func (job *Job) DecodeEnv(src io.Reader) error + func (job *Job) EncodeEnv(dst io.Writer) error + func (job *Job) Environ() map[string]string + func (job *Job) Error(err error) (int, error) + func (job *Job) Errorf(format string, args ...interface{}) (n int, err error) + func (job *Job) ExportEnv(dst interface{}) (err error) + func (job *Job) Getenv(key string) (value string) + func (job *Job) GetenvBool(key string) (value bool) + func (job *Job) GetenvInt(key string) int64 + func (job *Job) GetenvList(key string) []string + func (job *Job) ImportEnv(src interface{}) (err error) + func (job *Job) Logf(format string, args ...interface{}) (n int, err error) + func (job *Job) Printf(format string, args ...interface{}) (n int, err error) + func (job *Job) Run() error + func (job *Job) Setenv(key, value string) + func (job *Job) SetenvBool(key string, value bool) + func (job *Job) SetenvInt(key string, value int64) + func (job *Job) SetenvJson(key string, value interface{}) error + func (job *Job) SetenvList(key string, value []string) error + func (job *Job) StatusString() string + func (job *Job) String() string + type Output struct + func NewOutput() *Output + func (o *Output) Add(dst io.Writer) error + func (o *Output) AddPipe() (io.Reader, error) + func (o *Output) AddString(dst *string) error + func (o *Output) AddTail(dst *[]string, n int) error + func (o *Output) Close() error + func (o *Output) Write(p []byte) (n int, err error) + type Status int + const StatusErr + const StatusNotFound + const StatusOK