AshLua.EvalActions.Info (ash_lua v0.1.0)

Copy Markdown View Source

Introspection helpers for the AshLua.EvalActions extension.

Summary

Functions

Returns the {resource, action} tuples to filter the manifest by — one per declared (resource, action) pair. :all expands to every public action on the resource at the time of expansion.

Name of the synthesized docs action. Defaults to :docs.

Name of the synthesized eval action. Defaults to :eval.

Returns the configured %Expose{} entries (one per resource ... entry).

OTP app to scan when building the manifest for :eval / :docs.

Functions

action_entrypoints(resource)

@spec action_entrypoints(Ash.Resource.t() | Spark.Dsl.t()) :: [{module(), atom()}]

Returns the {resource, action} tuples to filter the manifest by — one per declared (resource, action) pair. :all expands to every public action on the resource at the time of expansion.

docs_action_name(resource)

@spec docs_action_name(Ash.Resource.t() | Spark.Dsl.t()) :: atom()

Name of the synthesized docs action. Defaults to :docs.

eval_action_name(resource)

@spec eval_action_name(Ash.Resource.t() | Spark.Dsl.t()) :: atom()

Name of the synthesized eval action. Defaults to :eval.

exposes(resource)

Returns the configured %Expose{} entries (one per resource ... entry).

otp_app(resource)

@spec otp_app(Ash.Resource.t() | Spark.Dsl.t()) :: atom() | nil

OTP app to scan when building the manifest for :eval / :docs.

Falls back to the resource's domain's :otp_app when not explicitly configured.