Dagger
Search

DotnetSdk

No long description provided.

Installation

dagger install github.com/m-pixel/dagger/sdk/dotnet/module@ba81318d2a0f9eb427e7d8ed41357791c1461c16

Entrypoint

Return Type
DotnetSdk
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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
NameTypeDefault ValueDescription
containerContainer !-No description provided
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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()
}

injectCodegenDependencies() 🔗

Return Type
DotnetSdk !
Arguments
NameTypeDefault ValueDescription
primerContainer !-No description provided
codeGeneratorContainer !-No description provided
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@ba81318d2a0f9eb427e7d8ed41357791c1461c16 call \
 inject-codegen-dependencies --primer IMAGE:TAG --code-generator IMAGE:TAG
func (m *myModule) example(primer *Container, codeGenerator *Container) *DotnetSdk  {
	return dag.
			DotnetSdk().
			InjectCodegenDependencies(primer, codeGenerator)
}
@function
def example(primer: dagger.Container, code_generator: dagger.Container) -> dag.DotnetSdk:
	return (
		dag.dotnet_sdk()
		.inject_codegen_dependencies(primer, code_generator)
	)
@func()
example(primer: Container, codeGenerator: Container): DotnetSdk {
	return dag
		.dotnetSdk()
		.injectCodegenDependencies(primer, codeGenerator)
}

injectModuleRuntimeDependencies() 🔗

Return Type
DotnetSdk !
Arguments
NameTypeDefault ValueDescription
clientContainer !-No description provided
thunkContainer !-No description provided
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@ba81318d2a0f9eb427e7d8ed41357791c1461c16 call \
 inject-module-runtime-dependencies --client IMAGE:TAG --thunk IMAGE:TAG
func (m *myModule) example(client *Container, thunk *Container) *DotnetSdk  {
	return dag.
			DotnetSdk().
			InjectModuleRuntimeDependencies(client, thunk)
}
@function
def example(client: dagger.Container, thunk: dagger.Container) -> dag.DotnetSdk:
	return (
		dag.dotnet_sdk()
		.inject_module_runtime_dependencies(client, thunk)
	)
@func()
example(client: Container, thunk: Container): DotnetSdk {
	return dag
		.dotnetSdk()
		.injectModuleRuntimeDependencies(client, thunk)
}

maybeAddClientPackage() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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
NameTypeDefault ValueDescription
modSourceModuleSource !-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
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonFile !-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
NameTypeDefault ValueDescription
introspectionJsonFile !-No description provided
Example
dagger -m github.com/m-pixel/dagger/sdk/dotnet/module@ba81318d2a0f9eb427e7d8ed41357791c1461c16 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)
}