ssh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandResult

type CommandResult struct {
	Command string // The command that was executed
	Status  string // Command status (e.g., "success", "fail")
	Message string // Command output or error message
	Error   error  // Any error that occurred
}

CommandResult represents the result of an SSH command execution.

func ExecuteSSHCommand

func ExecuteSSHCommand(cfg model.ServerStruct, command string) (*CommandResult, error)

ExecuteSSHCommand executes a command on a remote server via SSH.

Jump to

Keyboard shortcuts

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