Releases: SchwarzIT/community-stackit-go-client
Releases · SchwarzIT/community-stackit-go-client
v0.2.1
Enhancements
The client now has an integrated retry functionality
Example:
If c
is the initialised client, we can now run:
r := retry.New()
err := c.WithRetry(r).ObjectStorage.Buckets.Create(context.TODO(), projectID, bucketName)
if err != nil {
panic(err)
}
The retry package supports the following functionalities:
- Maximum retries
- Timeout
- Throttle (duration to wait between retries)
- Is Retryable (determine if an error returned allows retry or stops any further requests)
- Until (wait for the response to have a certain value / state)
Change from v0.2.0:
re-initialisation of the client now happens during WithRetry
v0.2.0
Enhancements
The client now has an integrated retry functionality
Example:
If c
is the initialised client, we can now run:
r := retry.New()
err := c.WithRetry(r).ObjectStorage.Buckets.Create(context.TODO(), projectID, bucketName)
if err != nil {
panic(err)
}
The retry package supports the following functionalities:
- Maximum retries
- Timeout
- Throttle (duration to wait between retries)
- Is Retryable (determine if an error returned allows retry or stops any further requests)
- Until (wait for the response to have a certain value / state)