mesh-sdk's catalogue package names no module: the tool runner says it is one (tool-runner), the foundation is what is computed, the kept streams are the judge's, and the ended controller's dependence check goes with it (issue 774, the operator 2026-11-03)
This commit is contained in:
+13
-3
@@ -1,8 +1,18 @@
|
||||
package catalogue
|
||||
|
||||
// RuntimeModule is the module that is the node's tool runtime. Mirrored in the broker package,
|
||||
// which composes a principal of its own for it; the agreement test there holds the two to one string.
|
||||
const RuntimeModule = "node-tools"
|
||||
// IsToolRunner says whether a manifest is the node's tool runner's, as it says itself (`tool-runner`, issue 774): the
|
||||
// one program on each node that loads every assigned module's tools bundle. Never known here by its name.
|
||||
func IsToolRunner(m Manifest) bool { return m.ToolRunner }
|
||||
|
||||
// ToolRunnerOf is the module among manifests that says it is the tool runner, and whether one does.
|
||||
func ToolRunnerOf(manifests []Manifest) (Manifest, bool) {
|
||||
for _, m := range manifests {
|
||||
if IsToolRunner(m) {
|
||||
return m, true
|
||||
}
|
||||
}
|
||||
return Manifest{}, false
|
||||
}
|
||||
|
||||
// BundleRoot is where a machine keeps the tools bundles the mesh delivers to it: under the mesh's
|
||||
// own directory, beside the daemons the host unpacks there, and never where a package manager also
|
||||
|
||||
Reference in New Issue
Block a user