Bedrock.ControlPlane.Director.Recovery.Shared (bedrock v0.5.2)

View Source

Shared utilities for recovery phase modules.

Summary

Functions

Creates a starter function for supervised processes.

Types

starter_fn()

@type starter_fn() :: (Supervisor.child_spec(), node() ->
                   {:ok, pid()}
                   | {:error, {:supervisor_exit, term()}}
                   | {:error, {:supervisor_error, term()}}
                   | {:error, {:unexpected_failure, term()}}
                   | {:error, :already_started}
                   | {:error, :max_children}
                   | {:error, term()})

Functions

starter_for(supervisor_otp_name)

@spec starter_for(atom()) :: starter_fn()

Creates a starter function for supervised processes.

Returns a function that can start child processes on specific nodes using the given supervisor OTP name.