Modules

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

Module hex_api_auth

Function Index

test/2 Test an auth key against a given domain and resource.

Function Details

test/2


        test(Config::hex_core:config(), X2::map()) -> hex_api:response()
        

Test an auth key against a given domain and resource.

Examples:

  1> Params = #{domain => <<"repository">>, resource => <<"gustafson_motors">>}.
          2> hex_api_auth:test_key(hex_core:default_config(), Params).
          {ok,{204, ..., nil}}