This repo contains the IDL definitions for the Xapi storage interface which allow arbitrary types of storage to be managed and connected to VMs as virtual disks.
Please read the generated API docs.
See also the example implementation in the python/examples directory which comprises a minimal functional SR.