feat: add imds client #8928
Annotations
8 errors and 2 warnings
cns/imds/client_test.go#L61
Error return value of `w.Write` is not checked (errcheck)
|
cns/imds/client.go#L106
httpNoBody: http.NoBody should be preferred to the nil request body (gocritic)
|
cns/imds/client.go#L34
importShadow: shadow of imported package 'url' (gocritic)
|
cns/imds/client.go#L101
importShadow: shadow of imported package 'url' (gocritic)
|
cns/imds/client.go#L114
response body must be closed (bodyclose)
|
cns/imds/client.go#L120
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"received unexpected status code %d from IMDS\", resp.StatusCode)" (goerr113)
|
cns/imds/client_test.go#L27
shadow: declaration of "err" shadows declaration at line 19 (govet)
|
|
cns/imds/client.go#L41
unexported-return: exported func RetryAttempts returns unexported type imds.clientOption, which can be annoying to use (revive)
|
|
The logs for this run have expired and are no longer available.
Loading