gpg:: SnapshotManager:: OpenResponse
#include <snapshot_manager.h>
Holds the data for a particular requested snapshot along with a response status.
Summary
If the snapshot is in a conflicted state, the main snapshot data
will not be valid and conflict information will be provided in the conflict_id
, conflict_original
, and conflict_unmerged
fields. The conflict must be resolved before the snapshot can receive future modifications.
Public attributes |
|
---|---|
conflict_id
|
std::string
The identifier of this conflict.
|
conflict_original
|
Empty if
conflict_id is empty. |
conflict_unmerged
|
Empty if
conflict_id is empty. |
data
|
A
Snapshot . |
status
|
Can be one of the values enumerated in SnapshotOpenStatus.
|
Public attributes
conflict_id
std::string gpg::SnapshotManager::OpenResponse::conflict_id
The identifier of this conflict.
If this string is empty, there is no conflict.
conflict_original
SnapshotMetadata gpg::SnapshotManager::OpenResponse::conflict_original
Empty if conflict_id
is empty.
This is the agreed upon current version of the snapshot. Note: previously called conflict_base
.
conflict_unmerged
SnapshotMetadata gpg::SnapshotManager::OpenResponse::conflict_unmerged
Empty if conflict_id
is empty.
This is the proposed change that failed to be applied due to conflicting operations from another device. Note: previously called conflict_remote
.
data
SnapshotMetadata gpg::SnapshotManager::OpenResponse::data
A Snapshot
.
This snapshot will only be valid if there are no errors or conflicts. In the event of an unhandled conflict use conflict_id
, conflict_original
, and conflict_unmerged
.
status
SnapshotOpenStatus gpg::SnapshotManager::OpenResponse::status
Can be one of the values enumerated in SnapshotOpenStatus.
If the response is unsuccessful, OpenResponse
's data vector is empty.