SetAsStarted marks a certain backup as started
(podName, containerID, sessionID string, method BackupMethod)
| 72 | |
| 73 | // SetAsStarted marks a certain backup as started |
| 74 | func (backupStatus *BackupStatus) SetAsStarted(podName, containerID, sessionID string, method BackupMethod) { |
| 75 | backupStatus.Phase = BackupPhaseStarted |
| 76 | backupStatus.Error = "" |
| 77 | backupStatus.InstanceID = &InstanceID{ |
| 78 | PodName: podName, |
| 79 | ContainerID: containerID, |
| 80 | SessionID: sessionID, |
| 81 | } |
| 82 | backupStatus.Method = method |
| 83 | backupStatus.ReconciliationStartedAt = ptr.To(metav1.Now()) |
| 84 | } |
| 85 | |
| 86 | // SetSnapshotElements sets the Snapshots field from a list of VolumeSnapshot |
| 87 | func (snapshotStatus *BackupSnapshotStatus) SetSnapshotElements(snapshots []volumesnapshotv1.VolumeSnapshot) { |
no outgoing calls
no test coverage detected