AshScenario.Info (ash_scenario v0.6.0)

View Source

Introspection functions for accessing prototype information from resource modules.

Summary

Functions

Get the creation configuration for a resource module.

Check if a resource module has any prototypes defined.

Get a specific prototype by name from a resource module.

Get all prototype names from a resource module.

Get all prototypes defined in a resource module.

Functions

create(resource)

Get the creation configuration for a resource module.

Returns %AshScenario.Dsl.Create{} if defined, otherwise a default with action :create.

has_prototypes?(ash_resource)

Check if a resource module has any prototypes defined.

prototype(ash_resource, name)

Get a specific prototype by name from a resource module.

prototype_names(ash_resource)

Get all prototype names from a resource module.

prototypes(ash_resource)

Get all prototypes defined in a resource module.