mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-30 17:47:20 +01:00
Entry metadata field
This commit is contained in:
@@ -4,17 +4,18 @@ import "github.com/crazy-max/diun/v4/pkg/registry"
|
||||
|
||||
// Image holds image configuration
|
||||
type Image struct {
|
||||
Name string `yaml:"name,omitempty" json:",omitempty"`
|
||||
Platform ImagePlatform `yaml:"platform,omitempty" json:",omitempty"`
|
||||
RegOpt string `yaml:"regopt,omitempty" json:",omitempty"`
|
||||
WatchRepo bool `yaml:"watch_repo,omitempty" json:",omitempty"`
|
||||
NotifyOn []NotifyOn `yaml:"notify_on,omitempty" json:",omitempty"`
|
||||
MaxTags int `yaml:"max_tags,omitempty" json:",omitempty"`
|
||||
SortTags registry.SortTag `yaml:"sort_tags,omitempty" json:",omitempty"`
|
||||
IncludeTags []string `yaml:"include_tags,omitempty" json:",omitempty"`
|
||||
ExcludeTags []string `yaml:"exclude_tags,omitempty" json:",omitempty"`
|
||||
HubTpl string `yaml:"hub_tpl,omitempty" json:",omitempty"`
|
||||
HubLink string `yaml:"hub_link,omitempty" json:",omitempty"`
|
||||
Name string `yaml:"name,omitempty" json:",omitempty"`
|
||||
Platform ImagePlatform `yaml:"platform,omitempty" json:",omitempty"`
|
||||
RegOpt string `yaml:"regopt,omitempty" json:",omitempty"`
|
||||
WatchRepo bool `yaml:"watch_repo,omitempty" json:",omitempty"`
|
||||
NotifyOn []NotifyOn `yaml:"notify_on,omitempty" json:",omitempty"`
|
||||
MaxTags int `yaml:"max_tags,omitempty" json:",omitempty"`
|
||||
SortTags registry.SortTag `yaml:"sort_tags,omitempty" json:",omitempty"`
|
||||
IncludeTags []string `yaml:"include_tags,omitempty" json:",omitempty"`
|
||||
ExcludeTags []string `yaml:"exclude_tags,omitempty" json:",omitempty"`
|
||||
HubTpl string `yaml:"hub_tpl,omitempty" json:",omitempty"`
|
||||
HubLink string `yaml:"hub_link,omitempty" json:",omitempty"`
|
||||
Metadata map[string]string `yaml:"metadata,omitempty" json:",omitempty"`
|
||||
}
|
||||
|
||||
// ImagePlatform holds image platform configuration
|
||||
|
||||
@@ -27,6 +27,7 @@ type NotifEntry struct {
|
||||
Provider string `json:"provider,omitempty"`
|
||||
Image registry.Image `json:"image,omitempty"`
|
||||
Manifest registry.Manifest `json:"manifest,omitempty"`
|
||||
Metadata map[string]string `json:"metadata,omitempty"`
|
||||
}
|
||||
|
||||
// Notif holds data necessary for notification configuration
|
||||
|
||||
Reference in New Issue
Block a user