Packages

Verified OCI/Docker registry client library for Elixir

Current section

Files

Jump to
regc lib regc repository.ex
Raw

lib/regc/repository.ex

defmodule Regc.Repository do
@moduledoc """
Optional registry catalog operations.
"""
alias Regc.Client
@spec list(Client.t(), String.t(), keyword()) ::
{:ok, [String.t()] | Regc.Page.t()} | {:error, Regc.Error.t()}
def list(%Client{} = client, host, opts \\ []) when is_binary(host) do
with {:ok, backend} <- Client.backend(client, "reg") do
backend.repository_list(client, Keyword.put(opts, :host, host))
end
end
end