From 44551f1f3b715e87c0319b55762d50c71d214460 Mon Sep 17 00:00:00 2001 From: ningyougang <415622920@qq.com> Date: Mon, 24 Aug 2020 09:36:30 +0800 Subject: [PATCH] Add DelAnnotations field to support del annotation (#137) Co-authored-by: ning.yougang --- whisk/action.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/whisk/action.go b/whisk/action.go index 9935871d..5ee755f4 100644 --- a/whisk/action.go +++ b/whisk/action.go @@ -31,17 +31,18 @@ type ActionService struct { } type Action struct { - Namespace string `json:"namespace,omitempty"` - Name string `json:"name,omitempty"` - Version string `json:"version,omitempty"` - Exec *Exec `json:"exec,omitempty"` - Annotations KeyValueArr `json:"annotations,omitempty"` - Parameters KeyValueArr `json:"parameters,omitempty"` - Limits *Limits `json:"limits,omitempty"` - Error string `json:"error,omitempty"` - Code int `json:"code,omitempty"` - Publish *bool `json:"publish,omitempty"` - Updated int64 `json:"updated,omitempty"` + Namespace string `json:"namespace,omitempty"` + Name string `json:"name,omitempty"` + Version string `json:"version,omitempty"` + Exec *Exec `json:"exec,omitempty"` + Annotations KeyValueArr `json:"annotations,omitempty"` + DelAnnotations []string `json:"delAnnotations,omitempty"` + Parameters KeyValueArr `json:"parameters,omitempty"` + Limits *Limits `json:"limits,omitempty"` + Error string `json:"error,omitempty"` + Code int `json:"code,omitempty"` + Publish *bool `json:"publish,omitempty"` + Updated int64 `json:"updated,omitempty"` } type Exec struct {