Dagger
Search

novu

This module allows you to send multi-channel notifications from your Dagger 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
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
NameTypeDefault ValueDescription
subscriberString !-Novu subscriber ID
tokenSecret !-Novu API token
eventString !-Novu event Id
msgString !-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)
}