webhook

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CorefileVolumeName         = "coredog-corefile"
	CorefileMountPath          = "/corefile"            // 默认挂载路径
	CoredogAnnotationInject    = "coredog.io/inject"    // "true" 开启注入
	CoredogAnnotationContainer = "coredog.io/container" // 指定容器名,多个用逗号分隔
	CoredogAnnotationPath      = "coredog.io/path"      // core dump 路径,默认 /corefile
	CoredogPathBase            = "/data/coredog-system/dumps"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MutateHandler

type MutateHandler struct {
	// 可以添加配置选项
	Enabled    bool
	PathBase   string
	MountPath  string
	VolumeName string
}

func NewMutateHandler

func NewMutateHandler() *MutateHandler

func (*MutateHandler) ServeHTTP

func (h *MutateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Server

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

func NewServer

func NewServer(certFile, keyFile string, port int) *Server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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