kube

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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) 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) UpdateDeletedPodsByIPIndex added in v1.5.0

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

func (*Database) UpdateNewPodsByIPIndex added in v1.5.0

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

Jump to

Keyboard shortcuts

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