From 4df4badf9cff3ad88e524eb6f9006656d098a1da Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 4 Aug 2020 17:33:32 +0300 Subject: [PATCH] [#26] object: Remove Link message After updating the structure of SplitHeader and StorageGroup messages, the Link header field is no longer needed. This commit removes the field and message Link as no longer used. Signed-off-by: Leonard Lyubich --- object/types.proto | 22 ---------------------- proto-docs/object.md | 29 ----------------------------- 2 files changed, 51 deletions(-) diff --git a/object/types.proto b/object/types.proto index 76ab4cf..2437ca9 100644 --- a/object/types.proto +++ b/object/types.proto @@ -17,8 +17,6 @@ message Attribute { } message ExtendedHeader { - // Link to other objects - Link Link = 1; // Redirect not used yet refs.Address Redirect = 2; // Attribute is a set of K-V object attributes @@ -62,26 +60,6 @@ message IntegrityHeader { bytes ChecksumSignature = 2; } -message Link { - enum Type { - Unknown = 0; - // Parent object created during object transformation - Parent = 1; - // Previous object in the linked list created during object transformation - Previous = 2; - // Next object in the linked list created during object transformation - Next = 3; - // Child object created during object transformation - Child = 4; - // Object that included into this storage group - StorageGroup = 5; - } - // Type of link - Type type = 1; - // ID is an object identifier, is a valid UUIDv4 - bytes ID = 2; -} - // SplitHeader groups information about spawning the object through a payload splitting. message SplitHeader { // Parent carries identifier of the origin object. diff --git a/proto-docs/object.md b/proto-docs/object.md index b6a1a54..9c77114 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -33,7 +33,6 @@ - [ExtendedHeader](#object.ExtendedHeader) - [Header](#object.Header) - [IntegrityHeader](#object.IntegrityHeader) - - [Link](#object.Link) - [Object](#object.Object) - [PublicKey](#object.PublicKey) - [SplitHeader](#object.SplitHeader) @@ -381,7 +380,6 @@ Attribute groups the parameters of the object attributes. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| Link | [Link](#object.Link) | | Link to other objects | | Redirect | [refs.Address](#refs.Address) | | Redirect not used yet | | Attribute | [Attribute](#object.Attribute) | | Attribute is a set of K-V object attributes | | SplitHeader | [SplitHeader](#object.SplitHeader) | | Split carries the position of the object in the split hierarchy. | @@ -418,18 +416,6 @@ Header groups the information about the NeoFS object. | ChecksumSignature | [bytes](#bytes) | | ChecksumSignature is an user's signature of checksum to verify if it is correct | - - -### Message Link - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| type | [Link.Type](#object.Link.Type) | | Type of link | -| ID | [bytes](#bytes) | | ID is an object identifier, is a valid UUIDv4 | - - ### Message Object @@ -491,21 +477,6 @@ SplitHeader groups information about spawning the object through a payload split - - -### Link.Type - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| Unknown | 0 | | -| Parent | 1 | Parent object created during object transformation | -| Previous | 2 | Previous object in the linked list created during object transformation | -| Next | 3 | Next object in the linked list created during object transformation | -| Child | 4 | Child object created during object transformation | -| StorageGroup | 5 | Object that included into this storage group | - -