iperf3workload

package
v0.0.0-...-0821b2d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateService

func CreateService(apiClient *clients.Settings,
	serviceName string,
	selectorLabels map[string]string,
	nodePort int32) (*service.Builder, error)

CreateService Create a service for a workload. Return nil on success, otherwise return an error.

func CreateWorkload

func CreateWorkload(apiClient *clients.Settings,
	deploymentName string,
	nodeName string,
	workloadLabels map[string]string,
	iperf3ToolImage string) (*deployment.Builder, error)

CreateWorkload Create a workload with the iperf3 image, the iperf3 command will be launched from either LaunchIperf3Client() or LaunchIperf3Server(). Return nil on success, otherwise return an error.

func DeleteService

func DeleteService(apiClient *clients.Settings, serviceName string) error

DeleteService Deletes a service. Return nil on success, otherwise return an error.

func DeleteWorkload

func DeleteWorkload(apiClient *clients.Settings, deploymentName string, workloadLabels string) error

DeleteWorkload Delete a workload. Return nil on success, otherwise return an error.

func LaunchIperf3Command

func LaunchIperf3Command(apiClient *clients.Settings,
	deploymentName string,
	iperf3Command []string,
	containerLabels string) bool

LaunchIperf3Command launches the iperf3 command in an already running workload Return nil on success, otherwise return an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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