policy

package
v0.0.0-...-be294a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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

func Mapper

func Mapper(ketoPolicy model.KetoPolicy, userMap map[string]model.Author) model.Policy

Mapper map policy

func Router

func Router() chi.Router

Router - Group of medium router

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL