(fltrs client.Filters)
| 222 | } |
| 223 | |
| 224 | func namespaceFromFilters(fltrs client.Filters) string { |
| 225 | // FIXME(thaJeztah): more elegant way for this? Should we have a utility for this? |
| 226 | var label string |
| 227 | for fltr := range fltrs["label"] { |
| 228 | label = fltr |
| 229 | break |
| 230 | } |
| 231 | return strings.TrimPrefix(label, convert.LabelNamespace+"=") |
| 232 | } |
| 233 | |
| 234 | func belongToNamespace(id, namespace string) bool { |
| 235 | return strings.HasPrefix(id, namespace+"_") |
no outgoing calls
no test coverage detected
searching dependent graphs…