Documentation
¶
Index ¶
- Constants
- func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[sqlserverflex.GetInstanceResponse]
- func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[struct{}]
- func DeleteUserWaitHandler(ctx context.Context, a APIClientUserInterface, ...) *wait.AsyncActionHandler[struct{}]
- func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[sqlserverflex.GetInstanceResponse]
- func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[sqlserverflex.GetInstanceResponse]
- type APIClientInstanceInterface
- type APIClientUserInterface
Constants ¶
View Source
const ( InstanceStateEmpty = "" InstanceStateSuccess = "READY" InstanceStatePending = "PENDING" InstanceStateProcessing = "PROGRESSING" InstanceStateFailed = "FAILURE" InstanceStateUnknown = "UNKNOWN" InstanceStateTerminating = "TERMINATING" )
READY, PENDING, PROGRESSING, FAILURE, UNKNOWN,
Variables ¶
This section is empty.
Functions ¶
func CreateInstanceWaitHandler ¶
func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[sqlserverflex.GetInstanceResponse]
CreateInstanceWaitHandler will wait for instance creation
func DeleteInstanceWaitHandler ¶
func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[struct{}]
DeleteInstanceWaitHandler will wait for instance deletion
func DeleteUserWaitHandler ¶
func DeleteUserWaitHandler( ctx context.Context, a APIClientUserInterface, projectId, instanceId, region string, userId int64, ) *wait.AsyncActionHandler[struct{}]
DeleteUserWaitHandler will wait for instance deletion
func PartialUpdateInstanceWaitHandler ¶
func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[sqlserverflex.GetInstanceResponse]
PartialUpdateInstanceWaitHandler will wait for instance update
func UpdateInstanceWaitHandler ¶
func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[sqlserverflex.GetInstanceResponse]
UpdateInstanceWaitHandler will wait for instance update
Types ¶
type APIClientInstanceInterface ¶
type APIClientInstanceInterface interface {
GetInstanceRequestExecute(ctx context.Context, projectId, region, instanceId string) (*sqlserverflex.GetInstanceResponse, error)
}
APIClientInstanceInterface Interface needed for tests
Click to show internal directories.
Click to hide internal directories.