ADR 0593 §1 and §7: compose, its bus reader and runtime reader, takein, validate, the overlay generator, the composer's run and mesh-compose, and the judgement of a move leave mesh-sdk for the node-engine's internal packages, so no other module composes and a change to them rebuilds only the node-engine. The shapes others read (the composer's request and verdict, the overlay's names, compositions and answers) stay in mesh-sdk. The node's grant is now a golden file of what the grants part composes, since the composer of the bus's user list leaves mesh-sdk too. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
31 lines
1.1 KiB
Go
31 lines
1.1 KiB
Go
package overlay
|
|
|
|
import (
|
|
sdk "git.novox.be/novox/mesh-sdk/go/overlay"
|
|
)
|
|
|
|
// The private network's names and the shape of its module stay in mesh-sdk's overlay package, which more parts read
|
|
// (novox/hq ADR 0593 §1); the generator of each node's network configuration is the node-engine's own, here. These
|
|
// are those names, so the generator and the composition read one package.
|
|
const (
|
|
Requirement = sdk.Requirement
|
|
Name = sdk.Name
|
|
Addressing = sdk.Addressing
|
|
TheNetwork = sdk.TheNetwork
|
|
SuffixVar = sdk.SuffixVar
|
|
DefaultSuffix = sdk.DefaultSuffix
|
|
Interface = sdk.Interface
|
|
ConfigPath = sdk.ConfigPath
|
|
Unit = sdk.Unit
|
|
DefaultKeyPath = sdk.DefaultKeyPath
|
|
)
|
|
|
|
// Manifest is the module the mesh provides for itself (sdk.Manifest).
|
|
func Manifest() map[string]any { return sdk.Manifest() }
|
|
|
|
// Suffix is the internal names' suffix (sdk.Suffix).
|
|
func Suffix() string { return sdk.Suffix() }
|
|
|
|
// InternalName is a node's internal name (sdk.InternalName).
|
|
func InternalName(node string) string { return sdk.InternalName(node) }
|