pub trait RemoteProvider {
    fn get_keyring() -> Entry;
    fn new() -> Self;
    fn pull(&self) -> Result<Vec<Package>, Box<dyn Error>>;
    fn push(&self, backup: &[Package]) -> Result<(), Box<dyn Error>>;
    fn login(&self, relogin: bool) -> Result<(), Box<dyn Error>>;
    fn set_id(&self, id: String) -> Result<(), Box<dyn Error>>;
}

Required Methods

Get the keyring for the provider.

Initializes a new RemoteProvider

Pulls a backup from a remote server.

Pushes a backup to a remote server.

Obtain a access token for the remote server.

Set the id for the backup.

Implementors