node

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.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 Node

type Node struct {
	Name       string `json:"name"`
	ExternalIP string `json:"external_ip"`
	InternalIP string `json:"internal_ip"`
}

func (*Node) ConfigureAcceptEnv

func (n *Node) ConfigureAcceptEnv(jumpbox *Node, nm *NodeManager) error

func (*Node) ConfigureInotifyWatches

func (n *Node) ConfigureInotifyWatches(jumpbox *Node, nm *NodeManager) error

func (*Node) CopyFile

func (n *Node) CopyFile(jumpbox *Node, nm *NodeManager, src string, dst string) error

func (*Node) EnableRootLogin

func (n *Node) EnableRootLogin(jumpbox *Node, nm *NodeManager) error

func (*Node) HasAcceptEnvConfigured

func (n *Node) HasAcceptEnvConfigured(jumpbox *Node, nm *NodeManager) bool

HasAcceptEnvConfigured checks if AcceptEnv is configured

func (*Node) HasCommand

func (n *Node) HasCommand(nm *NodeManager, command string) bool

func (*Node) HasFile

func (n *Node) HasFile(jumpbox *Node, nm *NodeManager, filePath string) bool

func (*Node) HasInotifyWatchesConfigured

func (n *Node) HasInotifyWatchesConfigured(jumpbox *Node, nm *NodeManager) bool

func (*Node) HasRootLoginEnabled

func (n *Node) HasRootLoginEnabled(jumpbox *Node, nm *NodeManager) bool

func (*Node) InstallOms

func (n *Node) InstallOms(nm *NodeManager) error

func (*Node) RunSSHCommand

func (n *Node) RunSSHCommand(jumpbox *Node, nm *NodeManager, username string, command string) error

func (*Node) WaitForSSH

func (n *Node) WaitForSSH(jumpbox *Node, nm *NodeManager, timeout time.Duration) error

type NodeManager

type NodeManager struct {
	FileIO  util.FileIO
	KeyPath string
}

func (*NodeManager) CopyFile

func (n *NodeManager) CopyFile(jumpboxIp string, ip string, username string, src string, dst string) error

func (*NodeManager) EnsureDirectoryExists

func (nm *NodeManager) EnsureDirectoryExists(jumpboxIp string, ip string, username string, dir string) error

EnsureDirectoryExists creates the directory on the remote node via SSH if it does not exist.

func (*NodeManager) GetClient

func (n *NodeManager) GetClient(jumpboxIp string, ip string, username string) (*ssh.Client, error)

func (*NodeManager) GetSFTPClient

func (n *NodeManager) GetSFTPClient(jumpboxIp string, ip string, username string) (*sftp.Client, error)

func (*NodeManager) RunSSHCommand

func (n *NodeManager) RunSSHCommand(jumpboxIp string, ip string, username string, command string) error

RunSSHCommand connects to the node, executes a command and streams the output

Jump to

Keyboard shortcuts

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