Dagger
Search

dapr

This module allows injecting a dapr sidecar into your application so you can use dapr features like service invocation, state management, pub/sub, etc.

Installation

dagger install github.com/marcosnils/daggerverse/dapr@v0.2.7

Entrypoint

Return Type
Dapr !
Arguments
NameTypeDescription
imageString dapr image to use
Example
func (m *myModule) example() *Dapr  {
	return dag.
			Dapr()
}
@function
def example() -> dag.Dapr:
	return (
		dag.dapr()
	)
@func()
example(): Dapr {
	return dag
		.dapr()
}

Types

Dapr

image()

Return Type
String !
Example
dagger -m github.com/marcosnils/daggerverse/dapr@bfa9939333c74e5b74a7a3281d9a3fad729fba49 call \
 image
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Dapr().
			Image(ctx)
}
@function
async def example() -> str:
	return await (
		dag.dapr()
		.image()
	)
@func()
async example(): Promise<string> {
	return dag
		.dapr()
		.image()
}

dapr()

Dapr creates a new Dapr container with the specified configuration.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
appIdString !-No description provided
appPortInteger -No description provided
appChannelAddressString -No description provided
componentsPathDirectory -No description provided
Example
dagger -m github.com/marcosnils/daggerverse/dapr@bfa9939333c74e5b74a7a3281d9a3fad729fba49 call \
 dapr --app-id string
func (m *myModule) example(appId string) *Container  {
	return dag.
			Dapr().
			Dapr(appId)
}
@function
def example(app_id: str) -> dagger.Container:
	return (
		dag.dapr()
		.dapr(app_id)
	)
@func()
example(appId: string): Container {
	return dag
		.dapr()
		.dapr(appId)
}