Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchHeadersMiddleware ¶
func WatchHeadersMiddleware() gin.HandlerFunc
WatchHeadersMiddleware returns a gin middleware that sets headers for watch requests.
Types ¶
type ClientChan ¶
type ClientChan chan Message
ClientChan represents a channel for sending messages to clients. New event messages are broadcast to all registered client connection channels
type Event ¶
type Event struct {
// Events are pushed to this channel by the main events-gathering routine
Message chan Message
// contains filtered or unexported fields
}
Event represents a server-sent event that can be broadcast to clients. It keeps a list of clients those are currently attached
type Message ¶
type Message struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Kind string `json:"kind"`
Data string `json:"data"`
}
Message represents a message that can be sent to clients.
type WebServer ¶
WebServer handles the web server functionality for the dashboard and API endpoints.
func NewWebServer ¶
func NewWebServer(mgr controllerruntime.Manager) WebServer
NewWebServer creates a new WebServer instance with the given manager.
func (*WebServer) Reconcile ¶
Reconcile handles the reconciliation logic for the WebServer controller.
func (*WebServer) SetupWithManager ¶
SetupWithManager sets up the WebServer controller with the given manager.