forked from TrueCloudLab/frostfs-api
[#31] service: Change BearerTokenMsg.Info.ACLRules field type
It was originally planned to transport extended ACL table in binary form. However, from time on, it was decided to abandon this approach in favor of the declared message structure (acl.EACLTable). In this regard, this commit changes the type and name of the binary BearerTokenMsg.Info.ACLRules field to EACLTable. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
05a885e142
commit
96ddb868bc
2 changed files with 4 additions and 3 deletions
|
@ -94,7 +94,7 @@ BearerTokenMsg carries information about request ACL rules with limited lifetime
|
||||||
|
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| ACLRules | [bytes](#bytes) | | ACLRules carries a binary representation of the table of extended ACL rules |
|
| EACLTable | [acl.EACLTable](#acl.EACLTable) | | EACLTable carries table of extended ACL rules. |
|
||||||
| OwnerID | [refs.OwnerID](#refs.OwnerID) | | OwnerID carries identifier of the token owner. |
|
| OwnerID | [refs.OwnerID](#refs.OwnerID) | | OwnerID carries identifier of the token owner. |
|
||||||
| ValidUntil | [uint64](#uint64) | | ValidUntil carries a last epoch of token lifetime |
|
| ValidUntil | [uint64](#uint64) | | ValidUntil carries a last epoch of token lifetime |
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ package service;
|
||||||
option go_package = "github.com/nspcc-dev/neofs-api-go/service";
|
option go_package = "github.com/nspcc-dev/neofs-api-go/service";
|
||||||
option csharp_namespace = "NeoFS.API.Service";
|
option csharp_namespace = "NeoFS.API.Service";
|
||||||
|
|
||||||
|
import "acl/types.proto";
|
||||||
import "refs/types.proto";
|
import "refs/types.proto";
|
||||||
|
|
||||||
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request.
|
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request.
|
||||||
|
@ -89,8 +90,8 @@ message TokenLifetime {
|
||||||
// BearerTokenMsg carries information about request ACL rules with limited lifetime
|
// BearerTokenMsg carries information about request ACL rules with limited lifetime
|
||||||
message BearerTokenMsg {
|
message BearerTokenMsg {
|
||||||
message Info {
|
message Info {
|
||||||
// ACLRules carries a binary representation of the table of extended ACL rules
|
// EACLTable carries table of extended ACL rules.
|
||||||
bytes ACLRules = 1;
|
acl.EACLTable EACLTable = 1;
|
||||||
|
|
||||||
// OwnerID carries identifier of the token owner.
|
// OwnerID carries identifier of the token owner.
|
||||||
refs.OwnerID OwnerID = 2;
|
refs.OwnerID OwnerID = 2;
|
||||||
|
|
Loading…
Reference in a new issue