Set Event.Type value to event.EventTypeImageDelete instead of event.EventTypeImagePush when deleting

Signed-off-by: guanxiatao <guanxiatao@corp.netease.com>
This commit is contained in:
guanxiatao 2019-06-19 22:29:58 +08:00
parent 8cd155088d
commit b40ee6edc9

View File

@ -332,7 +332,7 @@ func (ra *RepositoryAPI) Delete() {
go func(tag string) { go func(tag string) {
e := &event.Event{ e := &event.Event{
Type: event.EventTypeImagePush, Type: event.EventTypeImageDelete,
Resource: &model.Resource{ Resource: &model.Resource{
Type: model.ResourceTypeImage, Type: model.ResourceTypeImage,
Metadata: &model.ResourceMetadata{ Metadata: &model.ResourceMetadata{