Documentation ¶
Index ¶
- Variables
- func CheckDockerProcessor(p *DockerProcessor) error
- type DockerProcessor
- func (p *DockerProcessor) Cancel()
- func (p *DockerProcessor) Cleanup(removeScriptFile bool) error
- func (p *DockerProcessor) ExtraLubanParams() string
- func (p *DockerProcessor) PreCheck() (string, error)
- func (p *DockerProcessor) Prepare(commandContent string) error
- func (p *DockerProcessor) SideEffect() error
- func (p *DockerProcessor) SyncRun(stdoutWriter io.Writer, stderrWriter io.Writer, stdinReader io.Reader) (int, int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInconsistentExecProcessState = errors.New("Exec session in the container terminated but process still running")
)
Functions ¶
func CheckDockerProcessor ¶
func CheckDockerProcessor(p *DockerProcessor) error
CheckDockerProcessor performs some pre-checking logics to determine whether Docker runtime should be used for execution.
Types ¶
type DockerProcessor ¶
type DockerProcessor struct { TaskId string // Fundamental properties of command process ContainerId string ContainerName string // may be filled when only container id specified CommandType string CommandContent string Timeout int // Additional execution attributes supported by docker WorkingDirectory string Username string // contains filtered or unexported fields }
func (*DockerProcessor) Cancel ¶
func (p *DockerProcessor) Cancel()
func (*DockerProcessor) Cleanup ¶
func (p *DockerProcessor) Cleanup(removeScriptFile bool) error
func (*DockerProcessor) ExtraLubanParams ¶
func (p *DockerProcessor) ExtraLubanParams() string
func (*DockerProcessor) PreCheck ¶
func (p *DockerProcessor) PreCheck() (string, error)
PreCheck method of DockerProcessor struct continues to perform pre-checking actions left by CheckDockerProcessor() function.
func (*DockerProcessor) Prepare ¶
func (p *DockerProcessor) Prepare(commandContent string) error
func (*DockerProcessor) SideEffect ¶
func (p *DockerProcessor) SideEffect() error
Click to show internal directories.
Click to hide internal directories.