Webhook represents each individual webhook.
| 78 | |
| 79 | // Webhook represents each individual webhook. |
| 80 | type Webhook struct { |
| 81 | // Handler actually processes an authentication request returning whether it was authenticated or unauthenticated, |
| 82 | // and potentially patches to apply to the handler. |
| 83 | Handler Handler |
| 84 | |
| 85 | // WithContextFunc will allow you to take the http.Request.Context() and |
| 86 | // add any additional information such as passing the request path or |
| 87 | // headers thus allowing you to read them from within the handler |
| 88 | WithContextFunc func(context.Context, *http.Request) context.Context |
| 89 | |
| 90 | setupLogOnce sync.Once |
| 91 | log logr.Logger |
| 92 | } |
| 93 | |
| 94 | // Handle processes TokenReview. |
| 95 | func (wh *Webhook) Handle(ctx context.Context, req Request) Response { |
nothing calls this directly
no outgoing calls
no test coverage detected