GitOpsOperation class

Constructors

GitOpsOperation({String? finishedAt, String? message, String? phase, String? revision, String? startedAt})
Returns a new GitOpsOperation instance.

Properties

finishedAt ↔ String?
FinishedAt is when it ended, RFC 3339. Absent while the phase is Running.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
message ↔ String?
Message is CD's account of the phase — "successfully synced (all tasks run)" for a Succeeded operation, the reason it stopped for a Failed one.
getter/setter pair
phase ↔ String?
Phase is how the last sync operation ended, in CD's own vocabulary: Running, Succeeded or Failed. It is never empty — an Application whose phase is empty has no operation at all and omits this whole object.
getter/setter pair
revision ↔ String?
Revision is the commit this operation ATTEMPTED (operationState.syncResult). It differs from the Application's own revision exactly when the attempt did not land: revision is the last commit CD got applied, this is the last one it tried.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startedAt ↔ String?
StartedAt is when the operation began, RFC 3339.
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) → GitOpsOperation?
Returns a new GitOpsOperation instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GitOpsOperation>
mapFromJson(dynamic json) → Map<String, GitOpsOperation>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GitOpsOperation>>

Constants

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