0b47eaac6a
This commit removes the unused methods _determine_version_cap and _get_subcloud_users from the subclouds API and dcorch. Test plan: 1. PASS: Run tox successfully 2. PASS: Confirm that there are no references to the removed code 3. PASS: Deploy a subcloud Story: 2007082 Task: 51262 Change-Id: I697eca02fc6c7c33d07cf4cf5cec13b6c541f173 Signed-off-by: Raphael Lima <Raphael.Lima@windriver.com> |
||
---|---|---|
.. | ||
controllers | ||
policies | ||
__init__.py | ||
api_config.py | ||
app.py | ||
policy.py | ||
README.rst |
api
DC DBsync API is Web Server Gateway Interface (WSGI) application to receive and process API calls, including keystonemiddleware to do the authentication, parameter check and validation. It receives API calls from DC Orchestrator to read/write/update resources in Databases on behalf of DC Orchestrator. The API calls are processed in synchronous way, so that the caller will wait for the response to come back.
Multiple DC DBsync API could run in parallel, and also can work in multi-worker mode.
Multiple DC DBsync API is designed and run in stateless mode.
Setup and encapsulate the API WSGI app
- app.py:
-
Setup and encapsulate the API WSGI app, including integrate the keystonemiddleware app
- api_config.py:
-
API configuration loading and init
- enforcer.py
-
Enforces policies on the version2 APIs