handler
v0.0.0-20221221104012-6e392965653d
github.com/AthenZ/garm/handler
Documentation
pkg.go.dev ↗Package handler provides an interface to handle K8s webhook requests, including authentication and authorization requests.
Types
Func
type Func func(http.ResponseWriter, *http.Request) error
Func is HTTP request handler function with error return.
Handler
type Handler interface {
Authenticate(http.ResponseWriter, *http.Request) error
Authorize(http.ResponseWriter, *http.Request) error
}
Handler is an interface to handle authentication and authorization requests.
New
func New(a service.Athenz) Handler
New returns a Handler with the given Athenz service.