Rename UserDefined to UserMetadata for events (#5206)

fixes #5165
This commit is contained in:
Krishna Srinivas 2017-11-20 15:32:25 -08:00 committed by Dee Koder
parent e95c0bb913
commit 1a53734477
2 changed files with 14 additions and 14 deletions

View File

@ -141,7 +141,7 @@ type objectMeta struct {
Size int64 `json:"size,omitempty"` Size int64 `json:"size,omitempty"`
ETag string `json:"eTag,omitempty"` ETag string `json:"eTag,omitempty"`
ContentType string `json:"contentType,omitempty"` ContentType string `json:"contentType,omitempty"`
UserDefined map[string]string `json:"userDefined,omitempty"` UserMetadata map[string]string `json:"userMetadata,omitempty"`
VersionID string `json:"versionId,omitempty"` VersionID string `json:"versionId,omitempty"`
Sequencer string `json:"sequencer"` Sequencer string `json:"sequencer"`
} }

View File

@ -171,7 +171,7 @@ func newNotificationEvent(event eventData) NotificationEvent {
ETag: event.ObjInfo.ETag, ETag: event.ObjInfo.ETag,
Size: event.ObjInfo.Size, Size: event.ObjInfo.Size,
ContentType: event.ObjInfo.ContentType, ContentType: event.ObjInfo.ContentType,
UserDefined: event.ObjInfo.UserDefined, UserMetadata: event.ObjInfo.UserDefined,
VersionID: "1", VersionID: "1",
Sequencer: uniqueID, Sequencer: uniqueID,
} }