Skip to content
Pavel Zinin edited this page Jul 2, 2019 · 5 revisions

Table of Contents

FS structure

/backend/:
vmemperor.py - entry point
auth/ - Authentication: see AuthenticatorDevelopment
constants/ - some global variables
customtask/ - XenAPI-like task for CreateVM and other non-XenAPI processes
handlers/graphql - see GraphQLAPI
handlers/rest - see Methods
singleton/ - Python singleton used for XenAdapterPool
templates/ - Linux distribution installation templates
tornadoql/ - GraphQL implementation for Tornado
utils/ - utils for obtaining user and quota info
xenadapter/ - classes corresponding for XenAPI classes (listed in __init__.py), XenObject metaclass and XenAPI event queue
xentools/ - XenAPI helpers
xentools/os.py - auto-installation helper
eventloop.py - thread launcher (see diagram above)
authentication.py - authentication base class
connman.py - RethinkDB connection manager
XenAPI.py - taken from Citrix source
createdbs.py - DB initialization code.

A diagram of concurrently running threads

Lanes

All paths relative to /backend

Clone this wiki locally