jupyterhub / hubshare

A directory sharing service for JupyterHub
BSD 3-Clause "New" or "Revised" License
57 stars 21 forks source link

implement storage #12

Open minrk opened 7 years ago

minrk commented 7 years ago

Perhaps even before we get to the REST API (#6), we need to implement the storage itself. If we are importing a WebDAV server, we don't need to do much beyond mapping our ownership/permissions onto it, but if we are implementing our own API, we do.

A simple approach would be to use content-addressable storage: keep each zipfile in /ab/cd/sha256-path.zip, since we already need the sha for the API, this makes finding files very simple. We shouldn't need to unpack the archives at any point in HubShare.

Zsailer commented 5 years ago

Leaving this here.

HashFS can be used if we want to use a content-addressable storage approach.