partisan_orchestration_backend behaviour (partisan v5.0.1)

View Source

Summary

Callbacks

clients/1

-callback clients(term()) -> term().

download_artifact/2

-callback download_artifact(term(), node()) -> term().

servers/1

-callback servers(term()) -> term().

upload_artifact/3

-callback upload_artifact(term(), node(), term()) -> term().

Functions

graph()

nodes()

-spec nodes() -> {ok, [node()]}.

orchestrated()

orchestration()

servers()

-spec servers() -> {ok, [node()]}.

start_link()

-spec start_link() -> {ok, pid()} | ignore | {error, term()}.

Same as start_link([]).

start_link(Opts)

-spec start_link(list()) -> {ok, pid()} | ignore | {error, term()}.

Start and link to calling process.

tree()

was_connected()