forked from TrueCloudLab/frostfs-api
[#26] object: Rename Header to ExtendedHeader
The naming Header obscures its semantic meaning precisely as a subclass of the general object header. To clarify the layers of typing object headers, this commit renames the message to ExtendedHeader. As a result, the Headers field in the Object has been renamed to ExtendedHeaders. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a76f634e47
commit
2c3717bdee
2 changed files with 7 additions and 7 deletions
|
@ -16,7 +16,7 @@ message Attribute {
|
|||
string Value = 2;
|
||||
}
|
||||
|
||||
message Header {
|
||||
message ExtendedHeader {
|
||||
oneof Value {
|
||||
// Link to other objects
|
||||
Link Link = 1;
|
||||
|
@ -112,8 +112,8 @@ message Transform {
|
|||
message Object {
|
||||
// SystemHeader describes system header
|
||||
SystemHeader SystemHeader = 1;
|
||||
// Headers describes a set of an extended headers
|
||||
repeated Header Headers = 2;
|
||||
// ExtendedHeaders describes a set of an extended headers
|
||||
repeated ExtendedHeader ExtendedHeaders = 2;
|
||||
// Payload is an object's payload
|
||||
bytes Payload = 3;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
- Messages
|
||||
- [Attribute](#object.Attribute)
|
||||
- [CreationPoint](#object.CreationPoint)
|
||||
- [Header](#object.Header)
|
||||
- [ExtendedHeader](#object.ExtendedHeader)
|
||||
- [IntegrityHeader](#object.IntegrityHeader)
|
||||
- [Link](#object.Link)
|
||||
- [Object](#object.Object)
|
||||
|
@ -385,9 +385,9 @@ Attribute groups the parameters of the object attributes.
|
|||
| Epoch | [uint64](#uint64) | | Epoch is a date of creation in NeoFS epochs |
|
||||
|
||||
|
||||
<a name="object.Header"></a>
|
||||
<a name="object.ExtendedHeader"></a>
|
||||
|
||||
### Message Header
|
||||
### Message ExtendedHeader
|
||||
|
||||
|
||||
|
||||
|
@ -439,7 +439,7 @@ Attribute groups the parameters of the object attributes.
|
|||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| SystemHeader | [SystemHeader](#object.SystemHeader) | | SystemHeader describes system header |
|
||||
| Headers | [Header](#object.Header) | repeated | Headers describes a set of an extended headers |
|
||||
| ExtendedHeaders | [ExtendedHeader](#object.ExtendedHeader) | repeated | ExtendedHeaders describes a set of an extended headers |
|
||||
| Payload | [bytes](#bytes) | | Payload is an object's payload |
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue