Documentation ¶
Index ¶
- Variables
- func GetManagedClusterKubeconfigSecretName(clusterID string) string
- func GetManagedClusterLabels(managedClusterID string) map[string]string
- func Retry(backoff wait.Backoff, fn wait.ConditionFunc) error
- func SendRequest(action, reqURL, host string, headers map[string]string, ...) (*http.Response, string, error)
- func WaitForSendRequest(action, reqURL, host string, headers, parameterMap map[string]string, ...) (latestResponse *http.Response, latestResponseBody string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRetry = wait.Backoff{ Steps: 12, Duration: 5 * time.Second, Factor: 1.0, Jitter: 0.1, }
DefaultRetry is the default backoff for e2e tests.
Functions ¶
func GetManagedClusterKubeconfigSecretName ¶
GetManagedClusterKubeconfigSecretName returns the secret for a managed cluster
func GetManagedClusterLabels ¶
GetManagedClusterLabels return labels for a managed cluster
func Retry ¶
func Retry(backoff wait.Backoff, fn wait.ConditionFunc) error
Retry executes the provided function repeatedly, retrying until the function returns done = true, errors, or exceeds the given timeout.
func SendRequest ¶
func SendRequest(action, reqURL, host string, headers map[string]string, parameterMap map[string]string, payload string, reqUserName string, reqPassword string, caData []byte) (*http.Response, string, error)
SendRequest sends http request
func WaitForSendRequest ¶
func WaitForSendRequest(action, reqURL, host string, headers, parameterMap map[string]string, payload, reqUserName, reqPassword string, caData []byte, backoff wait.Backoff) (latestResponse *http.Response, latestResponseBody string, err error)
WaitForSendRequest waits for the given request to return results
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.