forked from TrueCloudLab/frostfs-node
Airat Arifullin
a4a1c3f18b
* Also, resolve dependencies and conflicts for object service by creating stub for `Patch` method. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
22 lines
727 B
Go
22 lines
727 B
Go
package patchsvc
|
|
|
|
import (
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object"
|
|
getsvc "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object/get"
|
|
putsvc "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object/put"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object/util"
|
|
)
|
|
|
|
// Service implements Put operation of Object service v2.
|
|
type Service struct {
|
|
}
|
|
|
|
// NewService constructs Service instance from provided options.
|
|
func NewService(_ *util.KeyStorage, _ *getsvc.Service, _ *putsvc.Service) *Service {
|
|
return &Service{}
|
|
}
|
|
|
|
// Put calls internal service and returns v2 object streamer.
|
|
func (s *Service) Patch() (object.PatchObjectstream, error) {
|
|
return &Streamer{}, nil
|
|
}
|