diff options
Diffstat (limited to 'internal/backup/pipeline.go')
-rw-r--r-- | internal/backup/pipeline.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/backup/pipeline.go b/internal/backup/pipeline.go index 8000f61af..1b969ccac 100644 --- a/internal/backup/pipeline.go +++ b/internal/backup/pipeline.go @@ -16,6 +16,7 @@ import ( type Strategy interface { Create(context.Context, *CreateRequest) error Restore(context.Context, *RestoreRequest) error + RemoveRepository(context.Context, *RemoveRepositoryRequest) error RemoveAllRepositories(context.Context, *RemoveAllRepositoriesRequest) error } @@ -52,6 +53,12 @@ type RestoreRequest struct { BackupID string } +// RemoveRepositoryRequest is a request to remove an individual repository from its storage. +type RemoveRepositoryRequest struct { + Server storage.ServerInfo + Repo *gitalypb.Repository +} + // RemoveAllRepositoriesRequest is the request to remove all repositories in the specified // storage name. type RemoveAllRepositoriesRequest struct { |