meta

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetaData = &metaCache{
		PodMeta:    make(meta),
		CriType:    "",
		NodeLabels: nil,
	}

	MetaFileSaver = &MetaSaver{}

	DeletedPodsCacheSize = 1024

	MaintenanceInterval = 15 * time.Second
	MetaExpireDuration  = 5 * time.Minute

	MetaWaitTimeout = 120 * time.Second

	// some debugging shit
	DisableMetaUpdates = false

	SelfNodeName string
)

Functions

func DisableGatherer added in v0.40.0

func DisableGatherer()

func EnableGatherer added in v0.40.0

func EnableGatherer(l *zap.SugaredLogger)

func GetPodMeta added in v0.40.0

func GetPodMeta(ns Namespace, pod PodName, cid ContainerID) (bool, *podMeta)

func PutMeta added in v0.40.0

func PutMeta(podData *corev1.Pod)

Types

type ContainerID added in v0.40.0

type ContainerID string

type ContainerName added in v0.40.0

type ContainerName string

type K8sMetaInformation

type K8sMetaInformation struct {
	Namespace     string
	PodName       string
	ContainerName string
	ContainerID   string
	Pod           *podMeta
}

func NewK8sMetaInformation

func NewK8sMetaInformation(fullFilename string) (K8sMetaInformation, error)

func (K8sMetaInformation) GetData

func (m K8sMetaInformation) GetData() map[string]any

type MetaItem added in v0.40.0

type MetaItem struct {
	Namespace     Namespace
	PodName       PodName
	ContainerName ContainerName
	ContainerID   ContainerID
}

type MetaSaver added in v0.72.0

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

func NewMetaSaver added in v0.72.0

func NewMetaSaver(metaFile string) *MetaSaver

type Namespace added in v0.40.0

type Namespace string

type PodName added in v0.40.0

type PodName string

Jump to

Keyboard shortcuts

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