ProteusClientProviderImpl

internal class ProteusClientProviderImpl(rootProteusPath: String, userId: <Error class: unknown class>, passphraseStorage: <Error class: unknown class>, currentClientIdProvider: CurrentClientIdProvider, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl, proteusMigrationRecoveryHandler: ProteusMigrationRecoveryHandler) : ProteusClientProvider, CryptoBackupExporter

Constructors

Link copied to clipboard
constructor(rootProteusPath: String, userId: <Error class: unknown class>, passphraseStorage: <Error class: unknown class>, currentClientIdProvider: CurrentClientIdProvider, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl, proteusMigrationRecoveryHandler: ProteusMigrationRecoveryHandler)

Functions

Link copied to clipboard
open suspend override fun clearLocalFiles()
Link copied to clipboard
open suspend override fun exportCryptoDB(exportPath: String): <Error class: unknown class><<Error class: unknown class>, CryptoBackupMetadata>

Exports the cryptographic database to the specified path and returns the metadata required for backup restoration.

Link copied to clipboard
open suspend override fun getOrCreate(): <Error class: unknown class>

Returns the ProteusClient or creates new one if doesn't exists.

Link copied to clipboard
open suspend override fun getOrError(): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>

Returns the ProteusClient, retrieves it from local files or returns a failure if local files doesn't exist.