(ns, cluster string)
| 52 | } |
| 53 | |
| 54 | func (handler *ClusterHandler) getLock(ns, cluster string) *sync.RWMutex { |
| 55 | value, _ := handler.locks.LoadOrStore(fmt.Sprintf("%s/%s", ns, cluster), &sync.RWMutex{}) |
| 56 | lock, _ := value.(*sync.RWMutex) |
| 57 | return lock |
| 58 | } |
| 59 | |
| 60 | func (handler *ClusterHandler) List(c *gin.Context) { |
| 61 | namespace := c.Param("namespace") |