restrict
RBAC/ABAC authorization library for Go.
File Explorer
Download Latest Version (.zip)- pre-commit
- prepare-commit-msg
- dev.yml
- master.yml
- refresh-pkg.yml
- v2.yml
- errors.go
- file_adapter.go
- file_adapter_deps.go
- file_adapter_test.go
- in_memory_adapter.go
- in_memory_adapter_test.go
- mocks_test.go
- basic_usage.go
- error_handling_example.go
- models.go
- policy_example.go
- policy_example.json
- policy_example.yaml
- custom_condition_test.go
- integration_test.go
- models_test.go
- policies_test.go
- test_policy.json
- test_policy.yaml
- slices_utils.go
- slices_utils_test.go
- type_utils.go
- type_utils_test.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 RecommendedPrerequisites
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
Was this content helpful?
(0 ratings)
