Example #1
0
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
}
Example #2
0
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
}