Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultLegacyAPIPrefix is where the legacy APIs will be located. DefaultLegacyAPIPrefix = "/api" // APIGroupPrefix is where non-legacy API group will be located. APIGroupPrefix = "/apis" )
Variables ¶
View Source
var ErrObjectTooLarge = fmt.Errorf("object to decode was longer than maximum allowed size")
View Source
var (
ListCount = 0
)
Functions ¶
func NewRequestInfoResolver ¶
func NewRequestInfoResolver(o *Options) *apirequest.RequestInfoFactory
func WithRequestInfo ¶
WithRequestInfo attaches a RequestInfo to the context.
Types ¶
type Injector ¶
type Injector interface {
Inject(*http.Request, *request.RequestInfo) error
}
func New ¶
func New(m *protomanager.SpecManager) Injector
type Options ¶
type Options struct { Config *rest.Config SecureServingOptions *options.SecureServingOptions RequestInfoResolver apirequest.RequestInfoResolver LegacyAPIGroupPrefixes sets.Set[string] LongRunningFunc apirequest.LongRunningRequestCheck HandlerChainWaitGroup *utilwaitgroup.SafeWaitGroup LeaderElectionName string SpecManager *protomanager.SpecManager BreakerWrapperFunc func(http.Handler) http.Handler FaultInjectionWrapperFunc func(http.Handler) http.Handler }
Options contains everything necessary to create and run proxy.
func NewOptions ¶
func NewOptions() *Options
Click to show internal directories.
Click to hide internal directories.