restrict

(β˜… 113)

RBAC/ABAC authorization library for Go.

  • .gitignore
  • access_manager.go
  • access_manager_deps.go
  • access_manager_test.go
  • access_request.go
  • authorization_errors.go
  • CHANGELOG.md
  • common_errors.go
  • condition.go
  • condition_empty.go
  • condition_empty_test.go
  • condition_equal.go
  • condition_equal_test.go
  • condition_test.go
  • go.mod
  • go.sum
  • LICENSE
  • mocks_test.go
  • permission.go
  • permission_test.go
  • policy_definition.go
  • policy_manager.go
  • policy_manager_test.go
  • README.md
  • resource.go
  • role.go
  • role_test.go
  • storage_adapter.go
  • subject.go
  • value_descriptor.go
  • value_descriptor_test.go
  • value_source.go
  • value_source_test.go

# Installation Guide

1. Get the code
git clone https://github.com/el-mike/restrict

Downloads the entire project code from GitHub to your computer.

cd restrict

Moves into the project folder you just downloaded.

2. Go

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
go build ./...

Compiles the Go program into an executable.

go run .

Runs the Go program directly without a separate build step.

βœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.
// repository documentation