events

package
v0.0.0-...-edced62 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DidEventOccur

func DidEventOccur(client *testclient.ClientSet, namespace, node string, event TestEvent, timeout time.Duration) (bool, error)

Types

type TestEvent

type TestEvent struct {
	InterfaceName      string
	SourceAddress      string
	DestinationAddress string
	Action             ingressnodefwiov1alpha1.IngressNodeFirewallActionType
	Protocol           ingressnodefwiov1alpha1.IngressNodeFirewallRuleProtocolType
	// transport protocols only
	DestinationPort string
	// ICMP protocols
	IcmpType int
	IcmpCode int
}

func GetICMPTestEvent

func GetICMPTestEvent(protocol ingressnodefwiov1alpha1.IngressNodeFirewallRuleProtocolType, inf, sourcePodIP,
	destinationPodIP string, icmpCode, icmpType int) TestEvent

func GetTransportTestEvent

func GetTransportTestEvent(protocol ingressnodefwiov1alpha1.IngressNodeFirewallRuleProtocolType, inf, sourcePodIP,
	destinationPodIP, destinationPort string) TestEvent

Jump to

Keyboard shortcuts

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