forked from TrueCloudLab/frostfs-api
[#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:
parent
c8054c5daa
commit
79baf3b637
2 changed files with 7 additions and 2 deletions
|
@ -126,12 +126,16 @@ message EACLRecord {
|
||||||
|
|
||||||
// EACLRecord carries the information about extended ACL rules.
|
// EACLRecord carries the information about extended ACL rules.
|
||||||
message EACLTable {
|
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
|
// Carries identifier of the container that should use given
|
||||||
// access control rules.
|
// 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.
|
// 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
|
// BearerToken has information about request ACL rules with limited lifetime
|
||||||
|
|
|
@ -114,6 +114,7 @@ EACLRecord carries the information about extended ACL rules.
|
||||||
|
|
||||||
| Field | Type | Label | Description |
|
| 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. |
|
| 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. |
|
| records | [EACLRecord](#neo.fs.v2.acl.EACLRecord) | repeated | Records carries list of extended ACL rule records. |
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue