Reader release 3 before G: mesh-sdk reads the forms G's manifests write #192

Merged
mesh-tools merged 5 commits from feat/47-G-reader-release-3 into main 2026-11-13 11:04:16 +00:00
2 changed files with 10 additions and 0 deletions
Showing only changes of commit 9e5bd7e49c - Show all commits
+3
View File
@@ -50,6 +50,9 @@ const (
OptionAgeDays = "max-age-days"
// OptionCapMiB is the cap of a stream, a bucket or an object store, in MiB.
OptionCapMiB = "max-mib"
// OptionObjectsCapMiB is the cap of a state's objects store `<state>-objects`, in MiB, where the state needs
// another than the one the bus module plans (design 47 G §513, §547).
OptionObjectsCapMiB = "objects-max-mib"
// OptionGrant names the trusted config value granting another module a part of it (ADR 0363 §4, ADR 0592 §9).
OptionGrant = "grant"
// OptionDeliveries is how many times a work queue's message is delivered before it is a dead letter.
+7
View File
@@ -53,3 +53,10 @@ func decodeStrictObjects(raw string) (Manifest, error) {
type errString string
func (e errString) Error() string { return string(e) }
// The option naming a state's objects cap is exported with the bounds the judge checks it by (design 47 G §513, §547).
func TestTheObjectsCapOptionIsNamedWithItsBounds(t *testing.T) {
if OptionObjectsCapMiB != "objects-max-mib" || ObjectsLeastMiB != 1 || ObjectsMostMiB != 8192 {
t.Fatalf("option %q, bounds %d to %d", OptionObjectsCapMiB, ObjectsLeastMiB, ObjectsMostMiB)
}
}