package opam-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Urls for OPAM repositories

include IO_FILE
type t

File contents

val empty : t

Empty file

val write : OpamTypes.filename -> t -> unit

Write some contents to a file

val read : OpamTypes.filename -> t

Read file contents. Raise an error if the file does not exist.

val safe_read : OpamTypes.filename -> t

Read file contents. Return empty if the file does not exist.

val read_from_channel : ?filename:OpamTypes.filename -> Stdlib.in_channel -> t

Read from channel.

val read_from_string : ?filename:OpamTypes.filename -> string -> t
val write_to_channel : Stdlib.out_channel -> t -> unit

Write to channel.

val url : t -> OpamTypes.address

URL address

val mirrors : t -> OpamTypes.address list

Backend kind (could be curl/rsync/git/darcs/hg at the moment)

val checksum : t -> string option

Archive checksum

val with_checksum : t -> string -> t

Constructor

OCaml

Innovation. Community. Security.