handlers

package
v1.56.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceHandler

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

DeviceHandler handles device-related endpoints

func NewDeviceHandler

func NewDeviceHandler(deviceController framework.DeviceController) *DeviceHandler

NewDeviceHandler creates a new device handler

func (*DeviceHandler) HandleDiscoverDevices

func (h *DeviceHandler) HandleDiscoverDevices(c *gin.Context)

HandleDiscoverDevices handles POST /api/v1/devices/discover

func (*DeviceHandler) HandleGetDevice

func (h *DeviceHandler) HandleGetDevice(c *gin.Context)

HandleGetDevice handles GET /api/v1/devices/:uuid

func (*DeviceHandler) HandleGetDevices

func (h *DeviceHandler) HandleGetDevices(c *gin.Context)

HandleGetDevices handles GET /api/v1/devices

type HealthHandler

type HealthHandler struct{}

HealthHandler handles health check endpoints

func NewHealthHandler

func NewHealthHandler() *HealthHandler

NewHealthHandler creates a new health handler

func (*HealthHandler) HandleHealthz

func (h *HealthHandler) HandleHealthz(c *gin.Context)

HandleHealthz handles GET /healthz

func (*HealthHandler) HandleReadyz

func (h *HealthHandler) HandleReadyz(c *gin.Context, deviceController framework.DeviceController, workerController framework.WorkerController)

HandleReadyz handles GET /readyz

type LegacyHandler

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

LegacyHandler handles legacy endpoints

func NewLegacyHandler

func NewLegacyHandler(workerController framework.WorkerController, allocationController framework.WorkerAllocationController, backend framework.Backend) *LegacyHandler

NewLegacyHandler creates a new legacy handler

func (*LegacyHandler) HandleGetLimiter

func (h *LegacyHandler) HandleGetLimiter(c *gin.Context)

HandleGetLimiter handles GET /api/v1/limiter

func (*LegacyHandler) HandleGetPods

func (h *LegacyHandler) HandleGetPods(c *gin.Context)

HandleGetPods handles GET /api/v1/pod

func (*LegacyHandler) HandleTrap

func (h *LegacyHandler) HandleTrap(c *gin.Context)

HandleTrap handles POST /api/v1/trap

type WorkerHandler

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

WorkerHandler handles worker-related endpoints

func NewWorkerHandler

func NewWorkerHandler(workerController framework.WorkerController, allocationController framework.WorkerAllocationController) *WorkerHandler

NewWorkerHandler creates a new worker handler

func (*WorkerHandler) HandleGetWorker

func (h *WorkerHandler) HandleGetWorker(c *gin.Context)

HandleGetWorker handles GET /api/v1/workers/:id

func (*WorkerHandler) HandleGetWorkers

func (h *WorkerHandler) HandleGetWorkers(c *gin.Context)

HandleGetWorkers handles GET /api/v1/workers

func (*WorkerHandler) HandleResumeWorker

func (h *WorkerHandler) HandleResumeWorker(c *gin.Context)

HandleResumeWorker handles POST /api/v1/workers/:id/resume

func (*WorkerHandler) HandleSnapshotWorker

func (h *WorkerHandler) HandleSnapshotWorker(c *gin.Context)

HandleSnapshotWorker handles POST /api/v1/workers/:id/snapshot

Jump to

Keyboard shortcuts

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