networkneighborhoodcache

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo added in v0.2.332

type ContainerInfo struct {
	ContainerID               string
	WorkloadID                string
	InstanceTemplateHash      string
	Namespace                 string
	SeenContainerFromTheStart bool // True if container was seen from the start
}

ContainerInfo holds container metadata we need for network neighborhood mapping

type NetworkNeighborhoodCacheImpl

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

NetworkNeighborhoodCacheImpl implements the NetworkNeighborhoodCache interface

func NewNetworkNeighborhoodCache

func NewNetworkNeighborhoodCache(cfg config.Config, storageClient storage.ProfileClient, k8sObjectCache objectcache.K8sObjectCache) *NetworkNeighborhoodCacheImpl

NewNetworkNeighborhoodCache creates a new network neighborhood cache with periodic updates

func (*NetworkNeighborhoodCacheImpl) ContainerCallback added in v0.2.332

func (nnc *NetworkNeighborhoodCacheImpl) ContainerCallback(notif containercollection.PubSubEvent)

ContainerCallback handles container lifecycle events

func (*NetworkNeighborhoodCacheImpl) GetNetworkNeighborhood

func (nnc *NetworkNeighborhoodCacheImpl) GetNetworkNeighborhood(containerID string) *v1beta1.NetworkNeighborhood

GetNetworkNeighborhood gets the network neighborhood for a container

func (*NetworkNeighborhoodCacheImpl) GetNetworkNeighborhoodState added in v0.2.332

func (nnc *NetworkNeighborhoodCacheImpl) GetNetworkNeighborhoodState(containerID string) *objectcache.ProfileState

GetNetworkNeighborhoodState gets the profile state for a container

func (*NetworkNeighborhoodCacheImpl) Start added in v0.2.332

Start begins the periodic update process

Jump to

Keyboard shortcuts

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