Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandManager ¶
type CommandManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(runner *state.TaskRunner) *CommandManager
NewManager creates a new CommandManager.
func (*CommandManager) Connect ¶
func (m *CommandManager) Connect(r *http.Request, w http.ResponseWriter, task *state.Task, websocketID string) error
Connect upgrades the HTTP connection and connects to the given websocket.
func (*CommandManager) Ensure ¶
func (m *CommandManager) Ensure() error
Ensure is part of the overlord.StateManager interface.
type ExecArgs ¶
type ExecArgs struct { Command []string Environment map[string]string WorkingDir string Timeout time.Duration UserID *int GroupID *int Terminal bool Interactive bool SplitStderr bool Width int Height int }
ExecArgs holds the arguments for a command execution.
type ExecMetadata ¶
ExecMetadata is the metadata returned from an Exec call.
Click to show internal directories.
Click to hide internal directories.