Documentation
¶
Index ¶
- Constants
- func ArrayContains(slice []int32, searchElement int32) bool
- func FilterSlice(slice []string, f func(string) bool) []string
- func GetIntEnvironmentVariable(varName string, defaultValue int) (int, error)
- func Hash(o interface{}) (string, error)
- func Min(a, b int32) int32
- type Credentials
- type RestClient
- func (rc RestClient) GetArrayData(path, key string, filter func(string) bool) ([]string, error)
- func (rc RestClient) SendBasicRequest(method string, path string, body io.Reader, useHeaders bool) (statusCode int, responseBody []byte, err error)
- func (rc RestClient) SendRequest(method string, path string, body io.Reader) (int, []byte, error)
- func (rc RestClient) SendRequestWithStatusCodeCheck(method string, path string, body io.Reader) ([]byte, error)
- type StatusUpdater
Constants ¶
View Source
const ( SwitchoverAnnotationKey = "switchoverRetry" RetryFailedComment = "retry failed" )
Variables ¶
This section is empty.
Functions ¶
func ArrayContains ¶
Types ¶
type Credentials ¶
func NewCredentials ¶
func NewCredentials(username, password string) Credentials
type RestClient ¶
type RestClient struct {
// contains filtered or unexported fields
}
func NewRestClient ¶
func NewRestClient(url string, httpClient http.Client, credentials Credentials) *RestClient
func (RestClient) GetArrayData ¶
func (RestClient) SendBasicRequest ¶
func (RestClient) SendRequest ¶
func (RestClient) SendRequestWithStatusCodeCheck ¶
type StatusUpdater ¶
type StatusUpdater struct {
// contains filtered or unexported fields
}
func NewStatusUpdater ¶
func NewStatusUpdater(client client.Client, cr *opensearchservice.OpenSearchService) StatusUpdater
func (StatusUpdater) UpdateStatusWithRetry ¶
func (su StatusUpdater) UpdateStatusWithRetry(statusUpdateFunc func(*opensearchservice.OpenSearchService)) error
Click to show internal directories.
Click to hide internal directories.