wait

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

Index

Constants

View Source
const (
	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	InstanceStateEmpty = ""
	// Deprecated: InstanceStateProcessing is deprecated and will be removed after 14th November 2025. Use [mongodbflex.INSTANCESTATUS_PROCESSING] instead.
	InstanceStateProcessing = "PROCESSING"
	// Deprecated: InstanceStateUnknown is deprecated and will be removed after 14th November 2025. Use [mongodbflex.INSTANCESTATUS_UNKNOWN] instead.
	InstanceStateUnknown = "UNKNOWN"
	// Deprecated: InstanceStateSuccess is deprecated and will be removed after 14th November 2025. Use [mongodbflex.INSTANCESTATUS_READY] instead.
	InstanceStateSuccess = "READY"
	// Deprecated: InstanceStateFailed is deprecated and will be removed after 14th November 2025. Use [mongodbflex.INSTANCESTATUS_FAILED] instead.
	InstanceStateFailed = "FAILED"

	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	RestoreJobProcessing = "IN_PROGRESS"
	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	RestoreJobFinished = "FINISHED"
	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	RestoreJobBroken = "BROKEN"
	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	RestoreJobKilled = "KILLED"
)

Variables

This section is empty.

Functions

func CloneInstanceWaitHandler

func CloneInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse]

CloneInstanceWaitHandler will wait for instance clone to be created Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

func CreateInstanceWaitHandler

func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse]

CreateInstanceWaitHandler will wait for instance creation Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

func DeleteInstanceWaitHandler

func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[struct{}]

DeleteInstanceWaitHandler will wait for instance deletion Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

func PartialUpdateInstanceWaitHandler

func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse]

PartialUpdateInstanceWaitHandler will wait for instance update Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

func RestoreInstanceWaitHandler deprecated added in v0.13.0

func RestoreInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, backupId, region string) *wait.AsyncActionHandler[mongodbflex.ListRestoreJobsResponse]

Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

func UpdateInstanceWaitHandler

func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId, region string) *wait.AsyncActionHandler[mongodbflex.InstanceResponse]

UpdateInstanceWaitHandler will wait for instance update Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

Types

type APIClientInstanceInterface

type APIClientInstanceInterface interface {
	GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.InstanceResponse, error)
	ListRestoreJobsExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.ListRestoreJobsResponse, error)
}

Interface needed for tests Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL