UploadRecordResult enum
Outcome of recordUpload, so a caller can report without re-deriving it.
Values
- created → const UploadRecordResult
-
The tag did not exist, and now does — or under
dryRun, would. - alreadyRecorded → const UploadRecordResult
-
The tag already pointed at this commit. Re-running an upload is ordinary — a second store, a retried job — and must not be an error.
- writtenNotPushed → const UploadRecordResult
-
The tag exists locally and two attempts to push it failed, reached only with
failedPushIsFatal: false."Not pushed" is all this knows.
originwas asked whether it holds the name and gave no answer saying so — which is what anoriginwithout the tag says, and also what an unreachable one says. So this is not a statement that the name is free there: the next run pushes again, and that push is where a collision would still surface.It replaces the other two rather than joining them, although "created" and "already recorded" both remain true of the local tag, because the only question a caller has left is whether the record is anywhere another machine can read it. Reporting
createdwith a quiet second field sayingpushed: falseis how an unpushed tag gets treated as a record — the path every caller already handles is the one that runs.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
UploadRecordResult> - A constant List of the values in this enum, in order of their declaration.