Documentation ¶
Index ¶
- Variables
- func Composer(oID int, sID int, inputPolicy policyReq) model.KetoPolicy
- func GetAllPolicies() ([]model.KetoPolicy, error)
- func GetPermissions(ketoPolicy model.KetoPolicy, userID uint) []model.Permission
- func Mapper(ketoPolicy model.KetoPolicy, userMap map[string]model.Author) model.Policy
- func Router() chi.Router
Constants ¶
This section is empty.
Variables ¶
View Source
var DataFile = "./data/policies.json"
DataFile default json data file
Functions ¶
func Composer ¶
func Composer(oID int, sID int, inputPolicy policyReq) model.KetoPolicy
Composer create keto policy
func GetAllPolicies ¶
func GetAllPolicies() ([]model.KetoPolicy, error)
GetAllPolicies gives list of all keto policies
func GetPermissions ¶
func GetPermissions(ketoPolicy model.KetoPolicy, userID uint) []model.Permission
GetPermissions gives permissions from policy for given userID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.