dang
No long description provided.
Installation
dagger install github.com/shykes/dagger/sdk/dang@84faab7c028c0d3f811c083331ce39e9eb403bccEntrypoint
Return Type
Dang Example
dagger -m github.com/shykes/dagger/sdk/dang@84faab7c028c0d3f811c083331ce39e9eb403bcc call \
func (m *MyModule) Example() *dagger.Dang {
return dag.
Dang()
}@function
def example() -> dagger.Dang:
return (
dag.dang()
)@func()
example(): Dang {
return dag
.dang()
}Types
Dang 🔗
moduleRuntime() 🔗
ModuleRuntime returns a container with the node entrypoint ready to be called.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.Container {
return dag.
Dang().
ModuleRuntime(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.dang()
.module_runtime(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.dang()
.moduleRuntime(modSource, introspectionJson)
}base() 🔗
Return Type
Container ! Example
dagger -m github.com/shykes/dagger/sdk/dang@84faab7c028c0d3f811c083331ce39e9eb403bcc call \
basefunc (m *MyModule) Example() *dagger.Container {
return dag.
Dang().
Base()
}@function
def example() -> dagger.Container:
return (
dag.dang()
.base()
)@func()
example(): Container {
return dag
.dang()
.base()
}entrypoint() 🔗
Return Type
File ! Example
dagger -m github.com/shykes/dagger/sdk/dang@84faab7c028c0d3f811c083331ce39e9eb403bcc call \
entrypointfunc (m *MyModule) Example() *dagger.File {
return dag.
Dang().
Entrypoint()
}@function
def example() -> dagger.File:
return (
dag.dang()
.entrypoint()
)@func()
example(): File {
return dag
.dang()
.entrypoint()
}repl() 🔗
Return Type
Container ! Example
dagger -m github.com/shykes/dagger/sdk/dang@84faab7c028c0d3f811c083331ce39e9eb403bcc call \
replfunc (m *MyModule) Example() *dagger.Container {
return dag.
Dang().
Repl()
}@function
def example() -> dagger.Container:
return (
dag.dang()
.repl()
)@func()
example(): Container {
return dag
.dang()
.repl()
}