lib

package
v0.5.56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 24 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(srcPath, dstPath string) (int64, error)

func CopyTree

func CopyTree(srcPath, dstPath string) error

func Export

func Export(path string, m *model.Model) error

func GenerateConfigForComponent added in v0.5.0

func GenerateConfigForComponent(c *model.Component, fs fs.FS, src, configName string, r model.Run) error

func NewSshConfigFactory

func NewSshConfigFactory(host *model.Host) *libssh.SshConfigFactoryImpl

func RenderTemplate

func RenderTemplate(src, dst string, m *model.Model, data interface{}) error

func RenderTemplateFS

func RenderTemplateFS(srcFS fs.FS, src string, dst string, m *model.Model, data interface{}) 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

func SummarizeSar(data []byte) (*model.HostSummary, error)

func TemplateFuncMap

func TemplateFuncMap(m *model.Model) template.FuncMap

Types

type Process

type Process struct {
	Cmd    *exec.Cmd
	Output bytes.Buffer
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(name string, cmd ...string) *Process

func (*Process) Run

func (prc *Process) Run() error

func (*Process) WithTail

func (prc *Process) WithTail(tail TailFunction) *Process

type TailFunction

type TailFunction func(data []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL