Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps an SSH connection and provides methods for command execution.
func NewClient ¶
NewClient creates a new SSH client from the given SSH config. It returns the client ready for use, or an error if connection fails.
func (*Client) RunCommands ¶
RunCommands executes a sequence of commands in a single SSH session. Commands are joined with "&&" so that failure in any command stops execution. Returns the combined stdout+stderr output and any error.
func (*Client) UploadFile ¶
func (c *Client) UploadFile(entry config.UploadEntry, verbose bool) error
UploadFile copies a local file or directory to a remote destination via SCP over SSH. It validates that the local file exists before attempting upload.
Click to show internal directories.
Click to hide internal directories.