ssh

package
v0.0.0-...-28f0728 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SshDispatcher

type SshDispatcher struct {
	NumNodes int
	// Remotes to SSH to. First address is the master node.
	Remotes        []dispatch.UserQualifiedHostname
	PrivateKeyFile string
	// contains filtered or unexported fields
}

func NewSshDispatcher

func NewSshDispatcher(remotes []dispatch.UserQualifiedHostname, privateKeyFile string) (*SshDispatcher, error)

func (*SshDispatcher) Cleanup

func (s *SshDispatcher) Cleanup() error

func (*SshDispatcher) DownloadProject

func (s *SshDispatcher) DownloadProject(node dispatch.Node, source string) error

func (*SshDispatcher) GetMasterNode

func (s *SshDispatcher) GetMasterNode() dispatch.Node

func (*SshDispatcher) GetNodes

func (s *SshDispatcher) GetNodes() []dispatch.Node

func (*SshDispatcher) GetWorkerNodes

func (s *SshDispatcher) GetWorkerNodes() []dispatch.Node

func (*SshDispatcher) Ready

func (s *SshDispatcher) Ready() bool

func (*SshDispatcher) SendCommands

func (s *SshDispatcher) SendCommands(node dispatch.Node, cmds ...dispatch.Command) error

func (*SshDispatcher) SendCommandsContext

func (s *SshDispatcher) SendCommandsContext(ctx context.Context, node dispatch.Node, cmds ...dispatch.Command) error

func (*SshDispatcher) SendFile

func (s *SshDispatcher) SendFile(node dispatch.Node, src string, dst string) error

Jump to

Keyboard shortcuts

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