Documentation
¶
Index ¶
- type Command
- func (c *Command) Cmd(_ context.Context)
- func (c *Command) CombinedOutput(ctx context.Context) ([]byte, error)
- func (c *Command) OnCommandStart(fn func())
- func (c *Command) Output(ctx context.Context) ([]byte, []byte, error)
- func (c *Command) Run(ctx context.Context) error
- func (c *Command) StderrBytes() []byte
- func (c *Command) StdoutBytes() []byte
- func (c *Command) Sudo(_ context.Context)
- func (c *Command) WithEnv(env map[string]string)
- func (c *Command) WithSSHArgs(_ ...string)
- func (c *Command) WithStderrHandler(h func(line string))
- func (c *Command) WithStdoutHandler(h func(line string))
- func (c *Command) WithTimeout(t time.Duration)
- type File
- type NodeInterface
- type Script
- func (s *Script) Execute(ctx context.Context) ([]byte, error)
- func (s *Script) ExecuteBundle(ctx context.Context, parentDir, bundleDir string) ([]byte, error)
- func (s *Script) Sudo()
- func (s *Script) WithBundlerOpts(opts ...connection.BundlerOption)
- func (s *Script) WithCleanupAfterExec(doCleanup bool)
- func (s *Script) WithEnvs(envs map[string]string)
- func (s *Script) WithExecuteUploadDir(string)
- func (s *Script) WithNoLogStepOutOnError(bool)
- func (s *Script) WithStdoutHandler(handler func(string))
- func (s *Script) WithTimeout(timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) CombinedOutput ¶
func (*Command) OnCommandStart ¶
func (c *Command) OnCommandStart(fn func())
func (*Command) StderrBytes ¶
func (*Command) StdoutBytes ¶
func (*Command) WithSSHArgs ¶
func (*Command) WithStderrHandler ¶
func (*Command) WithStdoutHandler ¶
func (*Command) WithTimeout ¶
type NodeInterface ¶
type NodeInterface struct {
// contains filtered or unexported fields
}
func NewDefaultNodeInterface ¶
func NewDefaultNodeInterface() *NodeInterface
NewDefaultNodeInterface Deprecated: use NewNodeInterface
func NewNodeInterface ¶
func NewNodeInterface(sett settings.Settings) *NodeInterface
func (*NodeInterface) Command ¶
func (n *NodeInterface) Command(name string, args ...string) connection.Command
func (*NodeInterface) File ¶
func (n *NodeInterface) File() connection.File
func (*NodeInterface) UploadScript ¶
func (n *NodeInterface) UploadScript(scriptPath string, args ...string) connection.Script
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
func (*Script) ExecuteBundle ¶
func (*Script) WithBundlerOpts ¶
func (s *Script) WithBundlerOpts(opts ...connection.BundlerOption)
func (*Script) WithCleanupAfterExec ¶
func (*Script) WithExecuteUploadDir ¶
func (*Script) WithNoLogStepOutOnError ¶
func (*Script) WithStdoutHandler ¶
func (*Script) WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.