Add hub link to notifiers

Send message as markdown for Gotify and Telegram notifiers
This commit is contained in:
CrazyMax
2020-06-09 01:19:30 +02:00
committed by CrazyMax
parent 6e8b0450ff
commit 896d4827b4
17 changed files with 145 additions and 79 deletions

View File

@@ -44,6 +44,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
Status string `json:"status"`
Provider string `json:"provider"`
Image string `json:"image"`
HubLink string `json:"hub_link"`
MIMEType string `json:"mime_type"`
Digest digest.Digest `json:"digest"`
Created *time.Time `json:"created"`
@@ -53,6 +54,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
Status: string(entry.Status),
Provider: entry.Provider,
Image: entry.Image.String(),
HubLink: entry.Image.HubLink,
MIMEType: entry.Manifest.MIMEType,
Digest: entry.Manifest.Digest,
Created: entry.Manifest.Created,