[#768] object/acl: Support all eACL filter fields from the spec
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
7a5729ea2b
commit
d6439369ab
1 changed files with 20 additions and 1 deletions
|
@ -62,7 +62,26 @@ func headersFromObject(obj *object.Object, addr *objectSDK.Address) []eacl.Heade
|
|||
v: u64Value(obj.PayloadSize()),
|
||||
},
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue