summaryrefslogtreecommitdiff
path: root/src/marlin.core/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/marlin.core/models')
-rw-r--r--src/marlin.core/models/ISourceSecretStore.cs1
-rw-r--r--src/marlin.core/models/JobStatus.cs10
-rw-r--r--src/marlin.core/models/plan/ExecutionCommand.cs7
3 files changed, 17 insertions, 1 deletions
diff --git a/src/marlin.core/models/ISourceSecretStore.cs b/src/marlin.core/models/ISourceSecretStore.cs
index 0d5053e..2534d62 100644
--- a/src/marlin.core/models/ISourceSecretStore.cs
+++ b/src/marlin.core/models/ISourceSecretStore.cs
@@ -6,4 +6,5 @@ using core.models;
public interface ISourceSecretStore
{
Task<ISecret?> GetAsync(Guid id, CancellationToken ct);
+ //Task<IEnumerable<ISecret>> ListAsync(CancellationToken ct);
} \ No newline at end of file
diff --git a/src/marlin.core/models/JobStatus.cs b/src/marlin.core/models/JobStatus.cs
new file mode 100644
index 0000000..d606eb0
--- /dev/null
+++ b/src/marlin.core/models/JobStatus.cs
@@ -0,0 +1,10 @@
+namespace marlin.core.models;
+
+public enum JobStatus
+{
+ Pending,
+ Active,
+ Cancelled,
+ Success,
+ Failed
+} \ No newline at end of file
diff --git a/src/marlin.core/models/plan/ExecutionCommand.cs b/src/marlin.core/models/plan/ExecutionCommand.cs
index 124da63..4bf19c3 100644
--- a/src/marlin.core/models/plan/ExecutionCommand.cs
+++ b/src/marlin.core/models/plan/ExecutionCommand.cs
@@ -10,6 +10,11 @@ public class ExecutionCommand
public required CommandRole Role;
public required bool Deferred;
public CommandResultSelector? ResultSelector;
-
+
public required FailBehavior FailBehavior;
+
+ public override string ToString()
+ {
+ return $"Id={Id}, Name={Name}, Command={Command}, Role={Role}, Deferred={Deferred}, ResultSelector={ResultSelector}, FailBehavior={FailBehavior}";
+ }
} \ No newline at end of file