meta

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetaData = make(meta)

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

	MetaWaitTimeout = 120 * time.Second

	// some debugging shit
	DisableMetaUpdates = false

	CriType    = "docker"
	NodeLabels = make(map[string]string)

	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 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