wait

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 6 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: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	InstanceStateProgressing = "Progressing"
	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	InstanceStateSuccess = "Ready"
	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	InstanceStateFailed = "Failure"
	// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
	InstanceStateDeleted = "Deleted"
)

Variables

This section is empty.

Functions

func CreateInstanceWaitHandler

func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, region, instanceId string) *wait.AsyncActionHandler[postgresflex.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, region, instanceId 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 DeleteUserWaitHandler

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

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

func ForceDeleteInstanceWaitHandler added in v0.12.0

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

ForceDeleteInstanceWaitHandler 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, region, instanceId string) *wait.AsyncActionHandler[postgresflex.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

Types

type APIClientInstanceInterface

type APIClientInstanceInterface interface {
	GetInstanceExecute(ctx context.Context, projectId, region, instanceId string) (*postgresflex.InstanceResponse, error)
	ListUsersExecute(ctx context.Context, projectId, region, instanceId string) (*postgresflex.ListUsersResponse, error)
}

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

type APIClientUserInterface

type APIClientUserInterface interface {
	GetUserExecute(ctx context.Context, projectId, region, instanceId, userId string) (*postgresflex.GetUserResponse, 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