SYMBOL INDEX (138 symbols across 12 files) FILE: injectproxy/alerts.go method alerts (line 19) | func (r *routes) alerts(w http.ResponseWriter, req *http.Request) { FILE: injectproxy/alerts_test.go function TestGetAlerts (line 25) | func TestGetAlerts(t *testing.T) { FILE: injectproxy/enforce.go type PromQLEnforcer (line 26) | type PromQLEnforcer struct method Enforce (line 62) | func (ms *PromQLEnforcer) Enforce(q string) (string, error) { method EnforceNode (line 87) | func (ms PromQLEnforcer) EnforceNode(node parser.Node) error { method EnforceMatchers (line 176) | func (ms PromQLEnforcer) EnforceMatchers(targets []*labels.Matcher) ([... function NewPromQLEnforcer (line 32) | func NewPromQLEnforcer(errorOnReplace bool, ms ...*labels.Matcher) *Prom... function NewPromQLEnforcerWithOptions (line 36) | func NewPromQLEnforcerWithOptions(errorOnReplace bool, parserOptions par... function defaultParserOptions (line 305) | func defaultParserOptions() parser.Options { FILE: injectproxy/enforce_test.go function mustNewMatcher (line 25) | func mustNewMatcher(t labels.MatchType, n, v string) *labels.Matcher { type checkFunc (line 34) | type checkFunc function checks (line 36) | func checks(cs ...checkFunc) checkFunc { function noError (line 47) | func noError() checkFunc { function errorIs (line 57) | func errorIs(want error) checkFunc { function hasExpression (line 66) | func hasExpression(want string) checkFunc { function TestEnforce (line 360) | func TestEnforce(t *testing.T) { function TestEnforceWithErrOnReplace (line 371) | func TestEnforceWithErrOnReplace(t *testing.T) { function TestEnforceWithParserOptions (line 999) | func TestEnforceWithParserOptions(t *testing.T) { FILE: injectproxy/routes.go constant queryParam (line 42) | queryParam = "query" constant matchersParam (line 43) | matchersParam = "match[]" type routes (line 46) | type routes struct method ServeHTTP (line 490) | func (r *routes) ServeHTTP(w http.ResponseWriter, req *http.Request) { method ModifyResponse (line 494) | func (r *routes) ModifyResponse(resp *http.Response) error { method errorHandler (line 504) | func (r *routes) errorHandler(rw http.ResponseWriter, _ *http.Request,... method errorIfRegexpMatch (line 523) | func (r *routes) errorIfRegexpMatch(next http.HandlerFunc) http.Handle... method passthrough (line 578) | func (r *routes) passthrough(w http.ResponseWriter, req *http.Request) { method query (line 582) | func (r *routes) query(w http.ResponseWriter, req *http.Request) { method newLabelMatcher (line 663) | func (r *routes) newLabelMatcher(vals ...string) (*labels.Matcher, err... method matcher (line 699) | func (r *routes) matcher(w http.ResponseWriter, req *http.Request) { method injectMatcher (line 733) | func (r *routes) injectMatcher(q url.Values, matcher *labels.Matcher) ... type options (line 62) | type options struct type Option (line 75) | type Option interface type optionFunc (line 79) | type optionFunc method apply (line 81) | func (f optionFunc) apply(o *options) { function WithPrometheusRegistry (line 86) | func WithPrometheusRegistry(reg prometheus.Registerer) Option { function WithUpstreamCaCert (line 93) | func WithUpstreamCaCert(caCert string) Option { function WithEnabledLabelsAPI (line 100) | func WithEnabledLabelsAPI() Option { function WithPassthroughPaths (line 109) | func WithPassthroughPaths(paths []string) Option { function WithInsecureSkipVerify (line 116) | func WithInsecureSkipVerify() Option { function WithErrorOnReplace (line 124) | func WithErrorOnReplace() Option { function WithActiveAlerts (line 131) | func WithActiveAlerts() Option { function WithLabelMatchersForRulesAPI (line 138) | func WithLabelMatchersForRulesAPI() Option { function WithRegexMatch (line 145) | func WithRegexMatch() Option { function WithPromqlDurationExpressionParsing (line 152) | func WithPromqlDurationExpressionParsing() Option { function WithPromqlExperimentalFunctions (line 159) | func WithPromqlExperimentalFunctions() Option { function WithPromqlExtendedRangeSelectors (line 166) | func WithPromqlExtendedRangeSelectors() Option { function WithPromqlBinopFillModifiers (line 173) | func WithPromqlBinopFillModifiers() Option { type mux (line 180) | type mux interface type strictMux (line 186) | type strictMux struct method Handle (line 205) | func (s *strictMux) Handle(pattern string, handler http.Handler) error { function newStrictMux (line 191) | func newStrictMux(m mux) *strictMux { type instrumentedMux (line 228) | type instrumentedMux struct method Handle (line 241) | func (i *instrumentedMux) Handle(pattern string, handler http.Handler) { function newInstrumentedMux (line 233) | func newInstrumentedMux(m mux, r prometheus.Registerer) *instrumentedMux { type ExtractLabeler (line 249) | type ExtractLabeler interface type HTTPFormEnforcer (line 254) | type HTTPFormEnforcer struct method ExtractLabel (line 259) | func (hff HTTPFormEnforcer) ExtractLabel(next http.HandlerFunc) http.H... method getLabelValues (line 292) | func (hff HTTPFormEnforcer) getLabelValues(r *http.Request) ([]string,... type HTTPHeaderEnforcer (line 307) | type HTTPHeaderEnforcer struct method ExtractLabel (line 313) | func (hhe HTTPHeaderEnforcer) ExtractLabel(next http.HandlerFunc) http... method getLabelValues (line 325) | func (hhe HTTPHeaderEnforcer) getLabelValues(r *http.Request) ([]strin... type StaticLabelEnforcer (line 342) | type StaticLabelEnforcer method ExtractLabel (line 345) | func (sle StaticLabelEnforcer) ExtractLabel(next http.HandlerFunc) htt... function NewRoutes (line 351) | func NewRoutes(upstream *url.URL, label string, extractLabeler ExtractLa... function enforceMethods (line 513) | func enforceMethods(h http.HandlerFunc, methods ...string) http.HandlerF... type ctxKey (line 534) | type ctxKey constant keyLabel (line 536) | keyLabel ctxKey = iota function MustLabelValues (line 541) | func MustLabelValues(ctx context.Context) []string { function MustLabelValue (line 559) | func MustLabelValue(ctx context.Context) string { function labelValuesToRegexpString (line 564) | func labelValuesToRegexpString(labelValues []string) string { function WithLabelValues (line 574) | func WithLabelValues(ctx context.Context, labels []string) context.Conte... function enforceQueryValues (line 645) | func enforceQueryValues(e *PromQLEnforcer, v url.Values) (values string,... function matchersToString (line 755) | func matchersToString(ms ...*labels.Matcher) string { function humanFriendlyErrorMessage (line 765) | func humanFriendlyErrorMessage(err error) string { function splitValues (line 773) | func splitValues(slice []string, sep string) []string { function removeEmptyValues (line 785) | func removeEmptyValues(slice []string) []string { function trimValues (line 796) | func trimValues(slice []string) []string { FILE: injectproxy/routes_test.go function checkParameterAbsent (line 30) | func checkParameterAbsent(param string, next http.Handler) http.Handler { function checkFormParameterAbsent (line 46) | func checkFormParameterAbsent(param string, next http.Handler) http.Hand... function checkQueryHandler (line 63) | func checkQueryHandler(body, key string, values ...string) http.Handler { function checkFormHandler (line 103) | func checkFormHandler(key string, values ...string) http.Handler { type mockUpstream (line 130) | type mockUpstream struct method ServeHTTP (line 150) | func (m *mockUpstream) ServeHTTP(w http.ResponseWriter, req *http.Requ... method Close (line 154) | func (m *mockUpstream) Close() { function newMockUpstream (line 136) | func newMockUpstream(h http.Handler) *mockUpstream { constant proxyLabel (line 158) | proxyLabel = "namespace" function TestWithPassthroughPaths (line 160) | func TestWithPassthroughPaths(t *testing.T) { function TestMatch (line 264) | func TestMatch(t *testing.T) { function TestMatchWithPost (line 441) | func TestMatchWithPost(t *testing.T) { function TestSeries (line 572) | func TestSeries(t *testing.T) { function TestSeriesWithPost (line 702) | func TestSeriesWithPost(t *testing.T) { function TestQuery (line 843) | func TestQuery(t *testing.T) { FILE: injectproxy/rules.go type apiResponse (line 29) | type apiResponse struct function getAPIResponse (line 37) | func getAPIResponse(resp *http.Response) (*apiResponse, error) { type rulesData (line 69) | type rulesData struct type ruleGroup (line 73) | type ruleGroup struct type rule (line 80) | type rule struct method Labels (line 85) | func (r *rule) Labels() labels.Labels { method MarshalJSON (line 93) | func (r *rule) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 101) | func (r *rule) UnmarshalJSON(b []byte) error { type alertingRule (line 128) | type alertingRule struct type recordingRule (line 145) | type recordingRule struct type alertsData (line 157) | type alertsData struct type alert (line 161) | type alert struct function modifyAPIResponse (line 177) | func modifyAPIResponse(f func([]string, *http.Request, *apiResponse) (an... method filterRules (line 212) | func (r *routes) filterRules(lvalues []string, req *http.Request, resp *... method filterAlerts (line 283) | func (r *routes) filterAlerts(lvalues []string, _ *http.Request, resp *a... FILE: injectproxy/rules_test.go type gzipResponseWriter (line 30) | type gzipResponseWriter struct method Write (line 35) | func (w *gzipResponseWriter) Write(b []byte) (int, error) { function gzipHandler (line 39) | func gzipHandler(next http.Handler) http.Handler { function validRulesWithLabelMatchers (line 50) | func validRulesWithLabelMatchers(exp ...string) http.Handler { function validRules (line 94) | func validRules() http.Handler { function validAlerts (line 430) | func validAlerts() http.Handler { function TestRules (line 485) | func TestRules(t *testing.T) { function TestAlerts (line 674) | func TestAlerts(t *testing.T) { function normalizeAPIResponse (line 814) | func normalizeAPIResponse(t *testing.T, b []byte) string { FILE: injectproxy/silences.go method silences (line 37) | func (r *routes) silences(w http.ResponseWriter, req *http.Request) { function assertSingleLabelValue (line 50) | func assertSingleLabelValue(next http.HandlerFunc) http.HandlerFunc { method enforceFilterParameter (line 64) | func (r *routes) enforceFilterParameter(w http.ResponseWriter, req *http... method postSilence (line 122) | func (r *routes) postSilence(w http.ResponseWriter, req *http.Request) { method deleteSilence (line 181) | func (r *routes) deleteSilence(w http.ResponseWriter, req *http.Request) { method getSilenceByID (line 204) | func (r *routes) getSilenceByID(ctx context.Context, id string) (*models... function hasMatcherForLabel (line 218) | func hasMatcherForLabel(matchers models.Matchers, name, value string) bo... FILE: injectproxy/silences_test.go function TestListSilences (line 30) | func TestListSilences(t *testing.T) { constant silID (line 135) | silID = "802146e0-1f7a-42a6-ab0e-1e631479970b" function getSilenceWithoutLabel (line 137) | func getSilenceWithoutLabel() http.Handler { function getSilenceWithLabel (line 171) | func getSilenceWithLabel(labelv string) http.Handler { function createSilenceWithLabel (line 205) | func createSilenceWithLabel(labelv string) http.Handler { type chainedHandlers (line 232) | type chainedHandlers struct method ServeHTTP (line 237) | func (c *chainedHandlers) ServeHTTP(w http.ResponseWriter, req *http.R... function TestDeleteSilence (line 247) | func TestDeleteSilence(t *testing.T) { function TestUpdateSilence (line 377) | func TestUpdateSilence(t *testing.T) { function TestGetAlertGroups (line 578) | func TestGetAlertGroups(t *testing.T) { FILE: injectproxy/utils.go function prometheusAPIError (line 22) | func prometheusAPIError(w http.ResponseWriter, errorMessage string, code... FILE: main.go type arrayFlags (line 38) | type arrayFlags method String (line 42) | func (i *arrayFlags) String() string { method Set (line 47) | func (i *arrayFlags) Set(value string) error { function main (line 56) | func main() {