Commit Graph

191 Commits

Author SHA1 Message Date
CrazyMax
f54f27cc6e chore: fix deprecated const 2025-06-13 02:10:15 +02:00
CrazyMax
ce62dfd722 switch from durafmt to github.com/dromara/carbon 2024-12-21 00:26:14 +01:00
CrazyMax
a27d3f5019 telegram: align chatIDs and chatIDsFile format handling 2024-12-20 18:45:41 +01:00
CrazyMax
61dac9fbfc Merge pull request #1309 from crazy-max/notif-ret-http-error
notif: enhance error message for JSON decode response issues
2024-12-19 01:14:07 +01:00
CrazyMax
3723a6f12b notif: enhance error message for JSON decode response issues 2024-12-19 00:57:05 +01:00
CrazyMax
804411d398 telegram: merge topics to chatID 2024-12-18 18:53:28 +01:00
jon4hz
478b7114bc fix(telegram): use map for topics 2024-12-18 18:53:20 +01:00
jon4hz
d673b3c9dc fix(telegram): support only one topicID per chatID 2024-12-18 16:16:44 +01:00
jon4hz
0f5b616d07 feat(telegram): add support for chat topics 2024-12-18 16:16:44 +01:00
CrazyMax
2fde6548fc notif: support webhook url as secret 2024-12-16 02:28:25 +01:00
CrazyMax
a5444ad6a1 chore(deps): bump dario.cat/mergo to 1.0.1 2024-12-15 15:41:18 +01:00
CrazyMax
12610c46bc switch to github.com/rabbitmq/amqp091-go module 2024-12-15 00:43:49 +01:00
CrazyMax
969ade5306 switch to github.com/containerd/platforms package 2024-12-15 00:30:58 +01:00
CrazyMax
8fb9b975b8 fix lint issues 2024-12-15 00:10:58 +01:00
Ian Fijolek
1ab4453f43 Make sure Nomd TLSConfig struct exists before setting Insecure
Fixes #1074
2024-05-28 11:19:53 -07:00
jon4hz
6c00cab0f4 feat: switch telegram bot library 2024-03-23 10:57:27 +01:00
Michael Manganiello
29200f170d fix: Use global defaults in File provider
The `file` provider was not considering the global defaults for
`MaxTags`, `IncludeTags`, and `ExcludeTags`.

Updated unit tests to validate they are now considered.
2023-12-24 16:48:41 -03:00
Ian Fijolek
5983df6491 Fix linter
Updates golangci-lint and updates to the correct config format.

Also renames some unused parameters to `_` to appese `revive`.
2023-12-13 15:13:40 -08:00
Stécy Dubé
d999959f60 Fix NTFY markdown
Ensure the notification payload includes the "markdown" field set to true.
2023-12-04 17:46:55 -05:00
szerencl
6ab5a97ada Added sound option for pushover 2023-10-07 00:36:07 +02:00
CrazyMax
faeb950fff Fix latest for "image list" command 2023-09-23 19:28:58 +02:00
CrazyMax
b2a19c457c move imageDefaults from watch to defaults in config root 2023-09-23 13:49:15 +02:00
CrazyMax
b9615bf2db fix defaults not handled by yaml configuration 2023-09-23 13:49:15 +02:00
CrazyMax
522c8e9448 handle analysis of image with tag and digest 2023-09-16 18:41:00 +02:00
CrazyMax
78879b3fae chore: fix wording and remove unnecessary comments 2023-09-16 16:59:00 +02:00
CrazyMax
f7bb36d46f chore: use errors.Errorf 2023-09-16 12:36:35 +02:00
CrazyMax
24bc0548e0 chore: use typed error and fix missing wraps 2023-09-16 11:47:53 +02:00
CrazyMax
6a4236c545 chore: make invalid label typed error private 2023-09-16 11:47:53 +02:00
CrazyMax
49b8852a04 test: use white-box testing 2023-09-16 11:47:52 +02:00
Ian Fijolek
60ddac4a59 Global defaults for image configs
Allows setting of image configs at a global level to act as default
values.

This required a change in the model.Image struct due to a bool field not
having a third, unset state. The remedy is to unmarshal into a temporary
data structure to detect the presents of a field value and then use that
to determine if the default value should be used.

Fixes #491
2023-09-12 12:10:10 -07:00
Ian Fijolek
302caf0369 Update nomad provider to use mergo 2023-09-11 16:41:57 -07:00
CrazyMax
780f3fb81f runOnStartup watch option 2023-06-12 00:13:18 +02:00
CrazyMax
c7993f23b8 Authentication support for ntfy 2023-06-11 22:26:27 +02:00
Ben Tea
1da9ec5308 Adds ntfy.sh notification option 2023-02-18 17:29:14 -08:00
Ian Fijolek
e7051f2e38 Check Nomad group meta tags
This was intended originally and included in the documentation, but missed in
the implementation.
2023-01-11 15:22:20 -08:00
CrazyMax
88426efaa1 Align job iteration logic 2022-12-29 11:50:09 +01:00
CrazyMax
073e08ee11 Entry metadata field 2022-12-29 11:15:26 +01:00
CrazyMax
d7909f0156 Allow customizing Signal notification message 2022-12-29 07:47:38 +01:00
CrazyMax
a12d296e6f Jitter watch option 2022-12-28 14:13:47 +01:00
CrazyMax
00edf2c7d9 Fix panics when parsing notification templates 2022-12-28 03:07:22 +01:00
CrazyMax
d135167ceb Fix email notification message template 2022-12-28 00:58:32 +01:00
Ian Fijolek
6318e4f069 Add Nomad provider
I modeled it off the Kubernetes provider a bit. It supports setting task
config at group and task levels using services and meta attributes.
2022-12-27 17:35:27 +01:00
Jonas Weismueller
42e684d680 feat: support signal rest api notifications (#650) 2022-10-08 03:49:27 +02:00
vilm3r
650fbb83ec fix: test notification typo (#677) 2022-08-31 18:01:27 +02:00
CrazyMax
c89e54888e Allow customizing the hub link (#648)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-17 15:56:06 +02:00
CrazyMax
190578f612 Use OCI image.url label to override hub link (#646)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-17 14:55:14 +02:00
CrazyMax
857e462090 Tags sorting support (#645)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-17 13:47:37 +02:00
CrazyMax
64cb538dbf Go 1.18 (#592)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-09 07:57:35 +02:00
CrazyMax
848a9a08ac Move syscall to golang.org/x/sys (#525)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-26 03:59:19 +01:00
CrazyMax
82d056d3ab Move from io/ioutil to os package (#524)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-26 03:59:05 +01:00