2021-11-08 10:04:45 +00:00
|
|
|
package object
|
|
|
|
|
|
|
|
import (
|
2022-12-13 14:36:35 +00:00
|
|
|
"github.com/TrueCloudLab/frostfs-api-go/v2/object"
|
2021-11-08 10:04:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// RawObject represents v2-compatible NeoFS object that provides
|
|
|
|
// a convenient interface to fill in the fields of
|
|
|
|
// an object in isolation from its internal structure.
|
|
|
|
//
|
2022-03-03 11:48:55 +00:00
|
|
|
// Deprecated: use Object type instead.
|
|
|
|
type RawObject = Object
|
2021-11-08 10:04:45 +00:00
|
|
|
|
2022-03-03 11:48:55 +00:00
|
|
|
// NewRawFromV2 wraps v2 Object message to Object.
|
2021-11-08 10:04:45 +00:00
|
|
|
//
|
2022-03-03 11:48:55 +00:00
|
|
|
// Deprecated: (v1.0.0) use NewFromV2 function instead.
|
|
|
|
func NewRawFromV2(oV2 *object.Object) *Object {
|
|
|
|
return NewFromV2(oV2)
|
2021-11-08 10:04:45 +00:00
|
|
|
}
|
|
|
|
|
2022-03-03 11:48:55 +00:00
|
|
|
// NewRawFrom wraps Object instance to Object.
|
|
|
|
//
|
|
|
|
// Deprecated: (v1.0.0) function is no-op.
|
|
|
|
func NewRawFrom(obj *Object) *Object {
|
|
|
|
return obj
|
2021-11-08 10:04:45 +00:00
|
|
|
}
|
|
|
|
|
2022-03-03 11:48:55 +00:00
|
|
|
// NewRaw creates and initializes blank Object.
|
|
|
|
//
|
|
|
|
// Deprecated: (v1.0.0) use New instead.
|
|
|
|
func NewRaw() *Object {
|
|
|
|
return New()
|
2021-11-08 10:04:45 +00:00
|
|
|
}
|
2022-02-16 14:49:29 +00:00
|
|
|
|
2022-03-03 11:48:55 +00:00
|
|
|
// Object returns object instance.
|
|
|
|
//
|
|
|
|
// Deprecated: (v1.0.0) method is no-op, use arg directly.
|
|
|
|
func (o *Object) Object() *Object {
|
|
|
|
return o
|
2022-02-16 14:49:29 +00:00
|
|
|
}
|