Documentation
¶
Index ¶
- type CommandExecutor
- type DefaultCommandExecutor
- func (executor *DefaultCommandExecutor) CmdStderr() io.Reader
- func (executor *DefaultCommandExecutor) CmdStdin() io.WriteCloser
- func (executor *DefaultCommandExecutor) CmdStdout() io.Reader
- func (executor *DefaultCommandExecutor) Init(name string, arg ...string)
- func (executor *DefaultCommandExecutor) Kill() error
- func (executor *DefaultCommandExecutor) Start() error
- func (executor *DefaultCommandExecutor) String() string
- func (executor *DefaultCommandExecutor) Wait() error
- type ShellMiddleware
- type ShellMiddlewareArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶
type DefaultCommandExecutor ¶
type DefaultCommandExecutor struct {
// contains filtered or unexported fields
}
func NewDefaultCommandExecutor ¶
func NewDefaultCommandExecutor() *DefaultCommandExecutor
func (*DefaultCommandExecutor) CmdStderr ¶
func (executor *DefaultCommandExecutor) CmdStderr() io.Reader
func (*DefaultCommandExecutor) CmdStdin ¶
func (executor *DefaultCommandExecutor) CmdStdin() io.WriteCloser
func (*DefaultCommandExecutor) CmdStdout ¶
func (executor *DefaultCommandExecutor) CmdStdout() io.Reader
func (*DefaultCommandExecutor) Init ¶
func (executor *DefaultCommandExecutor) Init(name string, arg ...string)
func (*DefaultCommandExecutor) Kill ¶
func (executor *DefaultCommandExecutor) Kill() error
func (*DefaultCommandExecutor) Start ¶
func (executor *DefaultCommandExecutor) Start() error
func (*DefaultCommandExecutor) String ¶
func (executor *DefaultCommandExecutor) String() string
func (*DefaultCommandExecutor) Wait ¶
func (executor *DefaultCommandExecutor) Wait() error
type ShellMiddleware ¶
type ShellMiddleware struct {
ExecutorCreator func() CommandExecutor
// contains filtered or unexported fields
}
Shell Command Runner
func NewShellMiddleware ¶
func NewShellMiddleware() ShellMiddleware
func NewShellMiddlewareWithExecutorCreator ¶
func NewShellMiddlewareWithExecutorCreator(executorCreator func() CommandExecutor) ShellMiddleware
func (ShellMiddleware) Apply ¶
func (shellMiddleware ShellMiddleware) Apply( run *models.PipelineRun, next func(pipelineRun *models.PipelineRun), executionContext *middleware.ExecutionContext, )
func (ShellMiddleware) String ¶
func (shellMiddleware ShellMiddleware) String() string
type ShellMiddlewareArguments ¶
type ShellMiddlewareArguments struct {
Args []interface{}
Dir *string
Exec string
Indefinite bool
Interactive bool
Login bool
Run *string
Quote string
}
func NewShellMiddlewareArguments ¶
func NewShellMiddlewareArguments() ShellMiddlewareArguments
Click to show internal directories.
Click to hide internal directories.