Module OpamFile.RepoSource
Repository metadata
include OpamFile.IO_FILE
File contents
Empty file
Write some contents to a file
Read file contents.
Returns None on non-existing file
Read file contents. Return empty if the file does not exist.
Source
val read_from_channel :
?filename:OpamFile.Repo.t OpamFile.typed_file ->
Stdlib.in_channel ->
OpamFile.Repo.tSource
val read_from_string :
?filename:OpamFile.Repo.t OpamFile.typed_file ->
string ->
OpamFile.Repo.tSource
val write_to_channel :
?filename:OpamFile.Repo.t OpamFile.typed_file ->
Stdlib.out_channel ->
OpamFile.Repo.t ->
unitSource
val write_to_string :
?filename:OpamFile.Repo.t OpamFile.typed_file ->
OpamFile.Repo.t ->
stringSource
val create :
?browse:string ->
?upstream:string ->
?opam_version:OpamVersion.t ->
?redirect:(string * OpamTypes.filter option) list ->
?root_url:OpamTypes.url ->
?dl_cache:string list ->
?announce:(string * OpamTypes.filter option) list ->
?stamp:string ->
unit ->
OpamFile.Repo.tThe minimum OPAM version required for this repository, if defined
Base URL for browsing packages on the WWW
Base URL for browsing OPAM repository source on the WWW
The root URL of the repository (not an actual file field, determined at runtime by opam)
Redirections.
Cache URLs, either full or relative to the repo root
Source
val with_redirect :
(string * OpamTypes.filter option) list ->
OpamFile.Repo.t ->
OpamFile.Repo.tSource
val with_announce :
(string * OpamTypes.filter option) list ->
OpamFile.Repo.t ->
OpamFile.Repo.t