We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d39b02 commit bb8c49eCopy full SHA for bb8c49e
action.go
@@ -26,6 +26,9 @@ const (
26
27
// ActionDelete denotes a delete operation.
28
ActionDelete Action = "delete"
29
+
30
+ // ActionForget denotes a forget operation.
31
+ ActionForget Action = "forget"
32
)
33
34
// Actions denotes a valid change type.
@@ -105,3 +108,12 @@ func (a Actions) CreateBeforeDestroy() bool {
105
108
func (a Actions) Replace() bool {
106
109
return a.DestroyBeforeCreate() || a.CreateBeforeDestroy()
107
110
}
111
112
+// Forget is true if this set of Actions denotes a forget operation.
113
+func (a Actions) Forget() bool {
114
+ if len(a) != 1 {
115
+ return false
116
+ }
117
118
+ return a[0] == ActionForget
119
+}
0 commit comments