DotnetSdk
No long description provided.
Installation
dagger install github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1
Entrypoint
Return Type
DotnetSdk
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
func (m *myModule) example() *DotnetSdk {
return dag.
DotnetSdk()
}
@function
def example() -> dag.DotnetSdk:
return (
dag.dotnet_sdk()
)
@func()
example(): DotnetSdk {
return dag
.dotnetSdk()
}
Types
DotnetSdk 🔗
requiredPaths() 🔗
RequiredPaths is required by Dagger. If absent, the module will fail. It’s left empty here because it applies to the entire context directory, and because the subject module’s source directory will have
**/*
included forcefully by moduleSourceResolveFromCaller anyway. This SDK doesn’t need to require any paths outside the subject module’s csproj (source) folder.
Return Type
[String ! ] !
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
required-paths
func (m *myModule) example(ctx context.Context) []string {
return dag.
DotnetSdk().
RequiredPaths(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.dotnet_sdk()
.required_paths()
)
@func()
async example(): Promise<string[]> {
return dag
.dotnetSdk()
.requiredPaths()
}
clientContainer() 🔗
Used by bootstrap module. For development only. See [/sdk/dotnet/bootstrap/readme.md].
Return Type
Container !
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
client-container
func (m *myModule) example() *Container {
return dag.
DotnetSdk().
ClientContainer()
}
@function
def example() -> dagger.Container:
return (
dag.dotnet_sdk()
.client_container()
)
@func()
example(): Container {
return dag
.dotnetSdk()
.clientContainer()
}
primerContainer() 🔗
Return Type
Container !
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
primer-container
func (m *myModule) example() *Container {
return dag.
DotnetSdk().
PrimerContainer()
}
@function
def example() -> dagger.Container:
return (
dag.dotnet_sdk()
.primer_container()
)
@func()
example(): Container {
return dag
.dotnetSdk()
.primerContainer()
}
codeGeneratorContainer() 🔗
Return Type
Container !
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
code-generator-container
func (m *myModule) example() *Container {
return dag.
DotnetSdk().
CodeGeneratorContainer()
}
@function
def example() -> dagger.Container:
return (
dag.dotnet_sdk()
.code_generator_container()
)
@func()
example(): Container {
return dag
.dotnetSdk()
.codeGeneratorContainer()
}
thunkContainer() 🔗
Return Type
Container !
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
thunk-container
func (m *myModule) example() *Container {
return dag.
DotnetSdk().
ThunkContainer()
}
@function
def example() -> dagger.Container:
return (
dag.dotnet_sdk()
.thunk_container()
)
@func()
example(): Container {
return dag
.dotnetSdk()
.thunkContainer()
}
dotnetContainer() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
dotnet-container --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container {
return dag.
DotnetSdk().
DotnetContainer(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
return (
dag.dotnet_sdk()
.dotnet_container(container)
)
@func()
example(container: Container): Container {
return dag
.dotnetSdk()
.dotnetContainer(container)
}
dotnetRuntimeContainer() 🔗
Return Type
Container !
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
dotnet-runtime-container
func (m *myModule) example() *Container {
return dag.
DotnetSdk().
DotnetRuntimeContainer()
}
@function
def example() -> dagger.Container:
return (
dag.dotnet_sdk()
.dotnet_runtime_container()
)
@func()
example(): Container {
return dag
.dotnetSdk()
.dotnetRuntimeContainer()
}
dotnetSdkContainer() 🔗
Return Type
Container !
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
dotnet-sdk-container
func (m *myModule) example() *Container {
return dag.
DotnetSdk().
DotnetSdkContainer()
}
@function
def example() -> dagger.Container:
return (
dag.dotnet_sdk()
.dotnet_sdk_container()
)
@func()
example(): Container {
return dag
.dotnetSdk()
.dotnetSdkContainer()
}
inject() 🔗
Return Type
DotnetSdk !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
client | Container ! | - | No description provided |
primer | Container ! | - | No description provided |
codeGenerator | Container ! | - | No description provided |
thunk | Container | - | No description provided |
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
inject --client IMAGE:TAG --primer IMAGE:TAG --code-generator IMAGE:TAG
func (m *myModule) example(client *Container, primer *Container, codeGenerator *Container) *DotnetSdk {
return dag.
DotnetSdk().
Inject(client, primer, codeGenerator)
}
@function
def example(client: dagger.Container, primer: dagger.Container, code_generator: dagger.Container) -> dag.DotnetSdk:
return (
dag.dotnet_sdk()
.inject(client, primer, code_generator)
)
@func()
example(client: Container, primer: Container, codeGenerator: Container): DotnetSdk {
return dag
.dotnetSdk()
.inject(client, primer, codeGenerator)
}
maybeAddClientPackage() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
maybe-add-client-package --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container {
return dag.
DotnetSdk().
MaybeAddClientPackage(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
return (
dag.dotnet_sdk()
.maybe_add_client_package(container)
)
@func()
example(container: Container): Container {
return dag
.dotnetSdk()
.maybeAddClientPackage(container)
}
moduleRuntime() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource) *Container {
return dag.
DotnetSdk().
ModuleRuntime(modSource)
}
@function
def example(mod_source: dag.ModuleSource) -> dagger.Container:
return (
dag.dotnet_sdk()
.module_runtime(mod_source)
)
@func()
example(modSource: ModuleSource): Container {
return dag
.dotnetSdk()
.moduleRuntime(modSource)
}
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 *ModuleSource, introspectionJson *File) *GeneratedCode {
return dag.
DotnetSdk().
Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: dagger.File) -> dag.GeneratedCode:
return (
dag.dotnet_sdk()
.codegen(mod_source, introspection_json)
)
@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.dotnetSdk()
.codegen(modSource, introspectionJson)
}
codegenImplementation() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
introspectionJson | File ! | - | No description provided |
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@1e422c33ddb3336855eaf72ea2ba767bbbff2db1 call \
codegen-implementation --introspection-json file:path
func (m *myModule) example(introspectionJson *File) *Directory {
return dag.
DotnetSdk().
CodegenImplementation(introspectionJson)
}
@function
def example(introspection_json: dagger.File) -> dagger.Directory:
return (
dag.dotnet_sdk()
.codegen_implementation(introspection_json)
)
@func()
example(introspectionJson: File): Directory {
return dag
.dotnetSdk()
.codegenImplementation(introspectionJson)
}