99 "github.com/stackitcloud/stackit-sdk-go/core/oapierror"
1010 "github.com/stackitcloud/stackit-sdk-go/core/wait"
1111 "github.com/stackitcloud/stackit-sdk-go/services/iaas"
12- "github.com/stackitcloud/stackit-sdk-go/services/iaasalpha"
1312)
1413
1514const (
@@ -46,7 +45,7 @@ type APIClientInterface interface {
4645 GetVolumeExecute (ctx context.Context , projectId string , volumeId string ) (* iaas.Volume , error )
4746 GetServerExecute (ctx context.Context , projectId string , serverId string ) (* iaas.Server , error )
4847 GetAttachedVolumeExecute (ctx context.Context , projectId string , serverId string , volumeId string ) (* iaas.VolumeAttachment , error )
49- GetImageExecute (ctx context.Context , projectId string , imageId string ) (* iaasalpha .Image , error )
48+ GetImageExecute (ctx context.Context , projectId string , imageId string ) (* iaas .Image , error )
5049}
5150
5251// CreateNetworkAreaWaitHandler will wait for network area creation
@@ -552,8 +551,8 @@ func RemoveVolumeFromServerWaitHandler(ctx context.Context, a APIClientInterface
552551}
553552
554553// UploadImageWaitHandler will wait for the status image to become AVAILABLE, which indicates the upload of the image has been completed successfully
555- func UploadImageWaitHandler (ctx context.Context , a APIClientInterface , projectId , imageId string ) * wait.AsyncActionHandler [iaasalpha .Image ] {
556- handler := wait .New (func () (waitFinished bool , response * iaasalpha .Image , err error ) {
554+ func UploadImageWaitHandler (ctx context.Context , a APIClientInterface , projectId , imageId string ) * wait.AsyncActionHandler [iaas .Image ] {
555+ handler := wait .New (func () (waitFinished bool , response * iaas .Image , err error ) {
557556 image , err := a .GetImageExecute (ctx , projectId , imageId )
558557 if err != nil {
559558 return false , image , err
@@ -574,8 +573,8 @@ func UploadImageWaitHandler(ctx context.Context, a APIClientInterface, projectId
574573}
575574
576575// DeleteImageWaitHandler will wait for image deletion
577- func DeleteImageWaitHandler (ctx context.Context , a APIClientInterface , projectId , imageId string ) * wait.AsyncActionHandler [iaasalpha .Image ] {
578- handler := wait .New (func () (waitFinished bool , response * iaasalpha .Image , err error ) {
576+ func DeleteImageWaitHandler (ctx context.Context , a APIClientInterface , projectId , imageId string ) * wait.AsyncActionHandler [iaas .Image ] {
577+ handler := wait .New (func () (waitFinished bool , response * iaas .Image , err error ) {
579578 image , err := a .GetImageExecute (ctx , projectId , imageId )
580579 if err == nil {
581580 if image != nil {
0 commit comments