(src snapshot.SourceInfo, query url.Values)
| 233 | } |
| 234 | |
| 235 | func sourceMatchesURLFilter(src snapshot.SourceInfo, query url.Values) bool { |
| 236 | if v := query.Get("host"); v != "" && src.Host != v { |
| 237 | return false |
| 238 | } |
| 239 | |
| 240 | if v := query.Get("userName"); v != "" && src.UserName != v { |
| 241 | return false |
| 242 | } |
| 243 | |
| 244 | if v := query.Get("path"); v != "" && src.Path != v { |
| 245 | return false |
| 246 | } |
| 247 | |
| 248 | return true |
| 249 | } |
| 250 | |
| 251 | func convertSnapshotManifest(m *snapshot.Manifest) *serverapi.Snapshot { |
| 252 | e := &serverapi.Snapshot{ |
no test coverage detected