cmd

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arping

func Arping(client *pod.Builder, destIPAddr string) (string, error)

Arping exec arping cmd inside given pod.

func Curl

func Curl(client *pod.Builder, sourceIPAddr, destIPAddr, ipFamily string, containerName ...string) (string, error)

Curl exec curl cmd inside given pod.

func DefineNGNXAndSleep

func DefineNGNXAndSleep() []string

DefineNGNXAndSleep runs NGNX server.

func DefineRoute

func DefineRoute(dstNet, nextHop string) []string

DefineRoute creates route.

func DefineRouteAndSleep

func DefineRouteAndSleep(dstNet, nextHop string) []string

DefineRouteAndSleep creates route and appends sleep CMD.

func SetRouteOnPod

func SetRouteOnPod(client *pod.Builder, dstNet, nextHop string) (bytes.Buffer, error)

SetRouteOnPod adds route to the given pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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