filter

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTKEAttributes

func ConvertTKEAttributes(ctx context.Context, attr authorizer.Attributes) authorizer.Attributes

ConvertTKEAttributes converts attributes parsed by apiserver compatible with casbin enforcer

func UnprotectedAuthorized

func UnprotectedAuthorized(attributes authorizer.Attributes) authorizer.Decision

UnprotectedAuthorized checks a request attribute has privileged to pass authorization.

func WithTKEAuthorization

func WithTKEAuthorization(handler http.Handler, a authorizer.Authorizer, s runtime.NegotiatedSerializer, ignoreAuthPathPrefixes []string) http.Handler

WithTKEAuthorization passes all tke-auth authorized requests on to handler, and returns a forbidden error otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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