forked from TrueCloudLab/frostfs-api-go
[#301] pkg/object: Add MarshalHeaderJSON
method
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
cc1163fd57
commit
0f478a9dc6
1 changed files with 6 additions and 0 deletions
|
@ -37,3 +37,9 @@ func (o *Object) ToV2() *object.Object {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MarshalHeaderJSON marshals object's header
|
||||||
|
// into JSON format.
|
||||||
|
func (o *Object) MarshalHeaderJSON() ([]byte, error) {
|
||||||
|
return (*object.Object)(o.rwObject).GetHeader().MarshalJSON()
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue