Modules

hex_api hex_api_key hex_api_package hex_api_package_owner hex_api_release hex_api_user hex_core hex_http hex_http_httpc hex_pb_names hex_pb_package hex_pb_signed hex_pb_versions hex_registry hex_repo hex_tarball safe_erl_term

Module hex_api_release

Function Index

delete/3
get/3 Gets package release.
publish/2
retire/4
unretire/3

Function Details

delete/3

delete(Config, Name, Version) -> any()

get/3

get(Config, Name, Version) -> any()

Gets package release.

Examples:

  > hex_api:get_release(<<"package">>, <<"1.0.0">>, hex_core:default_config()).
  {ok, {200, ..., #{
      <<"version">> => <<"1.0.0">>,
      <<"meta">> => #{
          <<"description">> => ...,
          <<"licenses">> => ...,
          <<"links">> => ...,
          <<"maintainers">> => ...
      },
      ...}}}

publish/2

publish(Config, Tarball) -> any()

retire/4

retire(Config, Name, Version, Params) -> any()

unretire/3

unretire(Config, Name, Version) -> any()