forked from TrueCloudLab/frostfs-api-go
[#155] sdk/object: Add Object to RawObject converter
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
cecdeeac73
commit
14fa89b819
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,11 @@ func NewRawFromV2(oV2 *object.Object) *RawObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewRawFrom wraps Object instance to RawObject.
|
||||||
|
func NewRawFrom(obj *Object) *RawObject {
|
||||||
|
return NewRawFromV2(obj.ToV2())
|
||||||
|
}
|
||||||
|
|
||||||
// NewRaw creates and initializes blank RawObject.
|
// NewRaw creates and initializes blank RawObject.
|
||||||
//
|
//
|
||||||
// Works similar as NewRawFromV2(new(Object)).
|
// Works similar as NewRawFromV2(new(Object)).
|
||||||
|
|
Loading…
Reference in a new issue