mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-27 15:41:35 +01:00
Check digest from HEAD request (#217)
* Check digest from HEAD request * Add FAQ note about Docker Hub rate limits * Compare digest as watch setting Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,7 @@ type Watch struct {
|
||||
Workers int `yaml:"workers,omitempty" json:"workers,omitempty" validate:"required,min=1"`
|
||||
Schedule string `yaml:"schedule,omitempty" json:"schedule,omitempty" validate:"required"`
|
||||
FirstCheckNotif *bool `yaml:"firstCheckNotif,omitempty" json:"firstCheckNotif,omitempty" validate:"required"`
|
||||
CompareDigest *bool `yaml:"compareDigest,omitempty" json:"compareDigest,omitempty" validate:"required"`
|
||||
Healthchecks *Healthchecks `yaml:"healthchecks,omitempty" json:"healthchecks,omitempty"`
|
||||
}
|
||||
|
||||
@@ -24,4 +25,5 @@ func (s *Watch) SetDefaults() {
|
||||
s.Workers = 10
|
||||
s.Schedule = "0 * * * *"
|
||||
s.FirstCheckNotif = utl.NewFalse()
|
||||
s.CompareDigest = utl.NewTrue()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user