[#61] acl: Add version field to eACL Table

eACL Table is stored in SC storage, hence format version may be needed to
correctly process it in future.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-09-02 13:53:44 +03:00 committed by Stanislav Bogatyrev
parent c8054c5daa
commit 79baf3b637
2 changed files with 7 additions and 2 deletions

View file

@ -126,12 +126,16 @@ message EACLRecord {
// EACLRecord carries the information about extended ACL rules.
message EACLTable {
// eACL format version.
// Effectively the version of API library used to create eACL Table
neo.fs.v2.refs.Version version = 1;
// Carries identifier of the container that should use given
// access control rules.
neo.fs.v2.refs.ContainerID container_id = 1 [json_name="ContainerID"];
neo.fs.v2.refs.ContainerID container_id = 2 [json_name="ContainerID"];
// Records carries list of extended ACL rule records.
repeated EACLRecord records = 2 [json_name="Records"];
repeated EACLRecord records = 3 [json_name="Records"];
}
// BearerToken has information about request ACL rules with limited lifetime

View file

@ -114,6 +114,7 @@ EACLRecord carries the information about extended ACL rules.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| version | [neo.fs.v2.refs.Version](#neo.fs.v2.refs.Version) | | eACL format version. Effectively the version of API library used to create eACL Table |
| container_id | [neo.fs.v2.refs.ContainerID](#neo.fs.v2.refs.ContainerID) | | Carries identifier of the container that should use given access control rules. |
| records | [EACLRecord](#neo.fs.v2.acl.EACLRecord) | repeated | Records carries list of extended ACL rule records. |