podresolver

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodInfo

type PodInfo struct {
	Name          string
	Namespace     string
	UID           string
	NodeIP        string // Pod 所在节点的 IP,从 status.hostIP 获取
	Image         string
	ContainerName string
	IsLegacyPath  bool // 标记是否来自旧路径格式
}

func Resolve

func Resolve(corefilePath string, enableLookup bool) PodInfo

Resolve 从 coredump 文件路径解析 Pod 和容器信息 支持新旧两种路径格式: 新格式:/data/coredog-system/dumps/<namespace>/<pod-name>/<container-name>/core.xxx 旧格式:/corefile/<namespace>/<admission-uid>/core.xxx 注意:NodeIP 必须通过 Kubernetes API 从 Pod 的 status.hostIP 获取

Jump to

Keyboard shortcuts

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