worker
No long description provided.
Installation
dagger install github.com/salaboy/example-voting-app/dotnet/worker@fa2e841e54049d70efd852b69180f4f8d276eed0
Entrypoint
Return Type
Worker
Example
dagger -m github.com/salaboy/example-voting-app/dotnet/worker@fa2e841e54049d70efd852b69180f4f8d276eed0 call \
func (m *myModule) example() *Worker {
return dag.
Worker()
}
@function
def example() -> dag.Worker:
return (
dag.worker()
)
@func()
example(): Worker {
return dag
.worker()
}
Types
Worker 🔗
serve() 🔗
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
redisSvc | Service | - | No description provided |
postgresSvc | Service | - | No description provided |
componentsPath | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/example-voting-app/dotnet/worker@fa2e841e54049d70efd852b69180f4f8d276eed0 call \
serve --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Service {
return dag.
Worker().
Serve(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Service:
return (
dag.worker()
.serve(dir)
)
@func()
example(dir: Directory): Service {
return dag
.worker()
.serve(dir)
}
build() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
redisSvc | Service | - | No description provided |
postgresSvc | Service | - | No description provided |
componentsPath | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/example-voting-app/dotnet/worker@fa2e841e54049d70efd852b69180f4f8d276eed0 call \
build --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Container {
return dag.
Worker().
Build(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Container:
return (
dag.worker()
.build(dir)
)
@func()
example(dir: Directory): Container {
return dag
.worker()
.build(dir)
}