package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
NoMuxAndDiscoveryIncompleteKey checks if the context contains muxAndDiscoveryIncompleteKey.
No description provided by the author
WithAudit decorates a http.Handler with audit logging information for all the requests coming to the server.
WithAuditAnnotations decorates a http.Handler with a []{key, value} that is merged with the audit.Event.Annotations map.
WithAuditID attaches the Audit-ID associated with a request to the context.
WithAuthentication creates an http handler that tries to authenticate the given request as a user, and then stores any such user found onto the provided context for the request.
WithAuthorizationCheck passes all authorized requests on to handler, and returns a forbidden error otherwise.
WithCacheControl sets the Cache-Control header to "no-cache, private" because all servers are protected by authn/authz.
WithFailedAuthenticationAudit decorates a failed http.Handler used in WithAuthentication handler.
WithImpersonation is a filter that will inspect and check requests that attempt to change the user.Info for their requests.
WithMuxAndDiscoveryComplete puts the muxAndDiscoveryIncompleteKey in the context if a request has been made before muxAndDiscoveryCompleteSignal has been ready.
WithRequestDeadline determines the timeout duration applicable to the given request and sets a new context with the appropriate deadline.
WithRequestInfo attaches a RequestInfo to the context.
WithRequestReceivedTimestamp attaches the ReceivedTimestamp (the time the request reached the apiserver) to the context.
WithStorageVersionPrecondition checks if the storage version barrier has completed, if not, it only passes the following API requests: 1.
WithWarningRecorder attaches a deduplicating k8s.io/apiserver/pkg/warning#WarningRecorder to the request context.
WithWebhookDuration adds WebhookDuration trackers to the context associated with a request.