Documentation ¶
Index ¶
- func SSHClient(host string, port int, user, private, passphrase string) (*ssh.Client, error)
- type Cmd
- func (c *Cmd) CombinedOutput() (string, error)
- func (c *Cmd) Exit() error
- func (c *Cmd) Output() (string, error)
- func (c *Cmd) Run() error
- func (c *Cmd) SetLogger(logger *slog.Logger)
- func (c *Cmd) SetPty(h, w int)
- func (c *Cmd) Start() error
- func (c *Cmd) StderrPipe() (io.Reader, error)
- func (c *Cmd) StdinPipe() (io.WriteCloser, error)
- func (c *Cmd) StdoutPipe() (io.Reader, error)
- func (c *Cmd) String() string
- func (c *Cmd) Wait() error
- type ExitError
- type PtyOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cmd ¶
type Cmd struct { Name string Args []string Stdin io.Reader Stdout, Stderr io.Writer // contains filtered or unexported fields }
func (*Cmd) CombinedOutput ¶
type PtyOptions ¶
type PtyOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.