(node, storage string)
| 989 | } |
| 990 | |
| 991 | func (s *MockState) getStorage(node, storage string) (*MockStorage, error) { |
| 992 | s.mu.RLock() |
| 993 | defer s.mu.RUnlock() |
| 994 | |
| 995 | for _, entry := range s.Storage { |
| 996 | if entry.Node == node && entry.ID == storage { |
| 997 | return entry, nil |
| 998 | } |
| 999 | } |
| 1000 | |
| 1001 | return nil, fmt.Errorf("storage not found") |
| 1002 | } |
| 1003 | |
| 1004 | func (s *MockState) deleteStorageVolumeLocked(volID string) { |
| 1005 | for key, volumes := range s.StorageContent { |
no outgoing calls
no test coverage detected