similecat / apron_language Goto Github PK
View Code? Open in Web Editor NEWindepend apron language.
independ apron language.
/* File name: Readme */ The project is used as an independent permission language executor. To execute a permission checking, you need: 1. create the evaluator with permission descriptions. 2. create a Access Control Request, and assign this to evaluator. 3. run the evaluator. Sample code as followed: eval = CreateEvaluator(); eval.permReq = req; return eval.execute(); To make the evaluator run correctly, you need to write extra code within your controller: 1. Methods to transfer API call and its parameters to unified ACL request. 2. A wrapper TopologyManager to implement the interface of ITopologyManager. 1) ACL request. ACL need to check following permissions. So any request's related value should be set. |flow_predicate #flow_predicate_ |topo #topo_ |ACTION action #action_ |ownership #ownership_ |max_priority #max_priority_ |ownership #flow_table_ |notification #notification_ |statistics #statistics_ (1) For example, if APP is trying to use flow_mod to add a new flow. Set the "type" as OFType.FLOW_MOD. (optional) "switchID" should be set. (required) the "match" part should be set, including ip, port, input e.g. set the action list "actions". "actions" consists of a list of "OFAction". set them according to detailed flow mod. set the priority of the flow. Example(2), if APP is trying to send PACKET_OUT. Set the "type" as OFType.FLOW_MOD. (required) "switchID" should be set. (required) the "match" part should be set, including ip, port, input e.g. (required) Example(3), if APP is trying to access to the response(event) from switch. Set the notification level the APP wanted(just INTERCEPTION or want to modify the event: maybe modify the event, drop the event, prevent the event processed by others). Example(4), if APP want to access statistics. Set the statistics level according the parameters. if app want to get the statistics of the switch, then set switch_level. if app want to get the statistics of switch port, then set port_level. if app want to get the statistics of flows, then flow_level.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.