(path string)
| 322 | } |
| 323 | |
| 324 | func hasNamespaceFilter(path string) bool { |
| 325 | ss := strings.Split(path, "/") |
| 326 | for i := range ss { |
| 327 | if ss[i] == "namespaces" { |
| 328 | return true |
| 329 | } |
| 330 | } |
| 331 | return false |
| 332 | } |
| 333 | |
| 334 | func (n keywordsMatcher) Match(item interface{}) bool { |
| 335 | pageItem := item.(map[string]interface{}) |