Versions in this module Expand all Collapse all v0 v0.3.7 May 17, 2021 Changes in this version + var SshCommand string + func CopyFile(srcPath, dstPath string) (int64, error) + func CopyTree(srcPath, dstPath string) error + func DeleteRemoteFiles(factory SshConfigFactory, paths ...string) error + func Export(path string, m *model.Model) error + func KillService(factory SshConfigFactory, name string) error + func LaunchService(factory SshConfigFactory, name, cfg string) error + func RemoteConsole(factory SshConfigFactory, cmd string) error + func RemoteExec(sshConfig SshConfigFactory, cmd string) (string, error) + func RemoteExecAll(sshConfig SshConfigFactory, cmds ...string) (string, error) + func RemoteExecAllTo(sshConfig SshConfigFactory, out io.Writer, cmds ...string) error + func RemoteFileList(factory SshConfigFactory, path string) ([]os.FileInfo, error) + func RemoteKill(factory SshConfigFactory, match string) error + func RemoteKillFilter(factory SshConfigFactory, match string, anti string) error + func RemoteShell(factory SshConfigFactory) error + func RenderTemplate(src, dst string, m *model.Model, data interface{}) error + func RetrieveRemoteFiles(factory SshConfigFactory, localPath string, paths ...string) error + func SendFile(factory SshConfigFactory, localPath string, remotePath string) error + func StdoutTail(data []byte) + func SummarizeIperf(data []byte) (*model.IperfSummary, error) + func SummarizeIperfUdp(data []byte) (*model.IperfUdpSummary, error) + func SummarizeSar(data []byte) (*model.HostSummary, error) + func TemplateFuncMap(m *model.Model) template.FuncMap + type Process struct + Cmd *exec.Cmd + Output bytes.Buffer + func NewProcess(name string, cmd ...string) *Process + func (prc *Process) Run() error + func (prc *Process) WithTail(tail TailFunction) *Process + type SshConfigFactory interface + Address func() string + Config func() *ssh.ClientConfig + Hostname func() string + KeyPath func() string + Port func() int + User func() string + type SshConfigFactoryImpl struct + func NewSshConfigFactoryImpl(m *model.Model, host string) *SshConfigFactoryImpl + func (factory *SshConfigFactoryImpl) Address() string + func (factory *SshConfigFactoryImpl) Config() *ssh.ClientConfig + func (factory *SshConfigFactoryImpl) Hostname() string + func (factory *SshConfigFactoryImpl) KeyPath() string + func (factory *SshConfigFactoryImpl) Port() int + func (factory *SshConfigFactoryImpl) User() string + type TailFunction func(data []byte)