Files
diun/internal/model/notif.go
CrazyMax 5942e39b83 Allow overriding os and architecture when watching
Move insecure_tls and timeout options to registry option
Rename Bolt bucket
Change default schedule
Review registry client
2019-06-08 02:50:46 +02:00

20 lines
515 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"`
Image registry.Image `json:"image,omitempty"`
Manifest docker.Manifest `json:"manifest,omitempty"`
}