ssh

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(authType, keyPath, pswrd, host, port, username string) *ssh.Client

func DbDump

func DbDump(conn *ssh.Client, remoteDir string)

func Disconnect

func Disconnect(conn *ssh.Client)

func RunCommand

func RunCommand(conn *ssh.Client, cmd string) string

func Sync

func Sync(remoteDir string)

Types

type RemoteDbStruct

type RemoteDbStruct struct {
	Host           string `json:"host"`
	Dbname         string `json:"dbname"`
	Username       string `json:"username"`
	Password       string `json:"password"`
	Active         string `json:"active"`
	Model          string `json:"model"`
	Engine         string `json:"engine"`
	InitStatements string `json:"initStatements"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL