feat: missing endpoints

This commit is contained in:
Nicolas Meienberger
2025-08-09 18:30:33 +02:00
parent 065c629ba8
commit 388114d536
4 changed files with 67 additions and 1 deletions

View File

@@ -41,6 +41,14 @@ func main() {
http.HandleFunc("/VolumeDriver.Mount", driver.Mount)
http.HandleFunc("/VolumeDriver.Unmount", driver.Unmount)
http.HandleFunc("/VolumeDriver.Path", driver.Path)
http.HandleFunc("/VolumeDriver.Get", driver.Get)
http.HandleFunc("/VolumeDriver.List", driver.List)
// Catch all other paths to return an error
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
log.Printf("Received unknown request: %s", r.URL.Path)
http.Error(w, "Not Found", http.StatusNotFound)
})
listener, err := net.Listen("unix", socketPath)
if err != nil {