OpamFile.RepoRepository metadata
include IO_FILEval format_version : OpamVersion.tval empty : tEmpty file
val write : t typed_file -> t -> unitWrite some contents to a file
val read : t typed_file -> tRead file contents.
val read_opt : t typed_file -> t optionReturns None on non-existing file
val safe_read : t typed_file -> tRead file contents. Return empty if the file does not exist.
val read_from_channel : ?filename:t typed_file -> Stdlib.in_channel -> tval read_from_string : ?filename:t typed_file -> string -> tval write_to_channel :
?filename:t typed_file ->
Stdlib.out_channel ->
t ->
unitval write_to_string : ?filename:t typed_file -> t -> stringval 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 ->
tval opam_version : t -> OpamVersion.t optionThe minimum OPAM version required for this repository, if defined
val browse : t -> string optionBase URL for browsing packages on the WWW
val upstream : t -> string optionBase URL for browsing OPAM repository source on the WWW
val root_url : t -> OpamTypes.url optionThe root URL of the repository (not an actual file field, determined at runtime by opam)
val redirect : t -> (string * OpamTypes.filter option) listRedirections.
val dl_cache : t -> string listCache URLs, either full or relative to the repo root
val announce : t -> (string * OpamTypes.filter option) listval stamp : t -> string optionval with_opam_version : OpamVersion.t -> t -> tval with_redirect : (string * OpamTypes.filter option) list -> t -> tval with_root_url : OpamTypes.url -> t -> tval with_announce : (string * OpamTypes.filter option) list -> t -> t