Skip to content

Commit 44551f1

Browse files
authored
Add DelAnnotations field to support del annotation (#137)
Co-authored-by: ning.yougang <[email protected]>
1 parent d725034 commit 44551f1

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

whisk/action.go

+12-11
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,18 @@ type ActionService struct {
3131
}
3232

3333
type Action struct {
34-
Namespace string `json:"namespace,omitempty"`
35-
Name string `json:"name,omitempty"`
36-
Version string `json:"version,omitempty"`
37-
Exec *Exec `json:"exec,omitempty"`
38-
Annotations KeyValueArr `json:"annotations,omitempty"`
39-
Parameters KeyValueArr `json:"parameters,omitempty"`
40-
Limits *Limits `json:"limits,omitempty"`
41-
Error string `json:"error,omitempty"`
42-
Code int `json:"code,omitempty"`
43-
Publish *bool `json:"publish,omitempty"`
44-
Updated int64 `json:"updated,omitempty"`
34+
Namespace string `json:"namespace,omitempty"`
35+
Name string `json:"name,omitempty"`
36+
Version string `json:"version,omitempty"`
37+
Exec *Exec `json:"exec,omitempty"`
38+
Annotations KeyValueArr `json:"annotations,omitempty"`
39+
DelAnnotations []string `json:"delAnnotations,omitempty"`
40+
Parameters KeyValueArr `json:"parameters,omitempty"`
41+
Limits *Limits `json:"limits,omitempty"`
42+
Error string `json:"error,omitempty"`
43+
Code int `json:"code,omitempty"`
44+
Publish *bool `json:"publish,omitempty"`
45+
Updated int64 `json:"updated,omitempty"`
4546
}
4647

4748
type Exec struct {

0 commit comments

Comments
 (0)