Documentation ¶
Index ¶
- func GenerateSSHKeyPair(bits int, email, path string) error
- func GetConfigs() *models.Config
- func GetLocalPublicSSHKey() string
- func SSHFingerprintGen(publicSSH string) string
- type Connection
- func Connect(addr, username, sshKey string) (*Connection, error)
- func GetConnection(ip string, port int, username string, password string) (*Connection, error)
- func GetConnectionBuild(ip string, port int, username string, password string) (*Connection, error)
- func RunCommand(command string, ip string, port int, username string, privateKey string) *Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSSHKeyPair ¶
Generate Key Pair
func GetConfigs ¶
func GetLocalPublicSSHKey ¶
func GetLocalPublicSSHKey() string
func SSHFingerprintGen ¶
Types ¶
type Connection ¶
func Connect ¶
func Connect(addr, username, sshKey string) (*Connection, error)
func GetConnection ¶
func GetConnectionBuild ¶
func RunCommand ¶
Click to show internal directories.
Click to hide internal directories.