[nexus] Add stubs for snapshot APIs#748
Conversation
|
FYI, there is a minor divergence from the WIP doc you sent me: this change allows users to add a "name + description" of the snapshot object, and refer to it by a project-scoped name. This fits the existing scheme for all other objects exposed by the API currently. |
|
Cool! What's the plan for automated tests for the Nexus parts (like the CRUD stuff)? |
I can't do this quite yet, as a Nexus-level integration test would require a "real DB implementation" of this stuff. However, when that arrives, that'll be up next. I've added:
|
jmpesp
left a comment
There was a problem hiding this comment.
I have nothing to add beyond the other comments here.
|
Are there any plans to add GCP has a Same question for Also, the |
|
@benjaminleonard We could definitely add something like that - as snapshots haven't been implemented yet, I'm not 100% how long we expect they'll take - but adding "state" indicating progress to image creation seems totally reasonable. You're right, the
We definitely could - this would be for an operation like "see all the snapshots of this disk that exist"? I think we'd want to add an index for this operation (currently, we only have an index to lookup snapshots by |
|
Great thanks for clarifying Sean! |
|
One little thing to add is that a "source snapshot" can and probably will go away. Once a disk has been created from a snapshot, that disk will have a life of its own and it's possible the original snapshot will be deleted. |
First part of #735