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 ( InstanceStateSuccess = "succeeded" InstanceStateFailed = "failed" InstanceTypeCreate = "create" InstanceTypeUpdate = "update" 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.