Versions in this module Expand all Collapse all v0 v0.4.0 Aug 3, 2025 v0.3.0 Aug 3, 2025 Changes in this version + func AddHostKeyToKnownHosts(host string, key ssh.PublicKey, knownHostsPath string) error + func ByteCountSI(b int64) string + func CurrentUser() *user.User + func EncodePrivateKeyToPEM(privateKey *ecdsa.PrivateKey) []byte + func ExpandUserHome(path string) (string, error) + func GeneratePrivateKey() (*ecdsa.PrivateKey, error) + func GeneratePublicKey(key *ecdsa.PublicKey) ([]byte, error) + func GetDefaultShell() string + func LoadIdentityFile(file string) (ssh.AuthMethod, error) + func ParseSSHUrl(url string) *sshUrl + func PrettyPrintStruct(v interface{}) + func SerializePublicKey(k ssh.PublicKey) string + func WriteKeyToFile(keyBytes []byte, keyPath string) error + type Endpoint struct + Host string + Port int + func NewEndpoint(s string) *Endpoint + func (endpoint *Endpoint) String() string + type NodeConfig struct + Host string + HostName string + IdentityFile string + Port int + ProxyJump string + StrictHostKeyChecking bool + User string + UserKnownHostsFile string + type SSHConfigParser struct + func GetSSHConfigInstance() *SSHConfigParser + func (s *SSHConfigParser) GetHostConf(host string) *NodeConfig + func (s *SSHConfigParser) GetHostNames() []string