Documentation
¶
Index ¶
- Variables
- func DisableGatherer()
- func EnableGatherer(l *zap.SugaredLogger)
- func GetPodMeta(ns Namespace, pod PodName, cid ContainerID) (bool, *podMeta)
- func PutMeta(podData *corev1.Pod)
- type ContainerID
- type ContainerName
- type K8sMetaInformation
- type MetaItem
- type MetaSaver
- type Namespace
- type PodName
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)
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
Click to show internal directories.
Click to hide internal directories.