MCPcopy Create free account
hub / github.com/1Panel-dev/KubePi / hasNamespaceFilter

Function hasNamespaceFilter

internal/api/v1/proxy/proxy.go:324–332  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

322}
323
324func 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
334func (n keywordsMatcher) Match(item interface{}) bool {
335 pageItem := item.(map[string]interface{})

Callers 1

KubernetesAPIProxyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected