Documentation ¶
Index ¶
- func DBExec(db *sql.DB, query string, args ...interface{}) (sql.Result, error)
- func DBInit(db *sql.DB)
- func InsAgent(host string, port int, user, pass string, srv *route.Server) (installed bool)
- func NewDB(dbpath string) *sql.DB
- func NewSFTP(sshClient *ssh.Client) (sftpClient *sftp.Client, err error)
- func NewSSH(user, password, host string, port int) (sftpClient *ssh.Client, err error)
- func SFTPUpload(sftpclient *sftp.Client, localpath, remotepath string)
- func SSHExec(sshclient *ssh.Client, cmd string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SFTPUpload ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.