module type BACKEND = sig
.. end
Backend signature
val init : address:OpamTypes.address -> unit
Initialize an OPAM repository in the current directory. The
argument is the remote repository address.
val update : address:OpamTypes.address -> OpamFilename.Set.t
Update the OPAM repository in the current directory. Return the
list of locally updated files.
val download_archive : address:OpamTypes.address ->
OpamTypes.package -> OpamTypes.filename OpamTypes.download
Download a (remote) archive file, stored on the (remote) OPAM
repository, in the current repository. Return the local path to
the downloaded archive.
val download_file : ?checksum:string ->
OpamTypes.package ->
OpamTypes.filename -> OpamTypes.filename OpamTypes.download
Download a (remote) file and return the local path to the
downloaded file: $repo/tmp/$package/$filename.
val download_dir : OpamTypes.package ->
?dst:OpamTypes.dirname ->
OpamTypes.address -> OpamTypes.dirname OpamTypes.download
Download a (remote) directory and return the local path to the
downloaded directory: $repo/tmp/$package/$dirname.
val upload_dir : address:OpamTypes.dirname -> OpamTypes.address -> OpamFilename.Set.t
Upload the content of the current directory to the directory
given as argument. Return the local paths corresponding to the
uploaded local files.