handlers

package
v0.0.0-...-614d85d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RBACHandler

type RBACHandler interface {
	Authorize(rbacRequest *rbac.Request) rbac.Decision

	AuthorizeHTTP(r *http.Request) rbac.Decision
}

RBACHandler defines APIs to handle RBAC authorization

func NewRBACHandler

func NewRBACHandler(etcdAddress string, customerName string) (RBACHandler, error)

NewRBACHandler loads role-bindings of the specific customer

Jump to

Keyboard shortcuts

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