Module imex

Module imex 

Source
Expand description

ยงImport/export module.

Modulesยง

key_transfer ๐Ÿ”’
Key transfer via Autocrypt Setup Message.
transfer ๐Ÿ”’
Transfer a backup to an other device.

Structsยง

BackupProvider
Provide or send a backup of this device.
ProgressReader ๐Ÿ”’
Reader that emits progress events as bytes are read from it.
ProgressWriter ๐Ÿ”’
Writer that emits progress events as bytes are written into it.

Enumsยง

ImexMode
Import/export command.

Constantsยง

BLOBS_BACKUP_NAME ๐Ÿ”’
DBFILE_BACKUP_NAME ๐Ÿ”’

Functionsยง

check_backup_version ๐Ÿ”’
continue_key_transfer
Continue key transfer via Autocrypt Setup Message.
export_backup ๐Ÿ”’
Exports the database to a separate file with the given passphrase.
export_backup_stream ๐Ÿ”’
Exports the database and blobs into a stream.
export_database ๐Ÿ”’
Exports the database to dest, encrypted using passphrase.
export_key_to_asc_file ๐Ÿ”’
Returns the exported key file name inside dir.
export_self_keys ๐Ÿ”’
get_backup
Contacts a backup provider and receives the backup from it.
get_next_backup_path ๐Ÿ”’
Returns Ok((temp_db_path, temp_path, dest_path)) on success. Unencrypted database can be written to temp_db_path. The backup can then be written to temp_path. If the backup succeeded, it can be renamed to dest_path. This guarantees that the backup is complete.
has_backup
Returns the filename of the backup found (otherwise an error)
imex
Import/export things.
imex_inner ๐Ÿ”’
import_backup ๐Ÿ”’
Imports backup into the currently open database.
import_backup_stream ๐Ÿ”’
Imports backup by reading a tar file from a stream.
import_backup_stream_inner ๐Ÿ”’
import_secret_key ๐Ÿ”’
Imports secret key from a file.
import_self_keys ๐Ÿ”’
Imports secret keys from the provided file or directory.
initiate_key_transfer
Initiates key transfer via Autocrypt Setup Message.
set_self_key ๐Ÿ”’