Dagger
Search

worker

No long description provided.

Installation

dagger install github.com/salaboy/example-voting-app/dotnet/worker@4254b79386eb8bdb8ed34d618d025763274fa96e

Entrypoint

Return Type
Worker
Example
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
NameTypeDefault ValueDescription
dirDirectory !-No description provided
redisSvcService -No description provided
postgresSvcService -No description provided
componentsPathDirectory -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
NameTypeDefault ValueDescription
dirDirectory !-No description provided
redisSvcService -No description provided
postgresSvcService -No description provided
componentsPathDirectory -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)
}