server

package
v0.0.0-...-c0e9602 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleDashboard

func HandleDashboard(w http.ResponseWriter, r *http.Request)

HandleDashboard serves the dashboard HTML with embedded filesystem

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents the HTTP server for the controller

func NewServer

func NewServer(config *common.AppConfig, monitoringServer *monitoring.MonitoringServer) *Server

NewServer creates a new HTTP server using the service layer

func (*Server) SetupPodEndpoints

func (s *Server) SetupPodEndpoints(mux *http.ServeMux)

SetupPodEndpoints adds pod-related API endpoints

func (*Server) SetupWorkloadEndpoints

func (s *Server) SetupWorkloadEndpoints(mux *http.ServeMux)

SetupWorkloadEndpoints adds workload-related API endpoints

func (*Server) Start

func (s *Server) Start(_ context.Context, workloadManager workloads.Manager,
	k8sClient kubernetes.Interface, namespace string) error

Start starts the HTTP server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the HTTP server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL