Documentation
¶
Index ¶
- Constants
- func CreateCredentialsWaitHandler(ctx context.Context, a APIClientCredentialsInterface, ...) *wait.AsyncActionHandler[opensearch.CredentialsResponse]
- func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[opensearch.Instance]
- func DeleteCredentialsWaitHandler(ctx context.Context, a APIClientCredentialsInterface, ...) *wait.AsyncActionHandler[struct{}]
- func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[struct{}]
- func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[opensearch.Instance]
- type APIClientCredentialsInterface
- type APIClientInstanceInterface
Constants ¶
View Source
const ( // Deprecated: InstanceStatusActive is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCESTATUS_ACTIVE] instead. InstanceStatusActive = "active" // Deprecated: InstanceStatusFailed is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCESTATUS_FAILED] instead. InstanceStatusFailed = "failed" // Deprecated: InstanceStatusStopped is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCESTATUS_STOPPED] instead. InstanceStatusStopped = "stopped" // Deprecated: InstanceStatusCreating is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCESTATUS_CREATING] instead. InstanceStatusCreating = "creating" // Deprecated: InstanceStatusDeleting is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCESTATUS_DELETING] instead. InstanceStatusDeleting = "deleting" // Deprecated: InstanceStatusUpdating is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCESTATUS_UPDATING] instead. InstanceStatusUpdating = "updating" // Deprecated: InstanceOperationStateInProgress is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCELASTOPERATIONSTATE_IN_PROGRESS] instead. InstanceOperationStateInProgress = "in progress" // Deprecated: InstanceOperationStateSucceeded is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCELASTOPERATIONSTATE_SUCCEEDED] instead. InstanceOperationStateSucceeded = "succeeded" // Deprecated: InstanceOperationStateFailed is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCELASTOPERATIONSTATE_FAILED] instead. InstanceOperationStateFailed = "failed" // Deprecated: InstanceOperationTypeCreate is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCELASTOPERATIONTYPE_CREATE] instead. InstanceOperationTypeCreate = "create" // Deprecated: InstanceOperationTypeUpdate is deprecated and will be removed after 14th November 2025. Use [opensearch.INSTANCELASTOPERATIONTYPE_UPDATE] instead. InstanceOperationTypeUpdate = "update" // Deprecated: InstanceOperationTypeDelete is deprecated and will be removed after 12th November 2025. Use [opensearch.INSTANCELASTOPERATIONTYPE_DELETE] instead. InstanceOperationTypeDelete = "delete" // Deprecated: InstanceStateSuccess is deprecated and will be removed after 2nd October 2025. Use [opensearch.INSTANCELASTOPERATIONSTATE_SUCCEEDED] instead. InstanceStateSuccess = "succeeded" // Deprecated: InstanceStateFailed is deprecated and will be removed after 2nd October 2025. Use [opensearch.INSTANCELASTOPERATIONSTATE_FAILED] instead. InstanceStateFailed = "failed" // Deprecated: InstanceTypeCreate is deprecated and will be removed after 2nd October 2025. Use [opensearch.INSTANCELASTOPERATIONTYPE_CREATE] instead. InstanceTypeCreate = "create" // Deprecated: InstanceTypeUpdate is deprecated and will be removed after 2nd October 2025. Use [opensearch.INSTANCELASTOPERATIONTYPE_UPDATE] instead. InstanceTypeUpdate = "update" // Deprecated: InstanceTypeDelete is deprecated and will be removed after 2nd October 2025. Use [opensearch.INSTANCELASTOPERATIONTYPE_DELETE] instead. InstanceTypeDelete = "delete" )
Variables ¶
This section is empty.
Functions ¶
func CreateCredentialsWaitHandler ¶
func CreateCredentialsWaitHandler(ctx context.Context, a APIClientCredentialsInterface, projectId, instanceId, credentialsId string) *wait.AsyncActionHandler[opensearch.CredentialsResponse]
CreateCredentialsWaitHandler will wait for credentials creation
func CreateInstanceWaitHandler ¶
func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, instanceId string) *wait.AsyncActionHandler[opensearch.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[opensearch.Instance]
PartialUpdateInstanceWaitHandler will wait for instance update
Types ¶
type APIClientCredentialsInterface ¶
type APIClientCredentialsInterface interface {
GetCredentialsExecute(ctx context.Context, projectId, instanceId, credentialsId string) (*opensearch.CredentialsResponse, error)
}
Interface needed for tests
type APIClientInstanceInterface ¶
type APIClientInstanceInterface interface {
GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*opensearch.Instance, error)
}
Interface needed for tests
Click to show internal directories.
Click to hide internal directories.