SpecStore class final
A directory of named plan documents.
Constructors
- SpecStore(Directory root)
- SpecStore.forAppId(String appId)
-
The default on-device store for
appId:~/.oka/supervisor/plans/<appId>.factory
Properties
Methods
-
delete(
String name) → void -
Deletes
name; a missing plan is not an error. -
load(
String name) → DesiredState? -
Loads
name;nullwhen absent. Throws SpecFormatException on an unparseable document — corrupt plans are surfaced, never ignored. -
names(
) → List< String> -
Stored plan names (sorted,
.jsonstripped). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
String name, DesiredState desired) → void -
Saves
desiredatomically (temp + rename), creating parents. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited