Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRecordedScwClient ¶
CreateRecordedScwClient creates a new scw.Client that records all HTTP requests in a cassette. This cassette is then replayed whenever tests are executed again. This means that once the requests are recorded in the cassette, no more real HTTP request must be made to run the tests.
It is important to call add a `defer recorder.Stop()` so the given cassette files are correctly closed and saved after the requests.
To update the cassette files, add `SDK_UPDATE_CASSETTES=true` to the environment variables. When updating cassettes, make sure your Scaleway credentials are set in your config or in the variables `SCW_ACCESS_KEY` and `SCW_SECRET_KEY`.
func IsUpdatingCassette ¶
func IsUpdatingCassette() bool
IsUpdatingCassette returns true if we are updating cassettes.
Types ¶
This section is empty.