View Source DockerAPI.Endpoints.Distribution (DockerAPI v0.4.0)

Distribution

official-document

Official document

https://docs.docker.com/engine/api/v1.41/#tag/Distribution

Link to this section Summary

Link to this section Types

@type id() :: String.t()
@type t() :: %DockerAPI.Endpoints.Distribution{
  connection: DockerAPI.Connection.t(),
  id: id()
}

Link to this section Functions

@spec bang!(:ok) :: :ok
@spec bang!({:ok, term()}) :: term()
@spec bang!({:error, DockerAPI.Error.t()}) :: no_return()
Link to this function

handle_json_response(error)

View Source
@spec handle_json_response({:ok, binary()}) :: {:ok, term()}
@spec handle_json_response({:error, DockerAPI.Error.t()}) ::
  {:error, DockerAPI.Error.t()}
Link to this function

handle_no_response(error)

View Source
@spec handle_no_response({:ok, term()}) :: :ok
@spec handle_no_response({:error, DockerAPI.Error.t()}) ::
  {:error, DockerAPI.Error.t()}
Link to this function

inspect!(image, params \\ %{}, headers \\ [])

View Source (since 0.4.0)
@spec inspect!(
  image :: DockerAPI.Endpoints.Image.t(),
  params :: DockerAPI.Connection.params(),
  headers :: DockerAPI.Connection.headers()
) :: term()
Link to this function

inspect(image, params \\ %{}, headers \\ [])

View Source (since 0.4.0)
@spec inspect(
  image :: DockerAPI.Endpoints.Image.t(),
  params :: DockerAPI.Connection.params(),
  headers :: DockerAPI.Connection.headers()
) :: {:ok, term()} | {:error, DockerAPI.Error.t()}

Get image information from the registry

official-document

Official document

https://docs.docker.com/engine/api/v1.41/#tag/Distribution

example

Example

Please help!