Add inserts a container status into the progress map. Parameters: - update: Status to add.
(update *ContainerStatus)
| 110 | // Parameters: |
| 111 | // - update: Status to add. |
| 112 | func (m Progress) Add(update *ContainerStatus) { |
| 113 | m[update.containerID] = update |
| 114 | logrus.WithFields(logrus.Fields{ |
| 115 | "container_id": update.containerID.ShortID(), |
| 116 | "name": update.containerName, |
| 117 | "state": update.State(), |
| 118 | }).Debug("Added container status to progress map") |
| 119 | } |
| 120 | |
| 121 | // MarkForUpdate sets a container's state to updated. |
| 122 | // |