Documentation
¶
Index ¶
- Constants
- func CloneInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
- func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
- func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[struct{}]
- func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
- func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
- type APIClientInstanceInterface
Constants ¶
View Source
const ( InstanceStateEmpty = "" InstanceStateProcessing = "PROCESSING" InstanceStateUnknown = "UNKNOWN" InstanceStateSuccess = "READY" InstanceStateFailed = "FAILED" )
Variables ¶
This section is empty.
Functions ¶
func CloneInstanceWaitHandler ¶
func CloneInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
CloneInstanceWaitHandler will wait for instance clone to be created
func CreateInstanceWaitHandler ¶
func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
CreateInstanceWaitHandler will wait for instance creation
func DeleteInstanceWaitHandler ¶
func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[struct{}]
DeleteInstanceWaitHandler will wait for instance deletion
func PartialUpdateInstanceWaitHandler ¶
func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
PartialUpdateInstanceWaitHandler will wait for instance update
func UpdateInstanceWaitHandler ¶
func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[mongodbflex.GetInstanceResponse]
UpdateInstanceWaitHandler will wait for instance update
Types ¶
type APIClientInstanceInterface ¶
type APIClientInstanceInterface interface {
GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*mongodbflex.GetInstanceResponse, error)
}
Interface needed for tests
Click to show internal directories.
Click to hide internal directories.