forked from TrueCloudLab/frostfs-api-go
[#164] sdk/object: Add parent ID getter and setter
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
420d956062
commit
ae81f4584e
3 changed files with 30 additions and 0 deletions
|
@ -110,6 +110,11 @@ func (o *RawObject) SetChildren(v ...*ID) {
|
|||
o.setChildren(v...)
|
||||
}
|
||||
|
||||
// SetParentID sets identifier of the parent object.
|
||||
func (o *RawObject) SetParentID(v *ID) {
|
||||
o.setParentID(v)
|
||||
}
|
||||
|
||||
// SetParent sets parent object w/o payload.
|
||||
func (o *RawObject) SetParent(v *Object) {
|
||||
o.setParent(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue