debian-forge-composer/internal/client
Brian C. Lane 7a4bb863dd Update deprecated io/ioutil functions
ioutil has been deprecated since go 1.16, this fixes all of the
deprecated functions we are using:

ioutil.ReadFile -> os.ReadFile
ioutil.ReadAll -> io.ReadAll
ioutil.WriteFile -> os.WriteFile
ioutil.TempFile -> os.CreateTemp
ioutil.TempDir -> os.MkdirTemp

All of the above are a simple name change, the function arguments and
results are exactly the same as before.

ioutil.ReadDir -> os.ReadDir

now returns a os.DirEntry but the IsDir and Name functions work the
same. The difference is that the FileInfo must be retrieved with the
Info() function which can also return an error.

These were identified by running:
golangci-lint run --build-tags=integration ./...
2023-03-07 09:22:23 -08:00
..
blueprints.go client: Add GetBlueprintChangeV1 2022-11-24 11:19:14 +01:00
blueprints_test.go client: Add GetBlueprintChangeV1 2022-11-24 11:19:14 +01:00
client.go Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
client_test.go tests: replace cmd.Diff() with require functions 2020-04-20 14:00:49 +02:00
compose.go client: Add Cancel function and tests 2022-02-18 09:31:07 +01:00
compose_test.go Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
integration_test.go go.mod: update to Go 1.18 2023-01-09 14:03:18 +01:00
modules.go client: Add /modules/ support 2020-03-25 10:01:14 +01:00
modules_test.go client: Handle the differences between unit tests and integration tests 2020-03-27 19:07:33 +01:00
projects.go client: Add /projects/ support 2020-03-25 10:01:14 +01:00
projects_test.go client: Handle the differences between unit tests and integration tests 2020-03-27 19:07:33 +01:00
source.go weldr: Add support for the v1 API to /projects/source/delete 2020-06-03 21:24:47 +02:00
source_test.go Rename gpgkey_urls to gpgkeys 2023-02-01 10:27:58 +01:00
unit_test.go tests: use TestMain() instead of Init() to compile mock-dnf-json 2022-06-01 11:36:52 +01:00
utils.go Move isStringInSlice to common.IsStringInSlice 2021-07-12 08:58:42 +02:00
weldr.go Move the API struct definitions into internal/weldr 2020-03-23 21:08:01 +01:00