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 ¶
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 ¶
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.6-rc.0
- Published
- Dec 16, 2021
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 12 seconds ago –
Tools for package owners.