Immutable current-generation artifact view and normalized runtime child policy.
Summary
Functions
Builds an artifact while preserving the declaration's original restart policy.
Returns whether an exit is a crash for public lifecycle projection.
Returns whether a runtime exit should be replaced.
Types
@type restart() :: :permanent | :transient | :temporary
@type t() :: %Minga.Extension.Instance.Artifact{ child_spec: Supervisor.child_spec(), manifest: Minga.Extension.Manifest.t(), module: module(), owned_modules: [module()], restart: restart(), source: {:extension, atom()} }
Functions
@spec build(atom(), module(), Minga.Extension.Manifest.t(), [module()], keyword()) :: {:ok, t()} | {:error, term()}
Builds an artifact while preserving the declaration's original restart policy.
Returns whether an exit is a crash for public lifecycle projection.
Returns whether a runtime exit should be replaced.