Documentation
¶
Index ¶
- Variables
- 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 Figlet(text string)
- func FigletMini(text string)
- 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 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 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
- func TimeToMilliseconds(t time.Time) int64
- type Process
- type SshConfigFactory
- type 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
Constants ¶
This section is empty.
Variables ¶
View Source
var SshCommand string
Functions ¶
func DeleteRemoteFiles ¶ added in v0.3.5
func DeleteRemoteFiles(factory SshConfigFactory, paths ...string) error
func FigletMini ¶
func FigletMini(text string)
func KillService ¶
func KillService(factory SshConfigFactory, name string) error
func LaunchService ¶
func LaunchService(factory SshConfigFactory, name, cfg string) error
func RemoteConsole ¶
func RemoteConsole(factory SshConfigFactory, cmd string) error
func RemoteExec ¶
func RemoteExec(sshConfig SshConfigFactory, cmd string) (string, error)
func RemoteFileList ¶ added in v0.3.5
func RemoteFileList(factory SshConfigFactory, path string) ([]os.FileInfo, error)
func RemoteKill ¶
func RemoteKill(factory SshConfigFactory, match string) error
func RemoteKillFilter ¶ added in v0.3.5
func RemoteKillFilter(factory SshConfigFactory, match string, anti string) error
func RemoteShell ¶
func RemoteShell(factory SshConfigFactory) error
func RetrieveRemoteFiles ¶ added in v0.3.5
func RetrieveRemoteFiles(factory SshConfigFactory, localPath string, paths ...string) error
func StdoutTail ¶
func StdoutTail(data []byte)
func SummarizeIperf ¶
func SummarizeIperf(data []byte) (*model.IperfSummary, error)
func SummarizeIperfUdp ¶
func SummarizeIperfUdp(data []byte) (*model.IperfUdpSummary, error)
func SummarizeSar ¶ added in v0.3.5
func SummarizeSar(data []byte) (*model.HostSummary, error)
func TimeToMilliseconds ¶
Types ¶
type Process ¶
func NewProcess ¶
func (*Process) WithTail ¶
func (prc *Process) WithTail(tail TailFunction) *Process
type SshConfigFactory ¶ added in v0.3.5
type SshConfigFactoryImpl ¶ added in v0.3.5
type SshConfigFactoryImpl struct {
// contains filtered or unexported fields
}
func NewSshConfigFactoryImpl ¶ added in v0.3.5
func NewSshConfigFactoryImpl(m *model.Model, host string) *SshConfigFactoryImpl
func (*SshConfigFactoryImpl) Address ¶ added in v0.3.5
func (factory *SshConfigFactoryImpl) Address() string
func (*SshConfigFactoryImpl) Config ¶ added in v0.3.5
func (factory *SshConfigFactoryImpl) Config() *ssh.ClientConfig
func (*SshConfigFactoryImpl) Hostname ¶ added in v0.3.5
func (factory *SshConfigFactoryImpl) Hostname() string
func (*SshConfigFactoryImpl) KeyPath ¶ added in v0.3.5
func (factory *SshConfigFactoryImpl) KeyPath() string
func (*SshConfigFactoryImpl) Port ¶ added in v0.3.5
func (factory *SshConfigFactoryImpl) Port() int
func (*SshConfigFactoryImpl) User ¶ added in v0.3.5
func (factory *SshConfigFactoryImpl) User() string
type TailFunction ¶
type TailFunction func(data []byte)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.