Add object service interface for external clients
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
e55b59bde7
commit
bcacfb9cf6
1 changed files with 15 additions and 0 deletions
15
v2/object/service.go
Normal file
15
v2/object/service.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package object
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type Service interface {
|
||||
Get(context.Context, *GetRequest) (GetObjectStreamer, error)
|
||||
Put(context.Context) (PutObjectStreamer, error)
|
||||
Head(context.Context, *HeadRequest) (*HeadResponse, error)
|
||||
Search(context.Context, *SearchRequest) (SearchObjectStreamer, error)
|
||||
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
|
||||
GetRange(context.Context, *GetRangeRequest) (GetRangeObjectStreamer, error)
|
||||
GetRangeHash(context.Context, *GetRangeHashRequest) (*GetRangeHashResponse, error)
|
||||
}
|
Loading…
Reference in a new issue