Documentation
¶
Index ¶
- type ContainerInfo
- type NetworkNeighborhoodCacheImpl
- func (nnc *NetworkNeighborhoodCacheImpl) ContainerCallback(notif containercollection.PubSubEvent)
- func (nnc *NetworkNeighborhoodCacheImpl) GetNetworkNeighborhood(containerID string) *v1beta1.NetworkNeighborhood
- func (nnc *NetworkNeighborhoodCacheImpl) GetNetworkNeighborhoodState(containerID string) *objectcache.ProfileState
- func (nnc *NetworkNeighborhoodCacheImpl) Start(ctx context.Context)
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
func (nnc *NetworkNeighborhoodCacheImpl) Start(ctx context.Context)
Start begins the periodic update process
Click to show internal directories.
Click to hide internal directories.