node-engine client: the node key of the have, the codecs of the health report and of the data items (ADR 0634 §1, §4; issue 1966)

Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
2026-11-05 15:16:39 +01:00
parent 82b02ff099
commit 8c5f85e86b
3 changed files with 131 additions and 0 deletions
+8
View File
@@ -120,3 +120,11 @@ func ParseComposedKey(key string) (node, module, fingerprintPart string, isNode
}
return refused(fmt.Errorf("the key has %d parts", len(parts)))
}
// HaveNodeKey is the key, in the state have, of a node's own facts: `<node>.node`.
func HaveNodeKey(node string) (string, error) {
if err := keys.CheckName("node", node); err != nil {
return "", err
}
return node + "." + NodeWord, nil
}