[#768] object/acl: Support all eACL filter fields from the spec

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-08-25 14:26:41 +03:00 committed by Alex Vanin
parent 7a5729ea2b
commit d6439369ab

View file

@ -62,7 +62,26 @@ func headersFromObject(obj *object.Object, addr *objectSDK.Address) []eacl.Heade
v: u64Value(obj.PayloadSize()), v: u64Value(obj.PayloadSize()),
}, },
oidHeader(addr.ObjectID()), oidHeader(addr.ObjectID()),
// TODO: add others fields after neofs-api#84 // object version
&sysObjHdr{
k: acl.FilterObjectVersion,
v: obj.Version().String(),
},
// payload hash
&sysObjHdr{
k: acl.FilterObjectPayloadHash,
v: obj.PayloadChecksum().String(),
},
// object type
&sysObjHdr{
k: acl.FilterObjectType,
v: obj.Type().String(),
},
// payload homomorphic hash
&sysObjHdr{
k: acl.FilterObjectHomomorphicHash,
v: obj.PayloadHomomorphicHash().String(),
},
) )
attrs := obj.Attributes() attrs := obj.Attributes()