authz

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handle permission authorization http request.

func NewHandler

func NewHandler(authz authorizer.Authorizer) *Handler

NewHandler creates new authorizer handler object.

func (*Handler) Authorize

func (h *Handler) Authorize(request *restful.Request, response *restful.Response)

Authorize receive a subject access review request and determine the subject access.

func (*Handler) BatchAuthorize

func (h *Handler) BatchAuthorize(request *restful.Request, response *restful.Response)

BatchAuthorize receive multiple subject access reviews request and return determine results.

func (*Handler) RestAuthorize

func (h *Handler) RestAuthorize(request *restful.Request, response *restful.Response)

RestAuthorize receive a subject access review request and determine the subject access to be compatible with k8s restful attributes.

Jump to

Keyboard shortcuts

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