network

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfraShim

type InfraShim interface {
	NodeToNode(src *v1.Node, oif string, dst *v1.Node, packet *model.Packet) ([]model.Suspicion, error)
	NodeToExternal(src *v1.Node, oif string, packet *model.Packet) ([]model.Suspicion, error)
	ExternalToNode(dst *v1.Node, packet *model.Packet) ([]model.Suspicion, error)
	ExternalToLoadBalancer(dst *v1.Service, packet *model.Packet, backends []LoadBalancerBackend) ([]model.Suspicion, error)
}

type LoadBalancerBackend

type LoadBalancerBackend struct {
	IP   string
	ID   string
	Port uint16
}

type Network

type Network interface {
	Diagnose(ctx *ctx.Context, src model.Endpoint, dst model.Endpoint) ([]model.Suspicion, *model.PacketPath, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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