(ns, cluster string)
| 130 | } |
| 131 | |
| 132 | func (s *ClusterStore) getLock(ns, cluster string) *sync.RWMutex { |
| 133 | value, _ := s.locks.LoadOrStore(fmt.Sprintf("%s/%s", ns, cluster), &sync.RWMutex{}) |
| 134 | lock, _ := value.(*sync.RWMutex) |
| 135 | return lock |
| 136 | } |
| 137 | |
| 138 | // ListCluster return the list of name of cluster under the specified namespace |
| 139 | func (s *ClusterStore) ListCluster(ctx context.Context, ns string) ([]string, error) { |
no outgoing calls
no test coverage detected