Files
kubesphere/pkg/models/monitoring/expressions/registry.go
huanggze fc56333d3c monitoring: some bug fix
Signed-off-by: huanggze <loganhuang@yunify.com>
2020-04-24 21:00:59 +08:00

10 lines
221 B
Go

package expressions
type labelReplaceFn func(expr, ns string) (string, error)
var ReplaceNamespaceFns = make(map[string]labelReplaceFn)
func register(name string, fn labelReplaceFn) {
ReplaceNamespaceFns[name] = fn
}