wait

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Deprecated: StateHealthy is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_HEALTHY] instead.
	StateHealthy = "STATE_HEALTHY"
	// Deprecated: StateHibernated is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_HIBERNATED] instead.
	StateHibernated = "STATE_HIBERNATED"
	StateFailed     = "STATE_FAILED"
	// Deprecated: StateDeleting is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_DELETING] instead.
	StateDeleting = "STATE_DELETING"
	// Deprecated: StateCreated is deprecated and will be removed after 14th November 2025.
	StateCreated = "STATE_CREATED"
	// Deprecated: StateUnhealthy is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_UNHEALTHY] instead.
	StateUnhealthy = "STATE_UNHEALTHY"
	// Deprecated: StateReconciling is deprecated and will be removed after 14th November 2025. Use [ske.CLUSTERSTATUSSTATE_RECONCILING] instead.
	StateReconciling = "STATE_RECONCILING"
	// Deprecated: CredentialsRotationStatePreparing is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_PREPARING] instead.
	CredentialsRotationStatePreparing = "PREPARING"
	// Deprecated: CredentialsRotationStatePrepared is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_PREPARED] instead.
	CredentialsRotationStatePrepared = "PREPARED"
	// Deprecated: CredentialsRotationStateCompleting is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_COMPLETING] instead.
	CredentialsRotationStateCompleting = "COMPLETING"
	// Deprecated: CredentialsRotationStateCompleted is deprecated and will be removed after 14th November 2025. Use [ske.CREDENTIALSROTATIONSTATEPHASE_COMPLETED] instead.
	CredentialsRotationStateCompleted = "COMPLETED"
	// Deprecated: InvalidArgusInstanceErrorCode is deprecated and will be removed after 14th November 2025. Use [ske.RUNTIMEERRORCODE_OBSERVABILITY_INSTANCE_NOT_FOUND] instead.
	InvalidArgusInstanceErrorCode = "SKE_ARGUS_INSTANCE_NOT_FOUND"
)

Variables

This section is empty.

Functions

func CompleteCredentialsRotationWaitHandler added in v0.11.0

func CompleteCredentialsRotationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

CompleteCredentialsRotationWaitHandler will wait for credentials rotation

func CreateOrUpdateClusterWaitHandler

func CreateOrUpdateClusterWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, name string) *wait.AsyncActionHandler[ske.Cluster]

CreateOrUpdateClusterWaitHandler will wait for cluster creation or update

func DeleteClusterWaitHandler

func DeleteClusterWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, name string) *wait.AsyncActionHandler[ske.ListClustersResponse]

DeleteClusterWaitHandler will wait for cluster deletion

func RotateCredentialsWaitHandler

func RotateCredentialsWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

RotateCredentialsWaitHandler will wait for credentials rotation

func StartCredentialsRotationWaitHandler added in v0.11.0

func StartCredentialsRotationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

StartCredentialsRotationWaitHandler will wait for credentials rotation

func TriggerClusterHibernationWaitHandler added in v1.3.0

func TriggerClusterHibernationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

func TriggerClusterMaintenanceWaitHandler added in v1.3.0

func TriggerClusterMaintenanceWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

func TriggerClusterReconciliationWaitHandler added in v1.3.0

func TriggerClusterReconciliationWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

func TriggerClusterWakeupWaitHandler added in v1.3.0

func TriggerClusterWakeupWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, region, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

Types

type APIClientClusterInterface

type APIClientClusterInterface interface {
	GetClusterExecute(ctx context.Context, projectId, region, name string) (*ske.Cluster, error)
	ListClustersExecute(ctx context.Context, projectId, region string) (*ske.ListClustersResponse, error)
}

Jump to

Keyboard shortcuts

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