Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Executor ¶
func Executor(target string, config *ssh.ClientConfig) nescript.ExecFunc
Executor provides an ExecFunc that will start the script/cmd process on an SSH target. The target must be provided in the form of ip:port along with the ssh client config, specifing factors such as HostKeyAuth and the Auth method. As executing a command over SSH must be done by passing a single string, this ExecFunc will convert the given cmd/script to a string, thus this will use the formatter associated with the cmd/script.
Types ¶
type SSHProcess ¶
type SSHProcess struct {
// contains filtered or unexported fields
}
Process represents a single instance of the script running or completed on the local device.
func (*SSHProcess) Close ¶
func (p *SSHProcess) Close()
func (*SSHProcess) Kill ¶
func (p *SSHProcess) Kill() error
func (*SSHProcess) Write ¶
func (p *SSHProcess) Write(input string) error
Click to show internal directories.
Click to hide internal directories.