From 532ae59cf77aaa681126b7f280c325b2b050d786 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Wed, 23 Jun 2021 11:00:59 +0200 Subject: [PATCH] Added method to storage FS interface --- pkg/storage/storage.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/storage/storage.go b/pkg/storage/storage.go index 8481c45a989..a63781ed060 100644 --- a/pkg/storage/storage.go +++ b/pkg/storage/storage.go @@ -23,6 +23,7 @@ import ( "io" "net/url" + grouppb "github.com/cs3org/go-cs3apis/cs3/identity/group/v1beta1" provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1" registry "github.com/cs3org/go-cs3apis/cs3/storage/registry/v1beta1" ) @@ -47,6 +48,7 @@ type FS interface { PurgeRecycleItem(ctx context.Context, key string) error EmptyRecycle(ctx context.Context) error GetPathByID(ctx context.Context, id *provider.ResourceId) (string, error) + GetOwners(ctx context.Context, ref *provider.Reference) (*grouppb.Group, error) AddGrant(ctx context.Context, ref *provider.Reference, g *provider.Grant) error RemoveGrant(ctx context.Context, ref *provider.Reference, g *provider.Grant) error UpdateGrant(ctx context.Context, ref *provider.Reference, g *provider.Grant) error