Skip to content

Commit bc2364d

Browse files
authored
Implement clone instance waiter (#219)
1 parent d1c564d commit bc2364d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/mongodbflex/wait/wait.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface
5454
return handler
5555
}
5656

57+
// CloneInstanceWaitHandler will wait for instance clone to be created
58+
func CloneInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse] {
59+
return CreateInstanceWaitHandler(ctx, a, projectId, instanceId)
60+
}
61+
5762
// UpdateInstanceWaitHandler will wait for instance update
5863
func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse] {
5964
handler := wait.New(func() (waitFinished bool, response *mongodbflex.GetInstanceResponse, err error) {

0 commit comments

Comments
 (0)