novu
This module allows you to send multi-channel notifications from yourDagger pipeline using [Novu](https://novu.co/). The open source notification
infrastructure platform.
Installation
dagger install github.com/levlaz/daggerverse/novu@v0.2.0Entrypoint
Return Type
Novu Example
dagger -m github.com/levlaz/daggerverse/novu@29275f43038fec196fd1985b2ce2c71e2bc4ef9f call \
func (m *MyModule) Example() *dagger.Novu {
return dag.
Novu()
}@function
def example() -> dagger.Novu:
return (
dag.novu()
)@func()
example(): Novu {
return dag
.novu()
}Types
Novu 🔗
notify() 🔗
trigger notification via Novu
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| subscriber | String ! | - | Novu subscriber ID |
| token | Secret ! | - | Novu API token |
| event | String ! | - | Novu event Id |
| msg | String ! | - | Message body for notification |
Example
dagger -m github.com/levlaz/daggerverse/novu@29275f43038fec196fd1985b2ce2c71e2bc4ef9f call \
notify --subscriber string --token env:MYSECRET --event string --msg stringfunc (m *MyModule) Example(ctx context.Context, subscriber string, token *dagger.Secret, event string, msg string) string {
return dag.
Novu().
Notify(ctx, subscriber, token, event, msg)
}@function
async def example(subscriber: str, token: dagger.Secret, event: str, msg: str) -> str:
return await (
dag.novu()
.notify(subscriber, token, event, msg)
)@func()
async example(subscriber: string, token: Secret, event: string, msg: string): Promise<string> {
return dag
.novu()
.notify(subscriber, token, event, msg)
}