We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f4719b commit cd9166fCopy full SHA for cd9166f
pkg/webhook/admission/webhook.go
@@ -42,6 +42,13 @@ type Handler interface {
42
Handle(context.Context, atypes.Request) atypes.Response
43
}
44
45
+// NameGetter gets the name of the Handler
46
+type NameGetter interface {
47
+ // Name returns the name of the Handler.
48
+ // The name should be a feature name that can be the identifier for the handler.
49
+ Name() string
50
+}
51
+
52
// HandlerFunc implements Handler interface using a single function.
53
type HandlerFunc func(context.Context, atypes.Request) atypes.Response
54
0 commit comments