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

Function getWindowsKey

cmd/discover_logic_windows.go:25–32  ·  view source on GitHub ↗
(taskName string)

Source from the content-addressed store, hash-verified

23)
24
25func getWindowsKey(taskName string) string {
26 const MonitorKeyLength = 12
27
28 h := sha256.New()
29 h.Write([]byte(taskName))
30 hashed := hex.EncodeToString(h.Sum(nil))
31 return hashed[:MonitorKeyLength]
32}
33
34type WrappedWindowsTask taskmaster.RegisteredTask
35

Callers 1

WindowsKeyMethod · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected