net

package
v0.0.0-...-9c67f8c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeOffset = time.Now()

Functions

func GetKernelNetworkEvent

func GetKernelNetworkEvent(pidList []int, sidecarOpt SidecarOpt, podName string)

GetKernelNetworkEvent is an entrance to monitor network events

func GetRequestOverSidecarEvent

func GetRequestOverSidecarEvent(sidecarPidList []int, servicePidList []int, portList []int, podName string)

Types

type AcknowledgementsInPod

type AcknowledgementsInPod struct {
	// contains filtered or unexported fields
}

type AcknowledgementsOutPod

type AcknowledgementsOutPod struct {
	// contains filtered or unexported fields
}

type ConnectIdType

type ConnectIdType int

type ConnectionEstablishmentInPod

type ConnectionEstablishmentInPod struct {
	// contains filtered or unexported fields
}

type ConnectionEstablishmentOutPod

type ConnectionEstablishmentOutPod struct {
	// contains filtered or unexported fields
}

type ConnectionTerminationInPod

type ConnectionTerminationInPod struct {
	// contains filtered or unexported fields
}

type ConnectionTerminationOutPod

type ConnectionTerminationOutPod struct {
	// contains filtered or unexported fields
}

type ConnectionType

type ConnectionType int32
const (
	EST     ConnectionType = 0
	TRA     ConnectionType = 1
	TER     ConnectionType = 2
	ACK     ConnectionType = 3
	UDP     ConnectionType = 4
	UNKNOWN ConnectionType = 5
)

type DataTransferInPod

type DataTransferInPod struct {
	// contains filtered or unexported fields
}

type DataTransferOutPod

type DataTransferOutPod struct {
	// contains filtered or unexported fields
}

type DirectionType

type DirectionType int32
const (
	SIDECAR DirectionType = 0 // from service to sidecar
	SERVICE DirectionType = 1 // from sidecar to service
	CALLER  DirectionType = 2 // from pod to remote
	POD     DirectionType = 3 // from remote to pod
	REMOTE  DirectionType = 4 // from local host to remote host
	LOCAL   DirectionType = 5 // from remote host to local host
	OTHER   DirectionType = 6
)

type RequestOverSidecar

type RequestOverSidecar struct {
	SidecarAccept  SidecarAcceptEvent
	SidecarConnect SidecarConnectEvent
	ServiceAccept  ServiceAcceptEvent
}

type RequestOverSidecarKey

type RequestOverSidecarKey struct {
	SidecarConnect SidecarConnectEvent
}

type RequestOverSidecarValue

type RequestOverSidecarValue struct {
	SidecarAccept  SidecarAcceptEvent
	SidecarConnect SidecarConnectEvent
	ServiceAccept  ServiceAcceptEvent
	Ok             bool
}

type ServiceAcceptEvent

type ServiceAcceptEvent tcpaccept.Event

type SidecarAcceptAndSidecarConnectKey

type SidecarAcceptAndSidecarConnectKey struct {
	Pid int
	Tid int
}

type SidecarAcceptAndSidecarConnectValue

type SidecarAcceptAndSidecarConnectValue struct {
	SidecarAccept  SidecarAcceptEvent
	SidecarConnect SidecarConnectEvent
	Ok             bool
}

type SidecarAcceptEvent

type SidecarAcceptEvent tcpaccept.Event

type SidecarConnectAndServiceAcceptKey

type SidecarConnectAndServiceAcceptKey struct {
	SidecarIp   string // SAddr of SidecarConnectEvent, DAddr of ServiceAcceptEvent, S and D are always the same anyway
	SidecarPort int    // LPort of SidecarConnectEvent, DPort of ServiceAcceptEvent
}

type SidecarConnectAndServiceAcceptValue

type SidecarConnectAndServiceAcceptValue struct {
	SidecarConnect SidecarConnectEvent
	ServiceAccept  ServiceAcceptEvent
	Ok             bool
}

type SidecarConnectEvent

type SidecarConnectEvent tcpconnect.Event

type SidecarOpt

type SidecarOpt struct {
	SidecarPort int
	ServicePort int
	LocalIP     string
	PodIp       string
	NodeIp      string
}

Jump to

Keyboard shortcuts

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