package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev
# Functions
AuditIDFrom returns the value of the audit ID from the request context.
GetAuditIDTruncated returns the audit ID (truncated) associated with a request.
NamespaceFrom returns the value of the namespace key on the ctx.
NamespaceValue returns the value of the namespace key on the ctx, or the empty string if none.
NewContext instantiates a base context object for request flows.
NewDefaultContext instantiates a base context object for request flows in the default namespace.
ReceivedTimestampFrom returns the value of the ReceivedTimestamp key from the specified context.
RequestInfoFrom returns the value of the RequestInfo key on the ctx.
UserFrom returns the value of the user key on the ctx.
WebhookDurationFrom returns the value of the WebhookDuration key from the specified context.
WithAuditID returns a copy of the parent context into which the Audit-ID associated with the request is set.
WithNamespace returns a copy of parent in which the namespace value is set.
WithReceivedTimestamp returns a copy of parent context in which the ReceivedTimestamp (the time the request reached the apiserver) is set.
WithRequestInfo returns a copy of parent in which the request info value is set.
WithUser returns a copy of parent in which the user value is set.
WithValue returns a copy of parent in which the value associated with key is val.
WithWebhookDuration returns a copy of parent context to which the WebhookDuration trackers are added.
WithWebhookDurationAndCustomClock returns a copy of parent context to which the WebhookDuration trackers are added.
# Variables
NamespaceSubResourcesForTest exports namespaceSubresources for testing in pkg/controlplane/master_test.go, so we never drift.
# Structs
RequestInfo holds information parsed from the http.Request.
No description provided by the author
WebhookDuration stores trackers used to measure webhook request durations.
# Interfaces
DurationTracker is a simple interface for tracking functions duration.
No description provided by the author
# Type aliases
LongRunningRequestCheck is a predicate which is true for long-running http requests.