Skip to content

Commit 075cda1

Browse files
authored
Merge pull request #75 from OpsHelmInc/update-main
update dependencies
2 parents ca6ad1a + 7dc89e9 commit 075cda1

File tree

260 files changed

+5157
-421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+5157
-421
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ jobs:
4848
- name: golangci-lint
4949
uses: golangci/golangci-lint-action@v6
5050
with:
51-
version: v1.57
51+
version: v1.64
5252
args: --timeout=5m

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ linters-settings:
7272
disabled: true
7373
- name: import-alias-naming
7474
disabled: true
75+
- name: use-errors-new
76+
disabled: true
7577

7678
linters:
7779
enable:

client/client.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"strings"
88
"time"
99

10-
"github.com/OpsHelmInc/cloudquery/client/services"
1110
"github.com/aws/aws-sdk-go-v2/aws"
1211
"github.com/aws/aws-sdk-go-v2/aws/arn"
1312
"github.com/aws/aws-sdk-go-v2/aws/retry"
@@ -21,6 +20,8 @@ import (
2120
"github.com/cloudquery/plugin-sdk/schema"
2221
"github.com/cloudquery/plugin-sdk/specs"
2322
"github.com/rs/zerolog"
23+
24+
"github.com/OpsHelmInc/cloudquery/client/services"
2425
)
2526

2627
type Client struct {
@@ -60,10 +61,12 @@ const (
6061
cloudfrontScopeRegion = defaultRegion
6162
)
6263

63-
var errInvalidRegion = errors.New("region wildcard \"*\" is only supported as first argument")
64-
var errUnknownRegion = func(region string) error {
65-
return fmt.Errorf("unknown region: %q", region)
66-
}
64+
var (
65+
errInvalidRegion = errors.New("region wildcard \"*\" is only supported as first argument")
66+
errUnknownRegion = func(region string) error {
67+
return fmt.Errorf("unknown region: %q", region)
68+
}
69+
)
6770
var errRetrievingCredentials = errors.New("error retrieving AWS credentials (see logs for details). Please verify your credentials and try again")
6871

6972
func (s *ServicesManager) ServicesByPartitionAccountAndRegion(partition, accountId, region string) *Services {
@@ -118,6 +121,7 @@ func (s ServicesPartitionAccountRegionMap) Accounts() []string {
118121
}
119122
return accounts
120123
}
124+
121125
func (c *Client) Logger() *zerolog.Logger {
122126
return &c.logger
123127
}
@@ -200,6 +204,7 @@ func verifyRegions(regions []string) error {
200204
}
201205
return nil
202206
}
207+
203208
func isAllRegions(regions []string) bool {
204209
// if regions array is not valid return false
205210
err := verifyRegions(regions)

client/mocks/accessanalyzer.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/mocks/account.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/mocks/apigateway.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/mocks/applicationautoscaling.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/mocks/appstream.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/mocks/appsync.go

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/mocks/backup.go

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)