ssh

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

ssh package uses ssh and scp binaries to execute commands remotely and translate the results back to the calling node

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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(sshKey, sshUser string) *CmdSSHActions

func (*CmdSSHActions) CopyFromHost

func (c *CmdSSHActions) CopyFromHost(hostName string, _ bool, source, destination string) (string, error)

func (*CmdSSHActions) CopyFromHostSudo added in v0.2.2

func (c *CmdSSHActions) CopyFromHostSudo(hostName string, _ bool, _, source, destination string) (string, error)

func (*CmdSSHActions) CopyToHost added in v0.3.0

func (c *CmdSSHActions) CopyToHost(hostName string, _ bool, source, destination string) (string, error)

func (*CmdSSHActions) CopyToHostSudo added in v0.3.0

func (c *CmdSSHActions) CopyToHostSudo(hostName string, _ bool, _, source, destination string) (string, error)

func (*CmdSSHActions) FindHosts

func (c *CmdSSHActions) FindHosts(searchTerm string) (hosts []string, err error)

func (*CmdSSHActions) HelpText added in v0.3.0

func (c *CmdSSHActions) HelpText() string

func (*CmdSSHActions) HostExecute

func (c *CmdSSHActions) HostExecute(hostName string, _ bool, args ...string) (string, error)

func (*CmdSSHActions) HostExecuteAndStream added in v0.3.0

func (c *CmdSSHActions) HostExecuteAndStream(hostString string, output cli.OutputHandler, _ bool, args ...string) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL