package opam-repomin

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

Module Opam_repomin.RepoSource

Repository handling.

Sourcetype t

An opam repository.

Sourceval load : Fpath.t -> (t, [ `Msg of string ]) result

Load an opam repository from the given path. The path should point to a directory containing a packages/ subdirectory.

Sourceval packages_dir : t -> Fpath.t

Return the path to the packages directory.

Sourceval list_packages : t -> OpamPackage.Name.t list

List all package names in the repository.

Sourceval list_versions : t -> OpamPackage.Name.t -> OpamPackage.Version.t list

List all versions of a package in the repository.

Sourceval has_package : t -> OpamPackage.t -> bool

Check if a specific package version exists in the repository.

Sourceval opam_file : t -> OpamPackage.t -> OpamFile.OPAM.t option

Load the opam file for a specific package version.