Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecStreamExecutor ¶
type ExecStreamExecutor interface {
OpenExecStream(context.Context, machine.StreamRequest) (io.ReadCloser, error)
}
type ExecuteRequest ¶
type ExecuteRequest struct {
OperationID string `json:"operation_id"`
Context machine.OperationContext `json:"context"`
Input json.RawMessage `json:"input,omitempty"`
}
type Executor ¶
type Executor interface {
SupportedOperationIDs() []string
Execute(context.Context, machine.Operation, machine.OperationContext, json.RawMessage, ProgressReporter) (json.RawMessage, error)
}
type LogStreamExecutor ¶
type LogStreamExecutor interface {
OpenLogStream(context.Context, machine.StreamRequest) (io.ReadCloser, error)
}
type ProgressReporter ¶
type ProgressReporter func(machine.OperationProgress)
type TerminalExecutor ¶ added in v0.4.23
Click to show internal directories.
Click to hide internal directories.