authorizer

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package authorizer provides Role Based Access Control (RBAC)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorizer

func Authorizer(name string, r *http.Request) error

Authorizer checks if the user has access to the resource

func Init

func Init(rbacRulePath string)

Init sets the environments for securemgr

Types

type AuthorizationImpl added in v1.1.0

type AuthorizationImpl struct{}

AuthorizationImpl structure

type User

type User struct {
	Name string
	Role string
}

User structure describes user properties

type Users

type Users []User

Users is a list of users

Jump to

Keyboard shortcuts

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