Documentation ¶
Overview ¶
ssh package uses ssh and scp binaries to execute commands remotely and translate the results back to the calling node
Index ¶
- func CleanOut(out string) string
- type Args
- type CmdSSHActions
- func (c *CmdSSHActions) CopyFromHost(hostName string, _ bool, source, destination string) (string, error)
- func (c *CmdSSHActions) CopyFromHostSudo(hostName string, _ bool, sudoUser, source, destination string) (string, error)
- func (c *CmdSSHActions) CopyToHost(hostName string, _ bool, source, destination string) (string, error)
- func (c *CmdSSHActions) CopyToHostSudo(hostName string, _ bool, sudoUser, source, destination string) (string, error)
- func (c *CmdSSHActions) FindHosts(searchTerm string) (hosts []string, err error)
- func (c *CmdSSHActions) HelpText() string
- func (c *CmdSSHActions) HostExecute(mask bool, hostName string, _ bool, args ...string) (string, error)
- func (c *CmdSSHActions) HostExecuteAndStream(mask bool, hostString string, output cli.OutputHandler, _ bool, args ...string) (err error)
- func (c *CmdSSHActions) HostExecuteSudo(mask bool, hostName string, sudoUser string, args ...string) (string, error)
- func (c *CmdSSHActions) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdSSHActions ¶
type CmdSSHActions struct {
// contains filtered or unexported fields
}
CmdSSHActions depends on the scp and ssh programs being present and then assumes ssh public key auth is in place since it has no support for using password based authentication
func NewCmdSSHActions ¶
func NewCmdSSHActions(sshArgs Args) *CmdSSHActions
func (*CmdSSHActions) CopyFromHost ¶
func (*CmdSSHActions) CopyFromHostSudo ¶
func (*CmdSSHActions) CopyToHost ¶
func (*CmdSSHActions) CopyToHostSudo ¶
func (*CmdSSHActions) FindHosts ¶
func (c *CmdSSHActions) FindHosts(searchTerm string) (hosts []string, err error)
func (*CmdSSHActions) HelpText ¶
func (c *CmdSSHActions) HelpText() string
func (*CmdSSHActions) HostExecute ¶
func (*CmdSSHActions) HostExecuteAndStream ¶
func (c *CmdSSHActions) HostExecuteAndStream(mask bool, hostString string, output cli.OutputHandler, _ bool, args ...string) (err error)
func (*CmdSSHActions) HostExecuteSudo ¶
func (*CmdSSHActions) Name ¶ added in v0.8.0
func (c *CmdSSHActions) Name() string
Click to show internal directories.
Click to hide internal directories.