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.1.3
Entrypoint
Return Type
Novu
Example
dagger -m github.com/levlaz/daggerverse/novu@56559412d83814e93eb6444608119f03e5c1dec7 call \
func (m *myModule) example() *Novu {
return dag.
Novu()
}
@function
def example() -> dag.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@56559412d83814e93eb6444608119f03e5c1dec7 call \
notify --subscriber string --token env:MYSECRET --event string --msg string
func (m *myModule) example(ctx context.Context, subscriber string, token *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)
}