git.frostfs.info/TrueCloudLab/frostfs-sdk-go@v0.0.0-20241022124111-5361f0ecebd3/object/raw.go (about) 1 package object 2 3 import ( 4 "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/object" 5 ) 6 7 // RawObject represents v2-compatible FrostFS object that provides 8 // a convenient interface to fill in the fields of 9 // an object in isolation from its internal structure. 10 // 11 // Deprecated: use Object type instead. 12 type RawObject = Object 13 14 // NewRawFromV2 wraps v2 Object message to Object. 15 // 16 // Deprecated: (v1.0.0) use NewFromV2 function instead. 17 func NewRawFromV2(oV2 *object.Object) *Object { 18 return NewFromV2(oV2) 19 } 20 21 // NewRawFrom wraps Object instance to Object. 22 // 23 // Deprecated: (v1.0.0) function is no-op. 24 func NewRawFrom(obj *Object) *Object { 25 return obj 26 } 27 28 // NewRaw creates and initializes blank Object. 29 // 30 // Deprecated: (v1.0.0) use New instead. 31 func NewRaw() *Object { 32 return New() 33 } 34 35 // Object returns object instance. 36 // 37 // Deprecated: (v1.0.0) method is no-op, use arg directly. 38 func (o *Object) Object() *Object { 39 return o 40 }