MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / isValidPatchUUID

Function isValidPatchUUID

server-source-code/internal/handler/patching.go:116–119  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

114}
115
116func isValidPatchUUID(s string) bool {
117 _, err := uuid.Parse(s)
118 return err == nil
119}
120
121// policyIDForLog returns a stable, log-safe identifier for a patch policy or
122// "<none>" when the policy is nil. Used in scheduling log lines so a parse

Callers 15

ServeRunStreamMethod · 0.85
StopRunMethod · 0.85
ServePatchOutputMethod · 0.85
PreviewRunMethod · 0.85
ListRunsMethod · 0.85
GetRunMethod · 0.85
ApproveRunMethod · 0.85
RetryValidationMethod · 0.85
DeleteRunMethod · 0.85
TriggerMethod · 0.85
GetPolicyMethod · 0.85
UpdatePolicyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected