purge unused
This commit is contained in:
@@ -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"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user