diff --git a/v2/object/service.go b/v2/object/service.go new file mode 100644 index 00000000..1551aee5 --- /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) +}