wait

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	StateHealthy                       = "STATE_HEALTHY"
	StateHibernated                    = "STATE_HIBERNATED"
	StateFailed                        = "STATE_FAILED"
	StateDeleting                      = "STATE_DELETING"
	StateCreated                       = "STATE_CREATED"
	StateUnhealthy                     = "STATE_UNHEALTHY"
	StateReconciling                   = "STATE_RECONCILING"
	CredentialsRotationStatePreparing  = "PREPARING"
	CredentialsRotationStatePrepared   = "PREPARED"
	CredentialsRotationStateCompleting = "COMPLETING"
	CredentialsRotationStateCompleted  = "COMPLETED"
	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, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

CompleteCredentialsRotationWaitHandler will wait for credentials rotation

func CreateOrUpdateClusterWaitHandler

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

CreateOrUpdateClusterWaitHandler will wait for cluster creation or update

func DeleteClusterWaitHandler

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

DeleteClusterWaitHandler will wait for cluster deletion

func DisableServiceWaitHandler

func DisableServiceWaitHandler(ctx context.Context, a APIClientProjectInterface, projectId string) *wait.AsyncActionHandler[struct{}]

DisableServiceWaitHandler will wait for service disablement

func EnableServiceWaitHandler

func EnableServiceWaitHandler(ctx context.Context, a APIClientProjectInterface, projectId string) *wait.AsyncActionHandler[ske.ProjectResponse]

EnableServiceWaitHandler will wait for service enablement

func RotateCredentialsWaitHandler

func RotateCredentialsWaitHandler(ctx context.Context, a APIClientClusterInterface, projectId, 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, clusterName string) *wait.AsyncActionHandler[ske.Cluster]

StartCredentialsRotationWaitHandler will wait for credentials rotation

Types

type APIClientClusterInterface

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

type APIClientProjectInterface

type APIClientProjectInterface interface {
	GetServiceStatusExecute(ctx context.Context, projectId string) (*ske.ProjectResponse, error)
}

Jump to

Keyboard shortcuts

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