networkneighborhoodcache

package
v0.2.376 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 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
}

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 versioned.SpdxV1beta1Interface, 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