authorization

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer interface {
	// Authorize Request
	AuthorizeRequest(r *http.Request, u *user.UserInfo) error
}

type NullAuthorizer

type NullAuthorizer struct{}

func NewNullAuthorizer

func NewNullAuthorizer() *NullAuthorizer

func (*NullAuthorizer) AuthorizeRequest

func (a *NullAuthorizer) AuthorizeRequest(r *http.Request, u *user.UserInfo) error

type RBACAuthorizer

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

func NewRBACAuthorizer

func NewRBACAuthorizer(policyName string, roleList map[string]string, apiMapping map[string][]string) (*RBACAuthorizer, error)

func (*RBACAuthorizer) AuthorizeRequest

func (a *RBACAuthorizer) AuthorizeRequest(r *http.Request, u *user.UserInfo) error

Jump to

Keyboard shortcuts

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