summaryrefslogtreecommitdiff
path: root/pkg/promises.go
diff options
context:
space:
mode:
authorJulien Dessaux2024-09-04 09:11:35 +0200
committerJulien Dessaux2024-09-04 09:11:35 +0200
commit00cb3a2488db11c8ce96d182915b8c448edce976 (patch)
tree80d46044e4cdd17c2da324527596e34359a03603 /pkg/promises.go
parentfeat(stdlib): added a basic borg client custom promise (diff)
downloadgonf-00cb3a2488db11c8ce96d182915b8c448edce976.tar.gz
gonf-00cb3a2488db11c8ce96d182915b8c448edce976.tar.bz2
gonf-00cb3a2488db11c8ce96d182915b8c448edce976.zip
chore(gonf): add a DECLARED promise status and make it the default instead of PROMISED
Diffstat (limited to '')
-rw-r--r--pkg/promises.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/promises.go b/pkg/promises.go
index 0198296..340f35d 100644
--- a/pkg/promises.go
+++ b/pkg/promises.go
@@ -9,7 +9,8 @@ type Promise interface {
type Status int
const (
- PROMISED = iota
+ DECLARED = iota
+ PROMISED
BROKEN
KEPT
REPAIRED
@@ -17,6 +18,8 @@ const (
func (s Status) String() string {
switch s {
+ case DECLARED:
+ return "declared"
case PROMISED:
return "promised"
case BROKEN: