elixir-sdk-dev
A module for help developing Elixir SDK.
Installation
dagger install github.com/TomChv/dagger/sdk/elixir/dev@e45ebd5f4222708ca1db05ff34a68320e24b9ed4
Entrypoint
Return Type
ElixirSdkDev
Example
func (m *myModule) example() *ElixirSdkDev {
return dag.
ElixirSdkDev()
}
Types
ElixirSdkDev 🔗
test() 🔗
Test the SDK.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
ElixirSdkDev().
Test(container)
}
lint() 🔗
Lint the SDK.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
ElixirSdkDev().
Lint(container)
}
generate() 🔗
Generate the SDK API.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
introspectionJson | File ! | - | No description provided |
Example
func (m *myModule) example(container *Container, introspectionJson *File) *Directory {
return dag.
ElixirSdkDev().
Generate(container, introspectionJson)
}
sdkTest() 🔗
Run the SDK tests.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
ElixirSdkDev().
SdkTest(container)
}
codegenTest() 🔗
Run dagger_codegen tests.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
ElixirSdkDev().
CodegenTest(container)
}
syncImage() 🔗
Sync Elixir image to keep both dev and runtime modules consistent.
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | The Elixir SDK source |
Example
func (m *myModule) example() *File {
return dag.
ElixirSdkDev().
SyncImage()
}
withBase() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | The Elixir SDK source |
Example
func (m *myModule) example(source *Directory) *Container {
return dag.
ElixirSdkDev().
WithBase(source)
}
withCodegen() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
ElixirSdkDev().
WithCodegen(container)
}