handler

package
v2.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package handler provides an interface to handle K8s webhook requests, including authentication and authorization requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(http.ResponseWriter, *http.Request) error

Func is HTTP request handler function with error return.

type 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.

func New

func New(a service.Athenz) Handler

New returns a Handler with the given Athenz service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL