mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
Add support for Gotify notifications (#346)
This adds support for Gotify (https://gotify.net) notifications. Work items: * Two flags have been added to internal/flags/flags.go: "notification-gotify-url" and "notification-gotify-token". * A Gotify notification driver has been added in notifications/gotify.go. * "gotify" has been added to notification driver choices in notifications/notifier.go. * Docs have been updated
This commit is contained in:
parent
d744b5ddf7
commit
dff16dc639
4 changed files with 131 additions and 2 deletions
|
@ -38,6 +38,8 @@ func NewNotifier(c *cobra.Command) *Notifier {
|
|||
tn = newSlackNotifier(c, acceptedLogLevels)
|
||||
case msTeamsType:
|
||||
tn = newMsTeamsNotifier(c, acceptedLogLevels)
|
||||
case gotifyType:
|
||||
tn = newGotifyNotifier(c, acceptedLogLevels)
|
||||
default:
|
||||
log.Fatalf("Unknown notification type %q", t)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue