sdk

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoRetryable added in v0.0.6

func DoRetryable(ctx context.Context, c *dv.APIClient, environmentID string, f func() (interface{}, *http.Response, error)) (interface{}, error)

DoRetryable wraps the given function with a retry loop This is used to catch and handle common Terraform-level functional errors such as race conditions.

func DoRetryableWithCustomTimeout added in v0.3.0

func DoRetryableWithCustomTimeout(ctx context.Context, c *dv.APIClient, environmentID string, f func() (interface{}, *http.Response, error), timeout time.Duration) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL