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

Introspection of Smokestack DSLs.

Summary

Functions

Retrieve a variant for a specific resource.

List all variants available for a resource.

Functions

factory(factory, resource, variant)

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

Retrieve a variant for a specific resource.

factory!(factory, resource, variant)

Raising version of factory/3

variants(factory, resource)

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

List all variants available for a resource.