Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWarningCollectionFromContext ¶
GetWarningCollectionFromContext retrieves the collection of warnings from the context. If no warnings are found, it returns an empty slice.
func NewWarningCollectorMiddleware ¶
func NewWarningCollectorMiddleware() negroni.HandlerFunc
NewWarningCollectorMiddleware creates a middleware that collects warnings from requests and stores them in the request context for later retrieval.
Types ¶
type KubernetesWarningHandler ¶
KubernetesWarningHandler is a custom warning handler for Kubernetes API responses. It implements the rest.WarningHandlerWithContext interface to handle warning headers and log them. This handler collects warnings in a thread-safe manner and allows retrieval of warnings from the request context
func NewKubernetesWarningHandler ¶
func NewKubernetesWarningHandler() *KubernetesWarningHandler
NewKubernetesWarningHandler creates a new instance of KubernetesWarningHandler which implements the rest.WarningHandlerWithContext interface. This handler is used to collect warnings from Kubernetes API responses.