OpamRepositoryPathDefines the file hierarchy in repositories
val root : OpamTypes.dirname -> OpamTypes.repository_name -> OpamTypes.dirnameRepository local path: $opam/repo/<name>
val tar : OpamTypes.dirname -> OpamTypes.repository_name -> OpamTypes.filenameval download_cache : OpamTypes.dirname -> OpamTypes.dirnamePrefix where to store the downloaded files cache: $opam/download-cache. Warning, this is relative to the opam root, not a repository root.
val pin_cache_dir : unit -> OpamTypes.dirnamePin global cache, located in temporary directory, cleaned at end of process
val pin_cache : OpamUrl.t -> OpamTypes.dirnamePin cache for a given download url.
val repo : OpamTypes.dirname -> OpamFile.Repo.t OpamFile.tReturn the repo file
val packages_dir : OpamTypes.dirname -> OpamTypes.dirnamePackages folder: $repo/packages
val packages :
OpamTypes.dirname ->
string option ->
OpamTypes.package ->
OpamTypes.dirnamePackage folder: $repo/packages/XXX/$NAME.$VERSION
val opam :
OpamTypes.dirname ->
string option ->
OpamTypes.package ->
OpamFile.OPAM.t OpamFile.tReturn the OPAM file for a given package: $repo/packages/XXX/$NAME.$VERSION/opam
val descr :
OpamTypes.dirname ->
string option ->
OpamTypes.package ->
OpamFile.Descr.t OpamFile.tReturn the description file for a given package: $repo/packages/XXX/$NAME.VERSION/descr
val url :
OpamTypes.dirname ->
string option ->
OpamTypes.package ->
OpamFile.URL.t OpamFile.turls $repo/package/XXX/$NAME.$VERSION/url
val files :
OpamTypes.dirname ->
string option ->
OpamTypes.package ->
OpamTypes.dirnamefiles $repo/packages/XXX/$NAME.$VERSION/files
module Remote : sig ... endUrl constructor for parts of remote repositories, when applicable (http and rsync). Function take the repo's root url.