M7 networkmanager: its tools and health

The bundle serves uplink_sign_in, uplink_names_again, uplink_rating_again,
uplink_publish_again and uplink_health: the read of the reaction, the three acts the
parts do by themselves, and the watcher process's health, which also gives the names
again where the resolver no longer holds them.

Builds: design 08 sign-in-page §13, §23
This commit is contained in:
jochen
2026-11-24 21:25:17 +01:00
parent 786a23638b
commit 1dec6eb02c
4 changed files with 299 additions and 12 deletions
@@ -7,6 +7,8 @@ package main
import (
"context"
"strings"
stdio "git.novox.be/novox/mesh-sdk/go"
)
func managerDNS(ctx context.Context) (map[string]LinkDNS, error) {
@@ -54,5 +56,16 @@ func parseNmcli(out string) map[string]LinkDNS {
// holder is what networkmanager adds to the seat's verbs (design 08 sign-in-page §11): the watcher, `uplink-tools
// watch`.
func holder(m Machine) holderOwn {
return holderOwn{Commands: map[string]func([]string) error{"watch": watch}, Start: startBundle}
own := holderOwn{Commands: map[string]func([]string) error{"watch": watch}}
f, err := theFolder()
if err != nil {
journal("the module's folder: %v", err)
return own
}
b := newBundle(f)
own.Tools = b.tools()
own.Start = func() {
b.start(bundleRuns{files: fileEvents, fileMade: fileMade, onHeartbeat: stdio.OnHeartbeat, subscribe: stdio.Subscribe})
}
return own
}