Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureClient ¶
func ConfigureClient(ctx context.Context, providerData *core.ProviderData, diags *diag.Diagnostics) *objectstorage.APIClient
func EnableProject ¶ added in v0.114.0
func EnableProject(ctx context.Context, projectId, region string, client objectstorage.DefaultAPI) error
EnableProject enables object storage for the specified project. If the project is already enabled, nothing happens. Two resources created in the same apply call this concurrently and the API rejects the losing call with 409 project.create_conflict; retrying is safe, since enabling an already enabled project succeeds.
Types ¶
type RetryTransport ¶ added in v0.116.0
type RetryTransport struct {
Base http.RoundTripper
MaxRetries int
BaseBackoff time.Duration
MaxJitter time.Duration
}
RetryTransport wraps an underlying RoundTripper to retry on HTTP 429 rate limit errors with jitter.
Click to show internal directories.
Click to hide internal directories.