(w http.ResponseWriter, r *http.Request)
| 1335 | } |
| 1336 | |
| 1337 | func (s *DockerServer) removeNetwork(w http.ResponseWriter, r *http.Request) { |
| 1338 | id := mux.Vars(r)["id"] |
| 1339 | _, index, err := s.findNetwork(id) |
| 1340 | if err != nil { |
| 1341 | http.Error(w, err.Error(), http.StatusNotFound) |
| 1342 | return |
| 1343 | } |
| 1344 | s.netMut.Lock() |
| 1345 | defer s.netMut.Unlock() |
| 1346 | s.networks[index] = s.networks[len(s.networks)-1] |
| 1347 | s.networks = s.networks[:len(s.networks)-1] |
| 1348 | w.WriteHeader(http.StatusNoContent) |
| 1349 | } |
| 1350 | |
| 1351 | func (s *DockerServer) networksConnect(w http.ResponseWriter, r *http.Request) { |
| 1352 | id := mux.Vars(r)["id"] |
nothing calls this directly
no test coverage detected