Module upm::sync [] [src]

This module supports synchronizing a UPM database with a copy on a remote repository. The remote repository should be an HTTP or HTTPS server supporting the "download", "upload", and "delete" primitives of the UPM sync protocol.

Enums

SyncResult

A successful sync will result in one of these three conditions.

Functions

download

Download a database from the remote repository without performing any sync operation with a local database. This is useful when downloading an existing remote database for the first time.

sync

Synchronize the local and remote databases using the UPM sync protocol. If an optional remote password is provided, it will be used when decrypting the remote database; otherwise, the password of the local database will be used. Return true if the caller needs to reload the local database.