csharp-sdk
Runtime module for the C# SDK
Installation
dagger install github.com/pjmagee/dagger/sdk/csharp/runtime@f60741330461afc6543f16845871a8917b151729Entrypoint
Return Type
CsharpSdk !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| sdkSourceDir | Directory | - | Directory with the C# SDK source code. |
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/runtime@f60741330461afc6543f16845871a8917b151729 call \
func (m *MyModule) Example() *dagger.CsharpSdk {
return dag.
CsharpSdk()
}@function
def example() -> dagger.CsharpSdk:
return (
dag.csharp_sdk()
)@func()
example(): CsharpSdk {
return dag
.csharpSdk()
}Types
CsharpSdk 🔗
sourceDir() 🔗
Return Type
Directory ! Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/runtime@f60741330461afc6543f16845871a8917b151729 call \
source-dirfunc (m *MyModule) Example() *dagger.Directory {
return dag.
CsharpSdk().
SourceDir()
}@function
def example() -> dagger.Directory:
return (
dag.csharp_sdk()
.source_dir()
)@func()
example(): Directory {
return dag
.csharpSdk()
.sourceDir()
}codegen() 🔗
Return Type
GeneratedCode !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.GeneratedCode {
return dag.
CsharpSdk().
Codegen(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.GeneratedCode:
return (
dag.csharp_sdk()
.codegen(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.csharpSdk()
.codegen(modSource, introspectionJson)
}codegenBase() 🔗
CodegenBase prepares the base container with SDK and template files (no build)
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.
CsharpSdk().
CodegenBase(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.csharp_sdk()
.codegen_base(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.csharpSdk()
.codegenBase(modSource, introspectionJson)
}moduleRuntime() 🔗
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.
CsharpSdk().
ModuleRuntime(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.csharp_sdk()
.module_runtime(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.csharpSdk()
.moduleRuntime(modSource, introspectionJson)
}