Categorygithub.com/windomz/go-rbac
repositorypackage
1.0.0
Repository: https://github.com/windomz/go-rbac.git
Documentation: pkg.go.dev

# README

go-rbac

Build Status License

A simplified role-based access control (RBAC) implementation, inspired by gorbac

v1.0.0 status

Purpose

  • Only three objects: identity, role and permission
  • One to many relationship between identity and roles.
  • One to many relationship between role and permissions.
  • One to many relationship between role and parent roles(inheritance relationship).

Features

  • An identity has one or more roles.
  • A role has one or more permissions.
  • A role can inherit one or more other roles(inheriting their permissions).
  • Both identity, role, permission are defined by ID string.
  • Pure no third party library dependent.

Installation

go get -u github.com/WindomZ/go-rbac

License

The MIT License