Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Common retry durations DURATION_1M = 1 * time.Minute DURATION_5M = 5 * time.Minute DURATION_10M = 10 * time.Minute DURATION_20M = 20 * time.Minute DURATION_30M = 30 * time.Minute DURATION_40M = 40 * time.Minute DURATION_1H = 1 * time.Hour DURATION_2H = 2 * time.Hour // Common client errors ERR_CLIENT_TIMEOUT = "Client.Timeout exceeded" ERR_NO_SUCH_HOST = "dial tcp: lookup" // Acceptance tests constants ACC_TEST_PROJECT_ID = "2d07c991-6cd4-475e-b00b-8acc2494f73f" )
Variables ¶
This section is empty.
Functions ¶
func IsNonRetryable ¶
IsNonRetryable is a helper function to determine if an error returned from the client is expected (the operation can try to run again) or an unexpected error that should end further retries
func ShouldAccTestRun ¶ added in v0.2.0
ShouldAccTestRun returns true of the provided flag is true or if an env variable ACC_TEST_CI has any value
Types ¶
Click to show internal directories.
Click to hide internal directories.