diff options
| author | chrislu <chris.lu@gmail.com> | 2025-07-01 23:16:48 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-07-01 23:16:48 -0700 |
| commit | 4aec3c3fb9ca4be8242792e58cec2fa41a1f6b34 (patch) | |
| tree | add1105316db9417da02f93617e00d89e370e89a /weed/admin/dash/handler_auth.go | |
| parent | 76d773bf882c3e67e703a5fa755ad98d30697e1a (diff) | |
| download | seaweedfs-4aec3c3fb9ca4be8242792e58cec2fa41a1f6b34.tar.xz seaweedfs-4aec3c3fb9ca4be8242792e58cec2fa41a1f6b34.zip | |
purge unused
Diffstat (limited to 'weed/admin/dash/handler_auth.go')
| -rw-r--r-- | weed/admin/dash/handler_auth.go | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/weed/admin/dash/handler_auth.go b/weed/admin/dash/handler_auth.go index c0b7d5636..986a30290 100644 --- a/weed/admin/dash/handler_auth.go +++ b/weed/admin/dash/handler_auth.go @@ -51,78 +51,3 @@ func (s *AdminServer) HandleLogout(c *gin.Context) { session.Save() c.Redirect(http.StatusSeeOther, "/login") } - -// Additional methods for admin functionality -func (s *AdminServer) GetClusterTopologyHandler(c *gin.Context) { - topology, err := s.GetClusterTopology() - if err != nil { - c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) - return - } - c.JSON(http.StatusOK, topology) -} - -func (s *AdminServer) GetMasters(c *gin.Context) { - c.JSON(http.StatusOK, gin.H{"masters": []string{s.masterAddress}}) -} - -func (s *AdminServer) GetVolumeServers(c *gin.Context) { - topology, err := s.GetClusterTopology() - if err != nil { - c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) - return - } - c.JSON(http.StatusOK, gin.H{"volume_servers": topology.VolumeServers}) -} - -func (s *AdminServer) AssignVolume(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Volume assignment not yet implemented"}) -} - -func (s *AdminServer) ListVolumes(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Volume listing not yet implemented"}) -} - -func (s *AdminServer) CreateVolume(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Volume creation not yet implemented"}) -} - -func (s *AdminServer) DeleteVolume(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Volume deletion not yet implemented"}) -} - -func (s *AdminServer) ReplicateVolume(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Volume replication not yet implemented"}) -} - -func (s *AdminServer) BrowseFiles(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "File browsing not yet implemented"}) -} - -func (s *AdminServer) UploadFile(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "File upload not yet implemented"}) -} - -func (s *AdminServer) DeleteFile(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "File deletion not yet implemented"}) -} - -func (s *AdminServer) ShowMetrics(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Metrics display not yet implemented"}) -} - -func (s *AdminServer) GetMetricsData(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Metrics data not yet implemented"}) -} - -func (s *AdminServer) TriggerGC(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Garbage collection not yet implemented"}) -} - -func (s *AdminServer) CompactVolumes(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Volume compaction not yet implemented"}) -} - -func (s *AdminServer) GetMaintenanceStatus(c *gin.Context) { - c.JSON(http.StatusNotImplemented, gin.H{"message": "Maintenance status not yet implemented"}) -} |
