View Source DSL: Smokestack.Dsl
The DSL definition for the Smokestack DSL.
DSL Documentation
Index
- smokestack
- factory
- attribute
- factory
Docs
smokestack
- factory
- attribute
:domain(module that adoptsAsh.Domain) - The default Ash Domain to use when evaluating loads
factory
Define factories for a resource
* attribute:domain(module that adoptsAsh.Domain) - The Ash Domain to use when evaluating loads:resource(module that adoptsAsh.Resource) - Required. An Ash Resource:variant(atom/0) - The name of a factory variant The default value is:default.
attribute
:name(atom/0) - Required. The name of the target attribute:generator- Required. A function which can generate an appropriate value for the attribute.œ
smokestack
Nested DSLs
- factory
- attribute
Options
| Name | Type | Default | Docs |
|---|---|---|---|
domain | module | The default Ash Domain to use when evaluating loads |
smokestack.factory
factory resource, variant \\ :defaultDefine factories for a resource
Nested DSLs
Arguments
| Name | Type | Default | Docs |
|---|---|---|---|
resource | module | An Ash Resource | |
variant | atom | :default | The name of a factory variant |
Options
| Name | Type | Default | Docs |
|---|---|---|---|
domain | module | The Ash Domain to use when evaluating loads |
smokestack.factory.attribute
attribute name, generatorArguments
| Name | Type | Default | Docs |
|---|---|---|---|
name | atom | The name of the target attribute | |
generator | (-> any) | mfa | (any -> any) | mfa | (any, any -> any) | mfa | Smokestack.Template.Choose | Smokestack.Template.Constant | Smokestack.Template.Cycle | Smokestack.Template.NTimes | Smokestack.Template.Sequence | A function which can generate an appropriate value for the attribute.œ |
Introspection
Target: Smokestack.Dsl.Attribute
Introspection
Target: Smokestack.Dsl.Factory