Documentation ¶
Index ¶
- type AndPromise
- type ArgGetter
- type Argument
- type AsUser
- type Constant
- type Context
- type EnvGetter
- type EvalPromise
- type ExecPromise
- type ExecType
- type FalsePromise
- type InDir
- type JoinArgument
- type LogPromise
- type LogType
- type NamedPromise
- type NewNotSupported
- type NotPromise
- type OrPromise
- type PipePromise
- type Promise
- type ReadvarPromise
- type RestartPromise
- type SPipePromise
- type SetEnv
- type SetvarPromise
- type TemplatePromise
- type TruePromise
- type VarGetter
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndPromise ¶
type AndPromise struct {
Promises []Promise
}
func (AndPromise) Desc ¶
func (p AndPromise) Desc(arguments []Constant) string
type Context ¶
type Context struct { Compile compileFunc ExecStdout *bytes.Buffer ExecStderr *bytes.Buffer Credential *syscall.Credential Vars Variables Args []string Env []string InDir string Verbose bool }
func NewContext ¶
func NewContext() Context
type EvalPromise ¶
////////////////////////////////////////////////////////////////////////////////
func (EvalPromise) Desc ¶
func (p EvalPromise) Desc(arguments []Constant) string
////////////////////////////////////////////////////////////////////////////////
type ExecPromise ¶
type ExecPromise struct { Type ExecType Arguments []Argument // contains filtered or unexported fields }
func (ExecPromise) Desc ¶
func (p ExecPromise) Desc(arguments []Constant) string
type ExecType ¶
type ExecType int
func (ExecType) IncrementExecCounter ¶
func (t ExecType) IncrementExecCounter()
type FalsePromise ¶
type FalsePromise struct {
Promise Promise
}
func (FalsePromise) Desc ¶
func (p FalsePromise) Desc(arguments []Constant) string
type InDir ¶
//////////////////////////////////////////////////////////////////////////////
type JoinArgument ¶
type JoinArgument struct {
Args []Argument
}
func (JoinArgument) GetValue ¶
func (this JoinArgument) GetValue(arguments []Constant, vars *Variables) string
func (JoinArgument) String ¶
func (this JoinArgument) String() string
type LogPromise ¶
func (LogPromise) Desc ¶
func (p LogPromise) Desc(arguments []Constant) string
type NamedPromise ¶
func (NamedPromise) Desc ¶
func (p NamedPromise) Desc(arguments []Constant) string
func (NamedPromise) Eval ¶
func (p NamedPromise) Eval(arguments []Constant, ctx *Context, stack string) bool
func (NamedPromise) New ¶
func (p NamedPromise) New(children []Promise, args []Argument) (Promise, error)
func (NamedPromise) String ¶
func (p NamedPromise) String() string
type NewNotSupported ¶
type NewNotSupported string
func (NewNotSupported) Error ¶
func (e NewNotSupported) Error() string
type NotPromise ¶
type NotPromise struct {
Promise Promise
}
func (NotPromise) Desc ¶
func (p NotPromise) Desc(arguments []Constant) string
type PipePromise ¶
type PipePromise struct {
Execs []ExecPromise
}
func (PipePromise) Desc ¶
func (p PipePromise) Desc(arguments []Constant) string
type ReadvarPromise ¶
func (ReadvarPromise) Desc ¶
func (p ReadvarPromise) Desc(arguments []Constant) string
type RestartPromise ¶
type RestartPromise struct {
Args []Argument
}
func (RestartPromise) Desc ¶
func (p RestartPromise) Desc(arguments []Constant) string
type SPipePromise ¶
type SPipePromise struct {
Execs []ExecPromise
}
func (SPipePromise) Desc ¶
func (p SPipePromise) Desc(arguments []Constant) string
type SetvarPromise ¶
func (SetvarPromise) Desc ¶
func (p SetvarPromise) Desc(arguments []Constant) string
type TemplatePromise ¶
func (TemplatePromise) Desc ¶
func (t TemplatePromise) Desc(arguments []Constant) string
type TruePromise ¶
type TruePromise struct {
Promise Promise
}
func (TruePromise) Desc ¶
func (p TruePromise) Desc(arguments []Constant) string
Source Files ¶
- and_promise.go
- arg_getter.go
- as_user.go
- constant.go
- env_getter.go
- eval_promise.go
- exec_promise.go
- false_promise.go
- in_dir.go
- join_getter.go
- log_promise.go
- named_promise.go
- not_promise.go
- or_promise.go
- promise.go
- readvar_promise.go
- restart_promise.go
- set_env.go
- setvar_promise.go
- template_promise.go
- true_promise.go
- var_getter.go
Click to show internal directories.
Click to hide internal directories.