common

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sInventoryCache

type K8sInventoryCache interface {
	Start()
	Stop()

	GetPods() []*v1.Pod
	GetPodByName(namespace string, name string) *v1.Pod
	GetPodByIp(ip string) *v1.Pod

	GetSvcs() []*v1.Service
	GetSvcByName(namespace string, name string) *v1.Service
	GetSvcByIp(ip string) *v1.Service
}

K8sInventoryCache is a cache of Kubernetes resources such as pods and services that can be used by operators to enrich events.

func GetK8sInventoryCache

func GetK8sInventoryCache() (K8sInventoryCache, error)

Jump to

Keyboard shortcuts

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