karbor/karbor/api/v1
chenying 83f97e4c41 Add default policy in code for the plan resource
This adds the basic framework for registering and using default policy
rules. Rules should be defined and returned from a module in
karbor/policies/, and then added to the list in
karbor/policies/__init__.py.

The sample file about default policy will be generated as yaml using
cmd 'tox -e genpolicy' in this patch.

A new context.can() method has been added for policy enforcement of
registered rules. It has the same parameters as the enforce() method
currently being used.

The patch add default policy in code for  plan resource in karbor.

Partial-Implements: blueprint policy-in-code
Change-Id: I88ce31ee7cff9263055cfb51f6b5da5c333c50f2
2017-09-26 19:18:31 +08:00
..
__init__.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
operation_logs.py Add operation_log API for karbor 2017-07-27 10:12:20 +08:00
plans.py Add default policy in code for the plan resource 2017-09-26 19:18:31 +08:00
protectables.py Add pod to the parent resource types of volume protectable plugins 2017-09-19 14:33:28 +08:00
providers.py Add the extra_info parameter when checkpoint being created manually 2017-08-11 11:39:57 +08:00
restores.py Remove all codes about Heat 2017-08-04 09:53:11 +08:00
router.py Add operation_log API for karbor 2017-07-27 10:12:20 +08:00
scheduled_operations.py Fix scheduled operation api validate 2017-03-23 09:31:45 +08:00
triggers.py Remove log translations 2017-03-17 05:11:16 +08:00