View Source Smokestack.Dsl.Info (smokestack v0.9.1)

Introspection of Smokestack DSLs.

Summary

Functions

Retrieve a variant for a specific resource.

List all variants available for a resource.

Functions

Link to this function

factory(factory, resource, variant)

View Source
@spec factory(Smokestack.t(), Ash.Resource.t(), atom()) ::
  {:ok, Smokestack.Dsl.Factory.t()} | {:error, Exception.t()}

Retrieve a variant for a specific resource.

Link to this function

factory!(factory, resource, variant)

View Source

Raising version of factory/3

Link to this function

variants(factory, resource)

View Source
@spec variants(Smokestack.t(), Ash.Resource.t()) :: [atom()]

List all variants available for a resource.