notify
Currently supports Discord only. Coming up: Slack.Installation
dagger install github.com/gerhard/daggerverse/notify@v0.1.0
Entrypoint
Return Type
Notify
Example
dagger -m github.com/gerhard/daggerverse/notify@478197b7c7b8739743f808ed8742a0b69b54acd4 call \
func (m *myModule) example() *Notify {
return dag.
Notify()
}
@function
def example() -> dag.Notify:
return (
dag.notify()
)
@func()
example(): Notify {
return dag
.notify()
}
Types
Notify 🔗
discord() 🔗
EXAMPLE: dagger call discord –webhook-url env:DISCORD_WEBHOOK –message “Hi from Dagger Notify Module 👋 Learn more at https://github.com/gerhard/daggerverse”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
webhookUrl | Secret ! | - | No description provided |
message | String ! | - | No description provided |
Example
dagger -m github.com/gerhard/daggerverse/notify@478197b7c7b8739743f808ed8742a0b69b54acd4 call \
discord --webhook-url env:MYSECRET --message string
func (m *myModule) example(ctx context.Context, webhookUrl *Secret, message string) string {
return dag.
Notify().
Discord(ctx, webhookUrl, message)
}
@function
async def example(webhook_url: dagger.Secret, message: str) -> str:
return await (
dag.notify()
.discord(webhook_url, message)
)
@func()
async example(webhookUrl: Secret, message: string): Promise<string> {
return dag
.notify()
.discord(webhookUrl, message)
}