Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
// monorepo/cloud/backend/internal/maplefile/repo/fileobjectstorage/delete.go
|
||||
package fileobjectstorage
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// DeleteEncryptedData removes encrypted file data from S3
|
||||
func (impl *fileObjectStorageRepositoryImpl) DeleteEncryptedData(storagePath string) error {
|
||||
ctx := context.Background()
|
||||
|
||||
// Delete the encrypted data
|
||||
err := impl.Storage.DeleteByKeys(ctx, []string{storagePath})
|
||||
if err != nil {
|
||||
impl.Logger.Error("Failed to delete encrypted data",
|
||||
zap.String("storagePath", storagePath),
|
||||
zap.Error(err))
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue