mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 21:33:22 +01:00
21 lines
569 B
Go
21 lines
569 B
Go
package model
|
|
|
|
import (
|
|
"github.com/crazy-max/diun/pkg/docker"
|
|
"github.com/crazy-max/diun/pkg/docker/registry"
|
|
)
|
|
|
|
// Notif holds data necessary for notification configuration
|
|
type Notif struct {
|
|
Mail Mail `yaml:"mail,omitempty"`
|
|
Webhook Webhook `yaml:"webhook,omitempty"`
|
|
}
|
|
|
|
// NotifEntry represents a notification entry
|
|
type NotifEntry struct {
|
|
Status ImageStatus `json:"status,omitempty"`
|
|
Provider string `json:"provider,omitempty"`
|
|
Image registry.Image `json:"image,omitempty"`
|
|
Manifest docker.Manifest `json:"manifest,omitempty"`
|
|
}
|