Module rebar_resource_v2

This module defines the rebar_resource_v2 behaviour.
Required callback functions: init/2, lock/2, download/4, needs_update/2, make_vsn/2.

Data Types

location()

location() = string()

ref()

ref() = any()

resource()

resource() = #resource{type = atom(), module = module(), state = term(), implementation = rebar_resource | rebar_resource_v2}

resource_state()

resource_state() = term()

source()

source() = {type(), location(), ref()} | {type(), location(), ref(), binary()} | {type(), location(), ref(), binary(), binary()}

type()

type() = atom()

Function Index

download/3
find_resource_state/2
format_error/1
format_source/1
lock/2
make_vsn/3
needs_update/2
new/3

Function Details

download/3

download(TmpDir, AppInfo, State) -> any()

find_resource_state/2

find_resource_state(Type, Resources) -> any()

format_error/1

format_error(X1) -> any()

format_source/1

format_source(AppInfo) -> any()

lock/2

lock(AppInfo, State) -> any()

make_vsn/3

make_vsn(AppInfo, Vsn, State) -> any()

needs_update/2

needs_update(AppInfo, State) -> any()

new/3

new(Type::type(), Module::module(), State::term()) -> resource()


Generated by EDoc