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

Method ValidatePIDList

lib/process_validator.go:467–477  ·  view source on GitHub ↗

ValidatePIDList validates a list of PIDs and returns detailed error information

(pids []int)

Source from the content-addressed store, hash-verified

465
466// ValidatePIDList validates a list of PIDs and returns detailed error information
467func (pv *ProcessValidator) ValidatePIDList(pids []int) map[int]error {
468 errors := make(map[int]error)
469
470 for _, pid := range pids {
471 if err := pv.ValidatePID(pid); err != nil {
472 errors[pid] = err
473 }
474 }
475
476 return errors
477}

Callers

nothing calls this directly

Calls 1

ValidatePIDMethod · 0.95

Tested by

no test coverage detected