mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
parent
e95c0bb913
commit
1a53734477
@ -137,13 +137,13 @@ type bucketMeta struct {
|
|||||||
|
|
||||||
// Notification event object metadata.
|
// Notification event object metadata.
|
||||||
type objectMeta struct {
|
type objectMeta struct {
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -167,13 +167,13 @@ func newNotificationEvent(event eventData) NotificationEvent {
|
|||||||
|
|
||||||
// For all other events we should set ETag and Size.
|
// For all other events we should set ETag and Size.
|
||||||
nEvent.S3.Object = objectMeta{
|
nEvent.S3.Object = objectMeta{
|
||||||
Key: escapedObj,
|
Key: escapedObj,
|
||||||
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,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Success.
|
// Success.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user