bootstrap
itself is possible without making round-trips through public NuGet or container registry.Installation
dagger install github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2Entrypoint
Return Type
Bootstrap Example
dagger -m github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2 call \
func (m *MyModule) Example() *dagger.Bootstrap {
return dag.
Bootstrap()
}@function
def example() -> dagger.Bootstrap:
return (
dag.bootstrap()
)@func()
example(): Bootstrap {
return dag
.bootstrap()
}Types
Bootstrap 🔗
requiredPaths() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2 call \
required-pathsfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Bootstrap().
RequiredPaths(ctx)
}@function
async def example() -> List[str]:
return await (
dag.bootstrap()
.required_paths()
)@func()
async example(): Promise<string[]> {
return dag
.bootstrap()
.requiredPaths()
}primer() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2 call \
primer --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
Bootstrap().
Primer(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.bootstrap()
.primer(source)
)@func()
example(source: Directory): Container {
return dag
.bootstrap()
.primer(source)
}codeGenerator() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2 call \
code-generator --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
Bootstrap().
CodeGenerator(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.bootstrap()
.code_generator(source)
)@func()
example(source: Directory): Container {
return dag
.bootstrap()
.codeGenerator(source)
}thunk() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
Example
dagger -m github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2 call \
thunkfunc (m *MyModule) Example() *dagger.Container {
return dag.
Bootstrap().
Thunk()
}@function
def example() -> dagger.Container:
return (
dag.bootstrap()
.thunk()
)@func()
example(): Container {
return dag
.bootstrap()
.thunk()
}clientLayer() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2 call \
client-layer --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
Bootstrap().
ClientLayer(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.bootstrap()
.client_layer(source)
)@func()
example(source: Directory): Container {
return dag
.bootstrap()
.clientLayer(source)
}clientPackages() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/M-Pixel/dagger/sdk/dotnet/bootstrap@8049fb36f87b1b7304cc74bb8fe0a2abf69f7fc2 call \
client-packages --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
Bootstrap().
ClientPackages(source)
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.bootstrap()
.client_packages(source)
)@func()
example(source: Directory): Directory {
return dag
.bootstrap()
.clientPackages(source)
}moduleRuntime() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
| source | Directory | - | 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.
Bootstrap().
ModuleRuntime(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.bootstrap()
.module_runtime(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.bootstrap()
.moduleRuntime(modSource, introspectionJson)
}codegen() 🔗
Return Type
GeneratedCode !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
| source | Directory | - | 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.
Bootstrap().
Codegen(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.GeneratedCode:
return (
dag.bootstrap()
.codegen(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.bootstrap()
.codegen(modSource, introspectionJson)
}