kube

package
v1.8.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database added in v1.1.0

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

Database aggregates Kubernetes information from multiple sources: - the informer that keep an indexed copy of the existing pods and replicasets. - the inspected container.Info objects, indexed either by container ID and PID namespace - a cache of decorated PodInfo that would avoid reconstructing them on each trace decoration

func CreateDatabase added in v1.5.0

func CreateDatabase(kubeMetadata *kube.Metadata) Database

func StartDatabase added in v1.1.0

func StartDatabase(kubeMetadata *kube.Metadata) (*Database, error)

func (*Database) AddProcess added in v1.1.0

func (id *Database) AddProcess(pid uint32)

AddProcess also searches for the container.Info of the passed PID

func (*Database) CleanProcessCaches added in v1.7.0

func (id *Database) CleanProcessCaches(ns uint32)

func (*Database) HostNameForIP added in v1.7.0

func (id *Database) HostNameForIP(ip string) string

func (*Database) NodeInfoForIP added in v1.8.0

func (id *Database) NodeInfoForIP(ip string) *kube.NodeInfo

func (*Database) OnDeletion added in v1.1.0

func (id *Database) OnDeletion(containerID []string)

OnDeletion implements ContainerEventHandler

func (*Database) OwnerPodInfo added in v1.1.0

func (id *Database) OwnerPodInfo(pidNamespace uint32) (*kube.PodInfo, bool)

OwnerPodInfo returns the information of the pod owning the passed namespace

func (*Database) PodInfoForIP added in v1.5.0

func (id *Database) PodInfoForIP(ip string) *kube.PodInfo

func (*Database) ServiceInfoForIP added in v1.7.0

func (id *Database) ServiceInfoForIP(ip string) *kube.ServiceInfo

func (*Database) ServiceNameNamespaceForIP added in v1.8.0

func (id *Database) ServiceNameNamespaceForIP(ip string) (string, string)

func (*Database) UpdateDeletedNodesByIPIndex added in v1.8.0

func (id *Database) UpdateDeletedNodesByIPIndex(svc *kube.NodeInfo)

func (*Database) UpdateDeletedPodsByIPIndex added in v1.5.0

func (id *Database) UpdateDeletedPodsByIPIndex(pod *kube.PodInfo)

func (*Database) UpdateDeletedServicesByIPIndex added in v1.7.0

func (id *Database) UpdateDeletedServicesByIPIndex(svc *kube.ServiceInfo)

func (*Database) UpdateNewNodesByIPIndex added in v1.8.0

func (id *Database) UpdateNewNodesByIPIndex(svc *kube.NodeInfo)

func (*Database) UpdateNewPodsByIPIndex added in v1.5.0

func (id *Database) UpdateNewPodsByIPIndex(pod *kube.PodInfo)

func (*Database) UpdateNewServicesByIPIndex added in v1.7.0

func (id *Database) UpdateNewServicesByIPIndex(svc *kube.ServiceInfo)

func (*Database) UpdatePodsByIPIndex added in v1.8.0

func (id *Database) UpdatePodsByIPIndex(oldPod, newPod *kube.PodInfo)

Jump to

Keyboard shortcuts

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