client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(nodes []v1.Node)

func CreateConnection

func CreateConnection(ip string) (*client, func() error)

func PrintCounters

func PrintCounters(c pb.CaptureServiceClient, req *pb.CountersRequest, reqCtx *ReqContext)

func PrintHCNLogs

func PrintHCNLogs(c pb.HCNServiceClient, req *pb.HCNRequest, reqCtx *ReqContext)

func PrintVFPCounters

func PrintVFPCounters(c pb.CaptureServiceClient, req *pb.VFPCountersRequest, reqCtx *ReqContext)

func RunCaptureStream

func RunCaptureStream(c pb.CaptureServiceClient, req *pb.CaptureRequest, reqCtx *ReqContext)

func RunStopCapture

func RunStopCapture(c pb.CaptureServiceClient, reqCtx *ReqContext)

func ValidateIPAddrs

func ValidateIPAddrs(ips []string) error

func ValidateMACAddrs

func ValidateMACAddrs(macs []string) error

func ValidateNodes

func ValidateNodes(nodes []string, winNodes []string) error

func ValidatePktType

func ValidatePktType(pktType string) error

func ValidatePods

func ValidatePods(pods []string, podNames []string) error

func ValidatePorts

func ValidatePorts(ports []string) error

func ValidateProtocols

func ValidateProtocols(protocols []string) error

func ValidateTime

func ValidateTime(time int32) error

Types

type Node

type Node struct {
	Name string
	Ip   string
}

type ReqContext

type ReqContext struct {
	Server Node
	Wg     *sync.WaitGroup
}

func (*ReqContext) Done

func (rq *ReqContext) Done()

Jump to

Keyboard shortcuts

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