handler

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidLabel

func GetValidLabel(name string) string

Types

type IManagedMetricsHandler

type IManagedMetricsHandler interface {
	ServeHTTP(writer http.ResponseWriter, r *http.Request)
	RegisterAndAddMetricStoreForGVR(ctx context.Context, metricName string, gvr schema.GroupVersionResource, namespace string) chan struct{}
	RemoveMetricStore(name string)
}

type InfoMappings

type InfoMappings struct {
	FieldPath string
	Label     string
}

type ManagedMetricsHandler

type ManagedMetricsHandler struct {
	Client dynamic.Interface
	// contains filtered or unexported fields
}

func NewManagedMetricsHandler

func NewManagedMetricsHandler(dc dynamic.Interface) ManagedMetricsHandler

func NewManagedMetricsHandlerWithStore added in v0.2.0

func NewManagedMetricsHandlerWithStore(dc dynamic.Interface, storeHandler func([]string, func(interface{}) []metric.FamilyInterface, context.Context, dynamic.Interface, string, schema.GroupVersionResource, string) store.IXMetricsStore) ManagedMetricsHandler

func (*ManagedMetricsHandler) RegisterAndAddMetricStoreForGVR

func (m *ManagedMetricsHandler) RegisterAndAddMetricStoreForGVR(ctx context.Context, metricName string, gvr schema.GroupVersionResource, namespace string) chan struct{}

func (*ManagedMetricsHandler) RemoveMetricStore

func (m *ManagedMetricsHandler) RemoveMetricStore(name string)

func (*ManagedMetricsHandler) ServeHTTP

func (m *ManagedMetricsHandler) ServeHTTP(writer http.ResponseWriter, r *http.Request)

nolint: errcheck

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL