forked from TrueCloudLab/frostfs-api
[#26] object: Rename System header to Main
In the previous format, the object header was subdivided into system and extended parts, which confused the purpose of these parts. In particular, the extended header contains system fields. To clarify the non-intersection of the mentioned parts of the object header, it was decided to rename System to Main. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
eaad094a2c
commit
a5c1b3683b
2 changed files with 10 additions and 10 deletions
|
@ -9,9 +9,9 @@ import "storagegroup/types.proto";
|
||||||
|
|
||||||
// Header groups the information about the NeoFS object.
|
// Header groups the information about the NeoFS object.
|
||||||
message Header {
|
message Header {
|
||||||
// System groups mandatory information about the object.
|
// Main groups mandatory information about the object.
|
||||||
// Message fields are presented in all NeoFS objects.
|
// Message fields are presented in all NeoFS objects.
|
||||||
message System {
|
message Main {
|
||||||
// PayloadLength carries length of the object payload.
|
// PayloadLength carries length of the object payload.
|
||||||
// Each object has a fixed payload length since it's immutable.
|
// Each object has a fixed payload length since it's immutable.
|
||||||
uint64 PayloadLength = 1;
|
uint64 PayloadLength = 1;
|
||||||
|
@ -21,9 +21,9 @@ message Header {
|
||||||
// OwnerID carries identifier the object owner in a binary format.
|
// OwnerID carries identifier the object owner in a binary format.
|
||||||
bytes OwnerID = 3;
|
bytes OwnerID = 3;
|
||||||
}
|
}
|
||||||
// System carries the main part of the header.
|
// Main carries the main part of the header.
|
||||||
// System MUST NOT be NULL.
|
// Main MUST NOT be NULL.
|
||||||
System system = 1;
|
Main main = 1;
|
||||||
|
|
||||||
// Extended groups additional information about the object.
|
// Extended groups additional information about the object.
|
||||||
// It encapsulates both user and system attributes needed to regulate
|
// It encapsulates both user and system attributes needed to regulate
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
- [Header.Extended.Integrity](#object.Header.Extended.Integrity)
|
- [Header.Extended.Integrity](#object.Header.Extended.Integrity)
|
||||||
- [Header.Extended.Split](#object.Header.Extended.Split)
|
- [Header.Extended.Split](#object.Header.Extended.Split)
|
||||||
- [Header.Extended.Tombstone](#object.Header.Extended.Tombstone)
|
- [Header.Extended.Tombstone](#object.Header.Extended.Tombstone)
|
||||||
- [Header.System](#object.Header.System)
|
- [Header.Main](#object.Header.Main)
|
||||||
- [Object](#object.Object)
|
- [Object](#object.Object)
|
||||||
|
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ Header groups the information about the NeoFS object.
|
||||||
|
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| system | [Header.System](#object.Header.System) | | System carries the main part of the header. System MUST NOT be NULL. |
|
| main | [Header.Main](#object.Header.Main) | | Main carries the main part of the header. Main MUST NOT be NULL. |
|
||||||
| extended | [Header.Extended](#object.Header.Extended) | | Extended carries the additional part of the header. |
|
| extended | [Header.Extended](#object.Header.Extended) | | Extended carries the additional part of the header. |
|
||||||
|
|
||||||
|
|
||||||
|
@ -439,10 +439,10 @@ Tombstone groups the options for deleting an object.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="object.Header.System"></a>
|
<a name="object.Header.Main"></a>
|
||||||
|
|
||||||
### Message Header.System
|
### Message Header.Main
|
||||||
System groups mandatory information about the object.
|
Main groups mandatory information about the object.
|
||||||
Message fields are presented in all NeoFS objects.
|
Message fields are presented in all NeoFS objects.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue