Implement mirror functions that are fit to be used with external NOMAD deployments
- Add a new endpoint to serve files. This is necessary to copy the raw and archive files to an OASIS. Ideally all files are served with a single call. Only the non restricted files must be served.
- Add a new endpoint to serve a list of all users. OASIS deployments should use this instead of accessing the user management.
The cli.client.mirror command should use the new file endpoint by default, and use options to allow the current local copy, move, link operations.
The endpoints should be implemented in
nomad/app/api/mirror.py. Both endpoints will require a new resource, e.g.