util

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBExec

func DBExec(db *sql.DB, query string, args ...interface{}) (sql.Result, error)

func DBInit

func DBInit(db *sql.DB)

func InsAgent

func InsAgent(host string, port int, user, pass string, srv *route.Server) (installed bool)

func NewDB

func NewDB(dbpath string) *sql.DB

func NewSFTP

func NewSFTP(sshClient *ssh.Client) (sftpClient *sftp.Client, err error)

func NewSSH

func NewSSH(user, password, host string, port int) (sftpClient *ssh.Client, err error)

func SFTPUpload

func SFTPUpload(sftpclient *sftp.Client, localpath, remotepath string)

func SSHExec

func SSHExec(sshclient *ssh.Client, cmd string) (string, error)

Types

This section is empty.

Directories

Path Synopsis
log

Jump to

Keyboard shortcuts

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