Files
Oliver Bähler 0abc77b56a feat: diverse performance improvements (#1861)
Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
2026-02-03 22:05:00 +01:00

23 lines
460 B
Go

// Copyright 2020-2026 Project Capsule Authors
// SPDX-License-Identifier: Apache-2.0
package route
import "github.com/projectcapsule/capsule/pkg/runtime/handlers"
type pvc struct {
handlers []handlers.Handler
}
func PVC(handler ...handlers.Handler) handlers.Webhook {
return &pvc{handlers: handler}
}
func (w *pvc) GetHandlers() []handlers.Handler {
return w.handlers
}
func (w *pvc) GetPath() string {
return "/persistentvolumeclaims/validating"
}