Documentation
¶
Index ¶
- Constants
- type CommandDescriptor
- type CommandEntrypoint
- type CommandInvocation
- type ExecutionState
- type Executor
- func (e *Executor) Register(descriptor *CommandDescriptor, names ...string) error
- func (e *Executor) Run(ib *bytes.Buffer, opts *CommandInvocation, ob *bytes.Buffer, eb *bytes.Buffer) (*ExecutionState, error)
- func (e *Executor) RunOnRawData(opts *CommandInvocation, inData []byte) ([]byte, []byte, *ExecutionState, error)
- type ExecutorOptions
- type PipeChain
Constants ¶
View Source
const BLANK string = ""
View Source
const DEFAULT_COMMAND string = "opwire-agent-default"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandDescriptor ¶
type CommandDescriptor struct {
CommandString string
// contains filtered or unexported fields
}
type CommandEntrypoint ¶
type CommandEntrypoint struct {
Default *CommandDescriptor
Method map[string]*CommandDescriptor
}
type CommandInvocation ¶
type ExecutionState ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(opts *ExecutorOptions) (*Executor, error)
func (*Executor) Register ¶
func (e *Executor) Register(descriptor *CommandDescriptor, names ...string) error
func (*Executor) Run ¶
func (e *Executor) Run(ib *bytes.Buffer, opts *CommandInvocation, ob *bytes.Buffer, eb *bytes.Buffer) (*ExecutionState, error)
func (*Executor) RunOnRawData ¶
func (e *Executor) RunOnRawData(opts *CommandInvocation, inData []byte) ([]byte, []byte, *ExecutionState, error)
type ExecutorOptions ¶
type ExecutorOptions struct {
Command CommandDescriptor
}
Click to show internal directories.
Click to hide internal directories.