Registry / auth / qor-roles

qor-roles

JSON →
library0.0.0-20201008080147-dcaf8a4646d8gogounverified

Role-based access control (RBAC) library for Go applications, part of the QOR framework.

go get github.com/qor/roles
INSTALL
IMPORT
SIG · QOR-ROLES
Q
qor-roles
authgov0.0.0-20201008080147-dcaf8a4646d8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

roles
✓ github.com/qor/roles

Defines a role and checks access permissions.

package main import ( "fmt" "github.com/qor/roles" ) func main() { role := roles.NewRole("admin") role.Allow("read", "resource") fmt.Println(role.HasAccess("admin", "read", "resource")) }
Debug
Known issues
gotchaThe QOR ecosystem is not actively maintained; may have compatibility issues with newer Go versions.
fix
Consider using a more modern RBAC library like casbin or ozzo-rbac.
affects: *
Upgrade
Version history
0.0.0-20201008080147-dcaf8a4646d8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
qor-roles — go get qor-roles · libregistry