forked from TrueCloudLab/frostfs-node
[#61] Update to latest neofs-api-go changes
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f251645def
commit
1654df4d97
9 changed files with 33 additions and 24 deletions
|
@ -67,3 +67,16 @@ func FromBytes(data []byte) (*Object, error) {
|
|||
Object: o,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// GetParent returns parent object.
|
||||
func (o *Object) GetParent() *Object {
|
||||
if o != nil {
|
||||
if par := o.Object.GetParent(); par != nil {
|
||||
return &Object{
|
||||
Object: par,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue