Library
Module
Module type
Parameter
Class
Class type
Defines the file hierarchy in ~/.opam
type t = OpamTypes.dirname
Type of path root
val state_cache : t -> OpamTypes.filename
State cache
val lock : t -> OpamTypes.filename
Global lock file for the whole opamroot. Opam should generally read-lock this (e.g. initialisation and format upgrades require a write lock)
val config : t -> OpamFile.Config.t OpamFile.t
Main configuration file: $opam/config
val init_config_file : unit -> OpamFile.InitConfig.t OpamFile.t option
Gets an opam init config file, if present on the system (either ~/.opamrc or /etc/opamrc
val config_lock : t -> OpamTypes.filename
Lock for updates on the main config file (write lock when changes to switches, repositories lists are expected. No lock needed otherwise)
val archives_dir : t -> OpamTypes.dirname
Archives dir
val archive : t -> OpamTypes.package -> OpamTypes.filename
Archive file: $opam/archives/$NAME.$VERSION+opam.tar.gz
val repos_lock : t -> OpamTypes.filename
Global lock file for the repositories mirrors: $opam/repo/lock
val repos_config : t -> OpamFile.Repos_config.t OpamFile.t
Global config file for the repositories mirrors: $opam/repo/repos-config
val init : t -> OpamTypes.dirname
Init scripts
val log : t -> OpamTypes.dirname
Log dir $opam/log
val backup_dir : t -> OpamTypes.dirname
The directory where global backups are stored
val backup : t -> OpamTypes.switch_selections OpamFile.t
Backup file for state export
module Switch : sig ... end
Switch related paths