Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSFTPExecutor ¶
NewSFTPExecutor creates a new SFTP executor for file transfers.
func NewSSHExecutor ¶
Types ¶
type BastionConfig ¶
BastionConfig represents bastion/jump host connection info
type Client ¶
type Config ¶
type Config struct {
User string
Host string
Port string
Key string
Password string
StrictHostKey bool // Enable strict host key checking (defaults to true)
KnownHostFile string // Path to known_hosts file (defaults to ~/.ssh/known_hosts)
Shell string // Shell for remote command execution (e.g., "/bin/bash")
ShellArgs []string // Additional shell arguments (e.g., -e, -o pipefail)
Timeout time.Duration // Connection timeout (defaults to 30s)
Bastion *BastionConfig // Optional bastion/jump host configuration
}
Config represents SSH connection info
Click to show internal directories.
Click to hide internal directories.