Documentation
¶
Overview ¶
Package web provides an implementation of a web UI that can be enabled to access and manage a single replica or the cluster of replicas if that replica is the leader.
Index ¶
- type Server
- func (s *Server) Healthz(c *gin.Context)
- func (s *Server) Maintenance() gin.HandlerFunc
- func (s *Server) NotAllowed(c *gin.Context)
- func (s *Server) NotFound(c *gin.Context)
- func (s *Server) Readyz(c *gin.Context)
- func (s *Server) Serve(errc chan<- error) (err error)
- func (s *Server) SetStatus(health, ready bool)
- func (s *Server) Shutdown() (err error)
- func (s *Server) Status(c *gin.Context)
- func (s *Server) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func Debug ¶ added in v0.2.0
Debug returns a server that uses the specified http server instead of creating one. This function is primarily used to create test servers easily.
func (*Server) Healthz ¶ added in v0.2.0
Healthz is used to alert k8s to the health/liveness status of the server.
func (*Server) Maintenance ¶ added in v0.2.0
func (s *Server) Maintenance() gin.HandlerFunc
If the server is in maintenance mode, aborts the current request and renders the maintenance mode page instead. Returns nil if not in maintenance mode.
func (*Server) NotAllowed ¶ added in v0.2.0
Renders the "invalid action page"
func (*Server) Readyz ¶ added in v0.2.0
Readyz is used to alert k8s to the readiness status of the server.
func (*Server) SetStatus ¶ added in v0.2.0
SetStatus sets the health and ready status on the server, modifying the behavior of the kubernetes probe responses.