Documentation ¶
Index ¶
- func CopyFile(srcPath, dstPath string) (int64, error)
- func CopyTree(srcPath, dstPath string) error
- func Export(path string, m *model.Model) error
- func GenerateConfigForComponent(c *model.Component, fs fs.FS, src, configName string, r model.Run) error
- func NewSshConfigFactory(host *model.Host) *libssh.SshConfigFactoryImpl
- func RenderTemplate(src, dst string, m *model.Model, data interface{}) error
- func RenderTemplateFS(srcFS fs.FS, src string, dst string, m *model.Model, data interface{}) 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
- type TailFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConfigForComponent ¶ added in v0.5.0
func NewSshConfigFactory ¶
func NewSshConfigFactory(host *model.Host) *libssh.SshConfigFactoryImpl
func RenderTemplateFS ¶
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 ¶
func SummarizeSar(data []byte) (*model.HostSummary, error)
Types ¶
type Process ¶
func NewProcess ¶
func (*Process) WithTail ¶
func (prc *Process) WithTail(tail TailFunction) *Process
type TailFunction ¶
type TailFunction func(data []byte)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.