mirror of
https://github.com/crazy-max/diun.git
synced 2026-01-01 10:37:27 +01:00
Handle exclusions as a distinct status (#248)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -24,6 +24,7 @@ const (
|
||||
ImageStatusNew = ImageStatus("new")
|
||||
ImageStatusUpdate = ImageStatus("update")
|
||||
ImageStatusUnchange = ImageStatus("unchange")
|
||||
ImageStatusSkip = ImageStatus("skip")
|
||||
ImageStatusError = ImageStatus("error")
|
||||
)
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ type NotifEntries struct {
|
||||
CountNew int
|
||||
CountUpdate int
|
||||
CountUnchange int
|
||||
CountSkip int
|
||||
CountError int
|
||||
CountTotal int
|
||||
}
|
||||
@@ -61,6 +62,9 @@ func (s *NotifEntries) Add(entry NotifEntry) {
|
||||
case ImageStatusUnchange:
|
||||
s.CountUnchange++
|
||||
s.CountTotal++
|
||||
case ImageStatusSkip:
|
||||
s.CountSkip++
|
||||
s.CountTotal++
|
||||
case ImageStatusError:
|
||||
s.CountError++
|
||||
s.CountTotal++
|
||||
|
||||
Reference in New Issue
Block a user