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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user