This module defines the rebar_resource_v2 behaviour.
Required callback functions: init/2, lock/2, download/4, needs_update/2, make_vsn/2.
location() = string()
ref() = any()
resource() = #resource{type = atom(), module = module(), state = term(), implementation = rebar_resource | rebar_resource_v2}
resource_state() = term()
source() = {type(), location(), ref()} | {type(), location(), ref(), binary()} | {type(), location(), ref(), binary(), binary()}
type() = atom()
| download/3 | |
| find_resource_state/2 | |
| format_error/1 | |
| format_source/1 | |
| lock/2 | |
| make_vsn/3 | |
| needs_update/2 | |
| new/3 |
download(TmpDir, AppInfo, State) -> any()
find_resource_state(Type, Resources) -> any()
format_error(X1) -> any()
format_source(AppInfo) -> any()
lock(AppInfo, State) -> any()
make_vsn(AppInfo, Vsn, State) -> any()
needs_update(AppInfo, State) -> any()
new(Type::type(), Module::module(), State::term()) -> resource()
Generated by EDoc