Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIPForVersion ¶ added in v0.34.0
func GetIPForVersion(data datasource.Data, version, ipAddr datasource.FieldAccessor) (string, error)
Types ¶
type K8sInventoryCache ¶
type K8sInventoryCache interface { Start() Stop() GetPods() []*SlimPod GetPodByName(namespace string, name string) *SlimPod GetPodByIp(ip string) *SlimPod GetSvcs() []*SlimService GetSvcByName(namespace string, name string) *SlimService GetSvcByIp(ip string) *SlimService }
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)
type SlimObjectMeta ¶ added in v0.33.0
type SlimPod ¶ added in v0.33.0
type SlimPod struct { metav1.TypeMeta `json:",inline"` SlimObjectMeta `json:",inline"` Spec SlimPodSpec `json:"spec"` Status SlimPodStatus `json:"status"` }
SlimPod is a reduced version of v1.Pod, it only contains the fields that are needed to enrich events.
func NewSlimPod ¶ added in v0.33.0
type SlimPodSpec ¶ added in v0.33.0
type SlimPodStatus ¶ added in v0.33.0
type SlimService ¶ added in v0.33.0
type SlimService struct { metav1.TypeMeta `json:",inline"` SlimObjectMeta `json:",inline"` Spec SlimServiceSpec `json:"spec"` }
SlimService is a reduced version of v1.Service, it only contains the fields that are needed to enrich events.
func NewSlimService ¶ added in v0.33.0
func NewSlimService(s *v1.Service) *SlimService
type SlimServiceSpec ¶ added in v0.33.0
type SlimServiceSpec struct {
ClusterIP string `json:"clusterIP"`
}
Click to show internal directories.
Click to hide internal directories.