Skip to content

Commit

Permalink
Move selectors from internal/engine to pkg/engine
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov committed Oct 24, 2024
1 parent 828a944 commit 745c093
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/dev/app/rule_type/rttst.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/mindersec/minder/internal/engine/errors"
"github.com/mindersec/minder/internal/engine/eval/rego"
engif "github.com/mindersec/minder/internal/engine/interfaces"
"github.com/mindersec/minder/internal/engine/selectors"
entModels "github.com/mindersec/minder/internal/entities/models"
entProps "github.com/mindersec/minder/internal/entities/properties"
"github.com/mindersec/minder/internal/logger"
Expand All @@ -40,6 +39,7 @@ import (
"github.com/mindersec/minder/internal/providers/telemetry"
"github.com/mindersec/minder/internal/util/jsonyaml"
minderv1 "github.com/mindersec/minder/pkg/api/protobuf/go/minder/v1"
"github.com/mindersec/minder/pkg/engine/selectors"
"github.com/mindersec/minder/pkg/engine/v1/rtengine"
provifv1 "github.com/mindersec/minder/pkg/providers/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/controlplane/handlers_profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"github.com/mindersec/minder/internal/db"
"github.com/mindersec/minder/internal/db/embedded"
"github.com/mindersec/minder/internal/engine/engcontext"
"github.com/mindersec/minder/internal/engine/selectors"
stubeventer "github.com/mindersec/minder/internal/events/stubs"
"github.com/mindersec/minder/internal/profiles"
"github.com/mindersec/minder/internal/providers"
"github.com/mindersec/minder/internal/util"
minderv1 "github.com/mindersec/minder/pkg/api/protobuf/go/minder/v1"
"github.com/mindersec/minder/pkg/engine/selectors"
)

//nolint:gocyclo
Expand Down
2 changes: 1 addition & 1 deletion internal/engine/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
engif "github.com/mindersec/minder/internal/engine/interfaces"
eoptions "github.com/mindersec/minder/internal/engine/options"
"github.com/mindersec/minder/internal/engine/rtengine"
"github.com/mindersec/minder/internal/engine/selectors"
"github.com/mindersec/minder/internal/entities/properties/service"
"github.com/mindersec/minder/internal/history"
minderlogger "github.com/mindersec/minder/internal/logger"
Expand All @@ -31,6 +30,7 @@ import (
"github.com/mindersec/minder/internal/providers/manager"
provsel "github.com/mindersec/minder/internal/providers/selectors"
pb "github.com/mindersec/minder/pkg/api/protobuf/go/minder/v1"
"github.com/mindersec/minder/pkg/engine/selectors"
provinfv1 "github.com/mindersec/minder/pkg/providers/v1"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/engine/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import (
"github.com/mindersec/minder/internal/engine/actions/alert"
"github.com/mindersec/minder/internal/engine/actions/remediate"
"github.com/mindersec/minder/internal/engine/entities"
"github.com/mindersec/minder/internal/engine/selectors"
mock_selectors "github.com/mindersec/minder/internal/engine/selectors/mock"
"github.com/mindersec/minder/internal/entities/models"
mockprops "github.com/mindersec/minder/internal/entities/properties/service/mock"
"github.com/mindersec/minder/internal/flags"
Expand All @@ -46,6 +44,8 @@ import (
"github.com/mindersec/minder/internal/providers/ratecache"
"github.com/mindersec/minder/internal/providers/telemetry"
minderv1 "github.com/mindersec/minder/pkg/api/protobuf/go/minder/v1"
"github.com/mindersec/minder/pkg/engine/selectors"
mock_selectors "github.com/mindersec/minder/pkg/engine/selectors/mock"
provinfv1 "github.com/mindersec/minder/pkg/providers/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/profiles/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import (

"github.com/mindersec/minder/internal/db"
"github.com/mindersec/minder/internal/engine/entities"
"github.com/mindersec/minder/internal/engine/selectors"
"github.com/mindersec/minder/internal/events"
"github.com/mindersec/minder/internal/logger"
"github.com/mindersec/minder/internal/marketplaces/namespaces"
"github.com/mindersec/minder/internal/reconcilers"
"github.com/mindersec/minder/internal/util"
"github.com/mindersec/minder/internal/util/ptr"
minderv1 "github.com/mindersec/minder/pkg/api/protobuf/go/minder/v1"
"github.com/mindersec/minder/pkg/engine/selectors"
)

//go:generate go run go.uber.org/mock/mockgen -package mock_$GOPACKAGE -destination=./mock/$GOFILE -source=./$GOFILE
Expand Down
2 changes: 1 addition & 1 deletion internal/profiles/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"k8s.io/apimachinery/pkg/util/sets"

"github.com/mindersec/minder/internal/db"
"github.com/mindersec/minder/internal/engine/selectors"
"github.com/mindersec/minder/internal/ruletypes"
"github.com/mindersec/minder/internal/util"
minderv1 "github.com/mindersec/minder/pkg/api/protobuf/go/minder/v1"
"github.com/mindersec/minder/pkg/engine/selectors"
)

// Validator encapsulates the logic for validating profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/mindersec/minder/internal/email/awsses"
"github.com/mindersec/minder/internal/email/noop"
"github.com/mindersec/minder/internal/engine"
"github.com/mindersec/minder/internal/engine/selectors"
"github.com/mindersec/minder/internal/entities/handlers"
propService "github.com/mindersec/minder/internal/entities/properties/service"
"github.com/mindersec/minder/internal/events"
Expand Down Expand Up @@ -52,6 +51,7 @@ import (
"github.com/mindersec/minder/internal/repositories"
"github.com/mindersec/minder/internal/roles"
"github.com/mindersec/minder/internal/ruletypes"
"github.com/mindersec/minder/pkg/engine/selectors"
)

// AllInOneServerService is a helper function that starts the gRPC and HTTP servers,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.

0 comments on commit 745c093

Please sign in to comment.