mirror of
https://github.com/containrrr/watchtower.git
synced 2026-02-23 23:54:06 +01:00
Add metrics and progress report capabilities for deferred items seperate from other statuses
This commit is contained in:
parent
48bfaef350
commit
3c0441b94c
10 changed files with 84 additions and 43 deletions
|
|
@ -50,6 +50,11 @@ func (m Progress) MarkForUpdate(containerID types.ContainerID) {
|
|||
m[containerID].state = UpdatedState
|
||||
}
|
||||
|
||||
// MarkForUpdate marks the container identified by containerID for deferral
|
||||
func (m Progress) MarkDeferred(containerID types.ContainerID) {
|
||||
m[containerID].state = DeferredState
|
||||
}
|
||||
|
||||
// Report creates a new Report from a Progress instance
|
||||
func (m Progress) Report() types.Report {
|
||||
return NewReport(m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue