wait

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceStatusActive   = "active"
	InstanceStatusFailed   = "failed"
	InstanceStatusStopped  = "stopped"
	InstanceStatusCreating = "creating"
	InstanceStatusDeleting = "deleting"
	InstanceStatusUpdating = "updating"

	InstanceOperationStateInProgress = "in progress"
	InstanceOperationStateSucceeded  = "succeeded"
	InstanceOperationStateFailed     = "failed"
	InstanceOperationTypeCreate      = "create"
	InstanceOperationTypeUpdate      = "update"
	InstanceOperationTypeDelete      = "delete"

	// Deprecated: InstanceStateSuccess is deprecated and will be removed after 2nd October 2025. Use [InstanceOperationStateSucceeded] instead.
	InstanceStateSuccess = "succeeded"
	// Deprecated: InstanceStateFailed is deprecated and will be removed after 2nd October 2025. Use [InstanceOperationStateFailed] instead.
	InstanceStateFailed = "failed"
	// Deprecated: InstanceTypeCreate is deprecated and will be removed after 2nd October 2025. Use [InstanceOperationTypeCreate] instead.
	InstanceTypeCreate = "create"
	// Deprecated: InstanceTypeUpdate is deprecated and will be removed after 2nd October 2025. Use [InstanceOperationTypeUpdate] instead.
	InstanceTypeUpdate = "update"
	// Deprecated: InstanceTypeDelete is deprecated and will be removed after 2nd October 2025. Use [InstanceOperationTypeDelete] instead.
	InstanceTypeDelete = "delete"
)

Variables

This section is empty.

Functions

func CreateCredentialsWaitHandler

func CreateCredentialsWaitHandler(ctx context.Context, a APIClientCredentialsInterface, projectId, instanceId, credentialsId string) *wait.AsyncActionHandler[redis.CredentialsResponse]

CreateCredentialsWaitHandler will wait for credentials creation

func CreateInstanceWaitHandler

func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[redis.Instance]

CreateInstanceWaitHandler will wait for instance creation

func DeleteCredentialsWaitHandler

func DeleteCredentialsWaitHandler(ctx context.Context, a APIClientCredentialsInterface, projectId, instanceId, credentialsId string) *wait.AsyncActionHandler[struct{}]

DeleteCredentialsWaitHandler will wait for credentials deletion

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[redis.Instance]

PartialUpdateInstanceWaitHandler will wait for instance update

Types

type APIClientCredentialsInterface

type APIClientCredentialsInterface interface {
	GetCredentialsExecute(ctx context.Context, projectId, instanceId, credentialsId string) (*redis.CredentialsResponse, error)
}

Interface needed for tests

type APIClientInstanceInterface

type APIClientInstanceInterface interface {
	GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*redis.Instance, error)
}

Interface needed for tests

Jump to

Keyboard shortcuts

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