worker
No long description provided.
Installation
dagger install github.com/salaboy/example-voting-app/dotnet/worker@4254b79386eb8bdb8ed34d618d025763274fa96e
Entrypoint
Return Type
Worker
Example
dagger -m github.com/salaboy/example-voting-app/dotnet/worker@4254b79386eb8bdb8ed34d618d025763274fa96e 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@4254b79386eb8bdb8ed34d618d025763274fa96e 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@4254b79386eb8bdb8ed34d618d025763274fa96e 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)
}