AshHooks.Info (AshHooks v0.2.1)

Copy Markdown View Source

Accessors for a resource's webhooks declarations, read via Spark.Dsl.Extension (the ash_age pattern — no generated getter in this spark version).

Summary

Functions

The inbound declaration for provider, if any.

The outbound declaration for event, if any.

All webhook entities (inbound + outbound) declared on resource.

Functions

inbound(resource, provider)

@spec inbound(Ash.Resource.t(), atom()) :: AshHooks.Inbound.t() | nil

The inbound declaration for provider, if any.

outbound(resource, event)

@spec outbound(Ash.Resource.t(), atom()) :: AshHooks.Outbound.t() | nil

The outbound declaration for event, if any.

webhooks(resource)

@spec webhooks(Ash.Resource.t()) :: [AshHooks.Inbound.t() | AshHooks.Outbound.t()]

All webhook entities (inbound + outbound) declared on resource.