func NewS3h(host, user, password, keyfile, cmd string, output, err_out io.Writer, mgr *job.Member) (s3h *Sssh) { m, _ := mgr.NewMember(host) s3h = &Sssh{ User: user, Password: password, Keyfile: keyfile, Output: output, Errout: err_out, Cmd: cmd, Host: host, Timeout: 5, } s3h.Member = m return }
func NewScp(host, user, password, keyfile, destfile, perm string, data []byte, mgr *job.Member) (scp *Scp) { m, _ := mgr.NewMember(host) scp = &Scp{ host, user, password, keyfile, destfile, perm, data, 5, m, } return }