egressmgr

package
v0.0.3-alpha2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EgressManager

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

func NewEgressManager

func NewEgressManager(logger logr.Logger, status runtimeevent.PolicyStatusRecorder, onLoss runtimeevent.LossFunc) *EgressManager

func (*EgressManager) CollectObservations

func (e *EgressManager) CollectObservations(ctx context.Context) ([]runtimeevent.Event, error)

CollectObservations drains the IPv4 and protocol observation counters of every pod with an attached policy and turns them into one event per (destination, decision) and (protocol, decision). Reads are destructive, so Count is the delta since the previous call.

func (*EgressManager) PodDeleted

func (e *EgressManager) PodDeleted(uid string) error

PodDeleted tears down the pod's egress filter and bookkeeping.

func (*EgressManager) PodEvent

func (e *EgressManager) PodEvent(pod corev1.Pod, nsLabels map[string]string, cgInfos []*containers.ContainerCgroupInfo, podEventType string) error

func (*EgressManager) RuntimePolicyEvent

func (e *EgressManager) RuntimePolicyEvent(compiledRb *compiler.EvaluationResult, rpEventType string) error

Jump to

Keyboard shortcuts

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