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)
Click to show internal directories.
Click to hide internal directories.