utils

package
v1.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec added in v0.9.1

func Exec(name string, arg ...string) error

func GetClientSet

func GetClientSet() (*kubernetes.Clientset, error)

func IsIPv4 added in v0.9.0

func IsIPv4(ipFamily string) bool

func IsIPv6 added in v0.9.0

func IsIPv6(ipFamily string) bool

func ParseNFQLB added in v0.8.0

func ParseNFQLB(output string) int

func PodExec

func PodExec(pod *corev1.Pod, container string, command []string) (string, error)

func PodHasNetworkInterface

func PodHasNetworkInterface(pod *corev1.Pod, container string, interfaceSubName string) (bool, error)

func VIPPort added in v0.9.0

func VIPPort(vip string, port int) string

func WithTimeout added in v1.0.4

func WithTimeout(timeout string) option

Types

type CTraffic added in v0.8.0

type CTraffic struct {
	NConn int
	Rate  int
}

func (*CTraffic) AnalyzeTraffic added in v0.8.0

func (ct *CTraffic) AnalyzeTraffic(output []byte) (map[string]int, int, error)

func (*CTraffic) GetCommand added in v0.8.0

func (ct *CTraffic) GetCommand(ipPort string, protocol string, options ...option) string

type MConnect added in v0.8.0

type MConnect struct {
	NConn int
}

func (*MConnect) AnalyzeTraffic added in v0.8.0

func (mc *MConnect) AnalyzeTraffic(output []byte) (map[string]int, int, error)

func (*MConnect) GetCommand added in v0.8.0

func (mc *MConnect) GetCommand(ipPort string, protocol string, options ...option) string

type StreamStatus added in v0.8.0

type StreamStatus struct {
	Trench  string
	Conduit string
	Stream  string
	Status  string
}

func ParseTargetWatch added in v0.8.0

func ParseTargetWatch(output string) []*StreamStatus

type TrafficGenerator added in v0.8.0

type TrafficGenerator interface {
	GetCommand(ipPort string, protocol string, options ...option) string
	AnalyzeTraffic([]byte) (map[string]int, int, error)
}

type TrafficGeneratorHost added in v0.8.0

type TrafficGeneratorHost struct {
	TrafficGeneratorCommand string
}

func (*TrafficGeneratorHost) SendTraffic added in v0.8.0

func (tgh *TrafficGeneratorHost) SendTraffic(tg TrafficGenerator, trench string, namespace string, ipPort string, protocol string, options ...option) (map[string]int, int)

Jump to

Keyboard shortcuts

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