MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / getMaintenanceRequestBody

Function getMaintenanceRequestBody

cmd/maintenance.go:389–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387}
388
389func getMaintenanceRequestBody() ([]byte, error) {
390 if maintenanceData != "" {
391 var js json.RawMessage
392 if err := json.Unmarshal([]byte(maintenanceData), &js); err != nil {
393 return nil, fmt.Errorf("invalid JSON: %w", err)
394 }
395 return []byte(maintenanceData), nil
396 }
397 return nil, nil
398}
399
400func maintenanceOutputToTarget(content string) {
401 if maintenanceOutput != "" {

Callers 1

maintenance.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected