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.5

Entrypoint

Return Type
Dapr !
Arguments
NameTypeDescription
imageString No description provided
Example
dagger -m github.com/marcosnils/daggerverse/dapr@6ffac6382e043081ccde734429719e7778d81e47 call \
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@6ffac6382e043081ccde734429719e7778d81e47 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() 🔗

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@6ffac6382e043081ccde734429719e7778d81e47 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)
}