Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Casbin adapter implementation for Minio/AWS S3 storage

License

Notifications You must be signed in to change notification settings

Soluto/casbin-minio-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

casbin-minio-adapter

License: MIT Go Report Card Build Status Coverage Status Godoc

Casbin adapter implementation using Minio/AWS S3 policy storage

Installation

go get github.com/Soluto/casbin-minio-adapter

Usage

import (
    minioadapter "github.com/Soluto/casbin-minio-adapter"
    "github.com/casbin/casbin"
)

func main() {

    adapter, _ := minioadapter.NewAdapter("http://minio-endpoint", "accessKey", "secretKey", false, "casbin-bucker", "policy.csv")

    enforcer := casbin.NewSyncedEnforcer("rbac_model.conf", adapter)

}

Related pojects

Additional Usage Examples

For real-world example visit Tweek.

License

This project is under MIT License. See the LICENSE file for the full license text.

About

Casbin adapter implementation for Minio/AWS S3 storage

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages