From bcacfb9cf689bb04eedd675df8bfd5b8eba791fe Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 21 Aug 2020 15:15:25 +0300 Subject: [PATCH] Add object service interface for external clients Signed-off-by: Alex Vanin --- v2/object/service.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 v2/object/service.go diff --git a/v2/object/service.go b/v2/object/service.go new file mode 100644 index 0000000..1551aee --- /dev/null +++ b/v2/object/service.go @@ -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) +}