MCPcopy Create free account
hub / github.com/cloudbase/garm / APIController

Struct APIController

apiserver/controllers/controllers.go:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93type APIController struct {
94 r *runner.Runner
95 auth *auth.Authenticator
96 hub *wsWriter.Hub
97 agentHub *agent.Hub
98 metricsHub *wsMetrics.MetricsHub
99 upgrader websocket.Upgrader
100 controllerID string
101}
102
103func handleError(ctx context.Context, w http.ResponseWriter, err error) {
104 w.Header().Set("Content-Type", "application/json")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected