CloudStorageAdapter

Interface for interacting with cloud storage services.

This interface defines the core operations for backing up and restoring data to/from a cloud storage provider. Concrete implementations of this interface should handle the specific logic for interacting with each service's API.

Inheritors

Properties

Link copied to clipboard
abstract var api: Api?
Link copied to clipboard
abstract var method: BackupMethods

Functions

Link copied to clipboard
abstract fun decrypt(value: String, key: String): String
Link copied to clipboard
open suspend fun delete(): Boolean
Link copied to clipboard
abstract fun encrypt(value: String): EncryptedData
Link copied to clipboard
open suspend fun read(): String?
Link copied to clipboard
open suspend fun validateOperations(): Boolean
Link copied to clipboard
open suspend fun write(content: String): String?