Skip to content

Commit dc58f94

Browse files
Martin Guiberteliecharra
authored andcommitted
chore: extract enumeration to it's own submodule
1 parent 516609f commit dc58f94

File tree

1,266 files changed

+5967
-4923
lines changed

Some content is hidden

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

1,266 files changed

+5967
-4923
lines changed
File renamed without changes.

pkg/alerter/alerter.go renamed to enumeration/alerter/alerter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package alerter
33
import (
44
"fmt"
55

6-
"github.com/snyk/driftctl/pkg/resource"
6+
"github.com/snyk/driftctl/enumeration/resource"
77
)
88

99
type AlerterInterface interface {

pkg/alerter/alerter_test.go renamed to enumeration/alerter/alerter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/snyk/driftctl/pkg/resource"
7+
"github.com/snyk/driftctl/enumeration/resource"
88
)
99

1010
func TestAlerter_Alert(t *testing.T) {

enumeration/filter.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package enumeration
2+
3+
import "github.com/snyk/driftctl/enumeration/resource"
4+
5+
type Filter interface {
6+
IsTypeIgnored(ty resource.ResourceType) bool
7+
IsResourceIgnored(res *resource.Resource) bool
8+
IsFieldIgnored(res *resource.Resource, path []string) bool
9+
}

enumeration/mock_Filter.go

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

enumeration/progress.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package enumeration
2+
3+
type ProgressCounter interface {
4+
Inc()
5+
}

pkg/remote/alerts/alerts.go renamed to enumeration/remote/alerts/alerts.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package alerts
33
import (
44
"fmt"
55

6+
"github.com/snyk/driftctl/enumeration/alerter"
7+
"github.com/snyk/driftctl/enumeration/remote/common"
8+
remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
9+
610
"github.com/sirupsen/logrus"
7-
"github.com/snyk/driftctl/pkg/alerter"
8-
"github.com/snyk/driftctl/pkg/remote/common"
9-
remoteerror "github.com/snyk/driftctl/pkg/remote/error"
1011
)
1112

1213
type ScanningPhase int

pkg/remote/aws/api_gateway_account_enumerator.go renamed to enumeration/remote/aws/api_gateway_account_enumerator.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package aws
22

33
import (
4-
"github.com/snyk/driftctl/pkg/remote/aws/repository"
5-
remoteerror "github.com/snyk/driftctl/pkg/remote/error"
6-
"github.com/snyk/driftctl/pkg/resource"
7-
"github.com/snyk/driftctl/pkg/resource/aws"
4+
"github.com/snyk/driftctl/enumeration/remote/aws/repository"
5+
remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
6+
"github.com/snyk/driftctl/enumeration/resource"
7+
"github.com/snyk/driftctl/enumeration/resource/aws"
88
)
99

1010
type ApiGatewayAccountEnumerator struct {

0 commit comments

Comments
 (0)