EdgeState class

Constructors

EdgeState({bool? configured, String? error, String? freshness, Map<String, String> policy = const {}, String? provider, List<String> reach = const [], String? status})
Returns a new EdgeState instance.

Properties

configured ↔ bool?
Configured is whether the edge holds credentials to act at all. False means every purge is a no-op.
getter/setter pair
error ↔ String?
Error is the blocker, so an operator reads it instead of guessing at it.
getter/setter pair
freshness ↔ String?
Freshness says, in one phrase, how long after a publish a reader sees it. It is the sentence an operator actually wants; the booleans above are how a machine reads the same fact.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
policy ↔ Map<String, String>
Policy is the Cache-Control this edge serves each class of object with. It is DERIVED from the one canonical function, never a second copy: half the confusion when a publish looks stale is not knowing what the TTLs are, and reading them out of the source is not something an operator should have to do to answer "how long until this is live".
getter/setter pair
provider ↔ String?
Provider is the CDN behind this edge, or "none". It is the first thing an operator wants and the only vendor name this API returns.
getter/setter pair
reach ↔ List<String>
Reach is the apexes a publish is invalidated on. A site is served on more than one — the site plane's own and the first-party apex — and a purge that covers one of them looks identical from here to a purge that covers both.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is "ok" when a publish reaches readers immediately, else "degraded".
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → EdgeState?
Returns a new EdgeState instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<EdgeState>
mapFromJson(dynamic json) → Map<String, EdgeState>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<EdgeState>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.