forked from TrueCloudLab/frostfs-node
[#1214] *: Use single Object
type in whole project
Remove `Object` and `RawObject` types from `pkg/core/object` package. Use `Object` type from NeoFS SDK Go library everywhere. Avoid using the deprecated elements. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
19ad349b27
commit
7ccd1625af
100 changed files with 847 additions and 965 deletions
|
@ -430,7 +430,7 @@ func putObject(cmd *cobra.Command, _ []string) {
|
|||
expAttr.SetValue(strconv.FormatUint(expiresOn, 10))
|
||||
}
|
||||
|
||||
obj := object.NewRaw()
|
||||
obj := object.New()
|
||||
obj.SetContainerID(cid)
|
||||
obj.SetOwnerID(ownerID)
|
||||
obj.SetAttributes(attrs...)
|
||||
|
@ -441,7 +441,7 @@ func putObject(cmd *cobra.Command, _ []string) {
|
|||
sessionObjectCtxAddress.SetContainerID(cid)
|
||||
prepareSessionPrmWithOwner(cmd, sessionObjectCtxAddress, key, ownerID, &prm)
|
||||
prepareObjectPrm(cmd, &prm)
|
||||
prm.SetHeader(obj.Object())
|
||||
prm.SetHeader(obj)
|
||||
prm.SetPayloadReader(f)
|
||||
|
||||
res, err := internalclient.PutObject(prm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue