[#57] *: Format with clang-format

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-07-25 18:19:02 +03:00
parent 0916cb5398
commit 4a4a7612f6
5 changed files with 32 additions and 27 deletions

View file

@ -196,7 +196,8 @@ message BearerToken {
// valid for this specific container. Otherwise, any container of the same // valid for this specific container. Otherwise, any container of the same
// owner is allowed. // owner is allowed.
// //
// Deprecated: eACL tables are no longer relevant - `APEOverrides` should be used instead. // Deprecated: eACL tables are no longer relevant - `APEOverrides` should be
// used instead.
EACLTable eacl_table = 1 [ json_name = "eaclTable" ]; EACLTable eacl_table = 1 [ json_name = "eaclTable" ];
// `OwnerID` defines to whom the token was issued. It must match the request // `OwnerID` defines to whom the token was issued. It must match the request
@ -223,11 +224,12 @@ message BearerToken {
bool allow_impersonate = 4 [ json_name = "allowImpersonate" ]; bool allow_impersonate = 4 [ json_name = "allowImpersonate" ];
// APEOverride is the list of APE chains defined for a target. // APEOverride is the list of APE chains defined for a target.
// These chains are meant to serve as overrides to the already defined (or even undefined) // These chains are meant to serve as overrides to the already defined (or
// APE chains for the target (see contract `Policy`). // even undefined) APE chains for the target (see contract `Policy`).
// //
// The server-side processing of the bearer token with set APE overrides must verify if a client is permitted // The server-side processing of the bearer token with set APE overrides
// to override chains for the target, preventing unauthorized access through the APE mechanism. // must verify if a client is permitted to override chains for the target,
// preventing unauthorized access through the APE mechanism.
message APEOverride { message APEOverride {
// Target for which chains are applied. // Target for which chains are applied.
frostfs.v2.ape.ChainTarget target = 1 [ json_name = "target" ]; frostfs.v2.ape.ChainTarget target = 1 [ json_name = "target" ];

View file

@ -584,8 +584,8 @@ message SearchRequest {
// * $Object:split.splitID \ // * $Object:split.splitID \
// 16 byte UUIDv4 used to identify the split object hierarchy parts // 16 byte UUIDv4 used to identify the split object hierarchy parts
// * $Object:ec.parent \ // * $Object:ec.parent \
// If the object is stored according to EC policy, then ec_parent attribute // If the object is stored according to EC policy, then ec_parent
// is set to return an id list of all related EC chunks. // attribute is set to return an id list of all related EC chunks.
// //
// There are some well-known filter aliases to match objects by certain // There are some well-known filter aliases to match objects by certain
// properties: // properties:

View file

@ -209,13 +209,15 @@ message Header {
// Chunk of a parent header. // Chunk of a parent header.
bytes header = 5 [ json_name = "header" ]; bytes header = 5 [ json_name = "header" ];
// As the origin object is EC-splitted its identifier is known to all // As the origin object is EC-splitted its identifier is known to all
// chunks as parent. But parent itself can be a part of Split (does not relate to EC-split). // chunks as parent. But parent itself can be a part of Split (does not
// In this case parent_split_id should be set. // relate to EC-split). In this case parent_split_id should be set.
bytes parent_split_id = 6 [ json_name = "parentSplitID" ]; bytes parent_split_id = 6 [ json_name = "parentSplitID" ];
// EC-parent's parent ID. parent_split_parent_id is set if EC-parent, itself, is a part of Split and // EC-parent's parent ID. parent_split_parent_id is set if EC-parent,
// if an object ID of its parent is presented. The field allows to determine how EC-chunk is placed // itself, is a part of Split and if an object ID of its parent is
// in Split hierarchy. // presented. The field allows to determine how EC-chunk is placed in Split
neo.fs.v2.refs.ObjectID parent_split_parent_id = 7 [ json_name = "parentSplitParentID" ]; // hierarchy.
neo.fs.v2.refs.ObjectID parent_split_parent_id = 7
[ json_name = "parentSplitParentID" ];
// EC parent's attributes. // EC parent's attributes.
repeated Attribute parent_attributes = 8 [ json_name = "parentAttributes" ]; repeated Attribute parent_attributes = 8 [ json_name = "parentAttributes" ];
} }

View file

@ -106,7 +106,8 @@ enum CommonFail {
NODE_UNDER_MAINTENANCE = 3; NODE_UNDER_MAINTENANCE = 3;
// [**1028**] Invalid argument error. If the server fails on validation of a // [**1028**] Invalid argument error. If the server fails on validation of a
// request parameter as the client sent it incorrectly, then this code should be used. // request parameter as the client sent it incorrectly, then this code should
// be used.
INVALID_ARGUMENT = 4; INVALID_ARGUMENT = 4;
} }