iperf

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ServerCtlPort = 22865

ServerCtlPort control port for the service

View Source
const ServerDataPort = 43433

ServerDataPort data port for the service

Variables

This section is empty.

Functions

func ParseResults

func ParseResults(stdout *bytes.Buffer) (sample.Sample, error)

ParseResults accepts the stdout from the execution of the benchmark. It also needs The NetConfig to determine aspects of the workload the user provided. It will return a Sample struct or error

func Run

func Run(c *kubernetes.Clientset, rc rest.Config, nc config.Config, client apiv1.PodList, serverIP string) (bytes.Buffer, error)

Run will invoke iperf3 in a client container

func TestSupported

func TestSupported(test string) bool

TestSupported Determine if the test is supproted for driver

Types

type Result

type Result struct {
	Data struct {
		TCPStream struct {
			Rate float32 `json:"bits_per_second"`
		} `json:"sum_received"`
		UDPStream struct {
			Rate        float32 `json:"bits_per_second"`
			LossPercent float32 `json:"lost_percent"`
		} `json:"sum"`
	} `json:"end"`
}

Jump to

Keyboard shortcuts

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