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

dir → Directory
no setter
hashCode → int
The hash code for this object.
no setterinherited
root → Directory
The store directory; created on construction.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String name) → void
Deletes name; a missing plan is not an error.
load(String name) → DesiredState?
Loads name; null when absent. Throws SpecFormatException on an unparseable document — corrupt plans are surfaced, never ignored.
names() → List<String>
Stored plan names (sorted, .json stripped).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(String name, DesiredState desired) → void
Saves desired atomically (temp + rename), creating parents.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited