Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

handler

v0.0.0-20221221104012-6e392965653d
github.com/AthenZ/garm/handler

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

4 matches

Top ↑

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.

Dependency graph