Documentation ¶
Index ¶
- Constants
- Variables
- type Result
- type ScpConfig
- type Server
- func (server *Server) PRunCmd(crs chan Result)
- func (server *Server) PRunScp(crs chan Result)
- func (server *Server) PullScp() (err error)
- func (server *Server) RunCmd() (result string, err error)
- func (server *Server) RunScpDir() (err error)
- func (server *Server) RunScpFile() (result string, err error)
- func (server *Server) SRunCmd() Result
- func (s *Server) SetCmd(cmd string)
- func (server *Server) SetPsw()
Constants ¶
View Source
const ( NO_EXIST = "0" IS_FILE = "1" IS_DIR = "2" )
Variables ¶
View Source
var ( PASSWORD_SOURCE = "db" NO_PASSWORD = "GET PASSWORD ERROR\n" )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Ip string Port string User string Psw string Action string Cmd string FileName string RemotePath string Force bool Timeout int }
func NewCmdServer ¶
func NewPullServer ¶
func NewScpServer ¶
func (*Server) RunScpFile ¶
RunScp1() only can transport file to remote host
Click to show internal directories.
Click to hide internal directories.