mirror of
https://github.com/containrrr/watchtower.git
synced 2026-03-09 06:02:34 +01:00
simplify legacy notifications
removes all code related to log levels and title, since that is not used anyway this also gets rid of slackrus dependency
This commit is contained in:
parent
42b65b42f3
commit
cc40a3c3a7
9 changed files with 50 additions and 93 deletions
|
|
@ -1,16 +1,17 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"time"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
// ConvertibleNotifier is a notifier capable of creating a shoutrrr URL
|
||||
type ConvertibleNotifier interface {
|
||||
GetURL(c *cobra.Command, title string) (string, error)
|
||||
GetURL(c *cobra.Command) (string, error)
|
||||
}
|
||||
|
||||
// DelayNotifier is a notifier that might need to be delayed before sending notifications
|
||||
type DelayNotifier interface {
|
||||
GetDelay() time.Duration
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue