handler

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoredumpInfo

type CoredumpInfo struct {
	FilePath       string
	FileURL        string
	FileName       string
	MD5            string
	FileSize       int64
	ExecutablePath string
}

CoredumpInfo contains information about the coredump file

type CustomHandler

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

CustomHandler executes user-defined scripts for coredump processing

func NewCustomHandler

func NewCustomHandler(script string, timeoutSeconds int) *CustomHandler

NewCustomHandler creates a new CustomHandler instance

func (*CustomHandler) Execute

func (h *CustomHandler) Execute(ctx context.Context, coredump CoredumpInfo, pod PodInfo) error

Execute runs the custom script with coredump and pod information as environment variables

type PodInfo

type PodInfo struct {
	Name          string
	Namespace     string
	UID           string
	NodeIP        string
	Image         string
	ContainerName string
	IsLegacyPath  bool // 标记是否来自旧路径格式
}

PodInfo contains information about the pod

Jump to

Keyboard shortcuts

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