kube

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 3 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 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

Jump to

Keyboard shortcuts

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