apiserverk8s.io/apiserver/pkg/util/flowcontrol/request Index | Files

package request

import "k8s.io/apiserver/pkg/util/flowcontrol/request"

Index

Types

type Width

type Width struct {
	// Seats represents the number of seats associated with this request
	Seats uint
}

func DefaultWidthEstimator

func DefaultWidthEstimator(_ *http.Request) Width

DefaultWidthEstimator returns returns '1' as the "width" of the given request.

TODO: when we plumb in actual "width" handling for different

type of request(s) this function will iterate through a chain
of widthEstimator instance(s).

type WidthEstimatorFunc

type WidthEstimatorFunc func(*http.Request) Width

WidthEstimatorFunc returns the estimated "width" of a given request. This function will be used by the Priority & Fairness filter to estimate the "width" of incoming requests.

func (WidthEstimatorFunc) EstimateWidth

func (e WidthEstimatorFunc) EstimateWidth(r *http.Request) Width

Source Files

width.go

Version
v0.22.1
Published
Aug 19, 2021
Platform
js/wasm
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.