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.
Click to show internal directories.
Click to hide internal directories.