From 11272b6c2aa76662e60deccc84854974403a21ac Mon Sep 17 00:00:00 2001 From: Elim Tsiagbey Date: Fri, 12 Jul 2024 10:43:40 -0400 Subject: [PATCH] feat: update storage to support dependency calls --- internal/storage/storage.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/storage/storage.go b/internal/storage/storage.go index 582d87539..110296cb5 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -47,6 +47,12 @@ type RecordingStorage interface { // that is currently being managed and will return the storage bucket that has the latest version. // If the given storage bucket has the latest version, then the managed storage bucket will be updated. UpsertStorageBucket(ctx context.Context, newBucket *storagebuckets.StorageBucket) (bucket.StorageBucketSingleton, error) + + // AddDependant starts tracking the given resource as a dependant. + AddDependant(ctx context.Context, storageBucketId string, dependantId string) error + + // RemoveDependant stops tracking the given resource as an dependant. + RemoveDependant(ctx context.Context, storageBucketId string, dependantId string) error } // Bucket is a resource that represents a bucket in an external object store