package
0.0.0-20241210072137-8149b9cdf2cb
Repository: https://github.com/dana-team/platform-backend.git
Documentation: pkg.go.dev

# Functions

AddErrorToContext checks if the error is non-nil and adds it to the Gin context if so.
ClusterMiddleware retrieves the cluster based on capp and adds it to the request context.
ErrorHandlingMiddleware handles errors and sends appropriate responses.
GetCluster retrieves the cluster from the gin.Context.
GetConfig retrieves the config from the gin.Context.
GetDynClient retrieves the dynamic client from the gin.Context.
GetKubeClient retrieves the Kubernetes client from the gin.Context.
GetLogger retrieves the logger from the gin.Context.
LoggerMiddleware is a middleware that initializes a logger and sets it in the request context.
PaginationMiddleware is a middleware for extracting and setting pagination parameters from the request context.
TokenAuthMiddleware validates the Authorization header and sets up Kubernetes client.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author