Documentation ¶
Index ¶
- type Job
- type LocalRunner
- func (r *LocalRunner) Close() error
- func (r *LocalRunner) Connect() error
- func (r *LocalRunner) Debug() bool
- func (r *LocalRunner) Host() string
- func (r *LocalRunner) ID() string
- func (r *LocalRunner) Promet() string
- func (r *LocalRunner) Run(tr TaskRun) error
- func (r *LocalRunner) SetDebug(debug bool)
- func (r *LocalRunner) SetPromet(promet string)
- func (r *LocalRunner) Signal(sig os.Signal) error
- func (r *LocalRunner) Stderr() io.Reader
- func (r *LocalRunner) Stdin() io.WriteCloser
- func (r *LocalRunner) Stdout() io.Reader
- func (r *LocalRunner) Wait() error
- type Runner
- type SSHRunner
- func (r *SSHRunner) Close() error
- func (r *SSHRunner) Connect() error
- func (r *SSHRunner) Debug() bool
- func (r *SSHRunner) Host() string
- func (r *SSHRunner) ID() string
- func (r *SSHRunner) Promet() string
- func (r *SSHRunner) Run(tr TaskRun) error
- func (r *SSHRunner) SetDebug(debug bool)
- func (r *SSHRunner) SetPromet(promet string)
- func (r *SSHRunner) Signal(sig os.Signal) error
- func (r *SSHRunner) Stderr() io.Reader
- func (r *SSHRunner) Stdin() io.WriteCloser
- func (r *SSHRunner) Stdout() io.Reader
- func (r *SSHRunner) Wait() error
- type SSHRunnerOption
- type TaskRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalRunner ¶
type LocalRunner struct {
// contains filtered or unexported fields
}
func NewLocalRunner ¶
func NewLocalRunner() *LocalRunner
func (*LocalRunner) Close ¶
func (r *LocalRunner) Close() error
func (*LocalRunner) Connect ¶
func (r *LocalRunner) Connect() error
func (*LocalRunner) Debug ¶
func (r *LocalRunner) Debug() bool
func (*LocalRunner) Host ¶
func (r *LocalRunner) Host() string
func (*LocalRunner) ID ¶
func (r *LocalRunner) ID() string
func (*LocalRunner) Promet ¶
func (r *LocalRunner) Promet() string
func (*LocalRunner) Run ¶
func (r *LocalRunner) Run(tr TaskRun) error
func (*LocalRunner) SetDebug ¶
func (r *LocalRunner) SetDebug(debug bool)
func (*LocalRunner) SetPromet ¶
func (r *LocalRunner) SetPromet(promet string)
func (*LocalRunner) Stderr ¶
func (r *LocalRunner) Stderr() io.Reader
func (*LocalRunner) Stdin ¶
func (r *LocalRunner) Stdin() io.WriteCloser
func (*LocalRunner) Stdout ¶
func (r *LocalRunner) Stdout() io.Reader
func (*LocalRunner) Wait ¶
func (r *LocalRunner) Wait() error
type Runner ¶
type Runner interface { ID() string Connect() error Close() error Run(tr TaskRun) error Wait() error Stdin() io.WriteCloser Stderr() io.Reader Stdout() io.Reader Promet() string SetPromet(string) Host() string Debug() bool SetDebug(bool) Signal(os.Signal) error }
Runner local or remote runner for taskrun to run
type SSHRunner ¶
type SSHRunner struct {
// contains filtered or unexported fields
}
func NewSSHRunner ¶
func NewSSHRunner(host string, options ...SSHRunnerOption) *SSHRunner
func (*SSHRunner) Stdin ¶
func (r *SSHRunner) Stdin() io.WriteCloser
type SSHRunnerOption ¶
type SSHRunnerOption func(*SSHRunner)
func WithPassword ¶
func WithPassword(password string) SSHRunnerOption
func WithPort ¶
func WithPort(port uint) SSHRunnerOption
func WithUser ¶
func WithUser(user string) SSHRunnerOption
Click to show internal directories.
Click to hide internal directories.