kubernetes/test/images/resource-consumer/resource_consumer_handler.go

type ResourceConsumerHandler

// NewResourceConsumerHandler creates and initializes a ResourceConsumerHandler to defaults.
func NewResourceConsumerHandler() *ResourceConsumerHandler {}

func (handler *ResourceConsumerHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {}

func (handler *ResourceConsumerHandler) handleConsumeCPU(w http.ResponseWriter, query url.Values) {}

func (handler *ResourceConsumerHandler) handleConsumeMem(w http.ResponseWriter, query url.Values) {}

func (handler *ResourceConsumerHandler) handleGetCurrentStatus(w http.ResponseWriter) {}

func (handler *ResourceConsumerHandler) handleMetrics(w http.ResponseWriter) {}

func (handler *ResourceConsumerHandler) bumpMetric(metric string, delta float64, duration time.Duration) {}

func (handler *ResourceConsumerHandler) handleBumpMetric(w http.ResponseWriter, query url.Values) {}