Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
refactor(orchestrator): add watcher and processor folders
Browse files Browse the repository at this point in the history
  • Loading branch information
paralta committed Feb 6, 2024
1 parent 6725888 commit c1e487a
Show file tree
Hide file tree
Showing 43 changed files with 64 additions and 64 deletions.
14 changes: 7 additions & 7 deletions orchestrator/pkg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ import (
"github.com/spf13/viper"

"github.com/openclarity/vmclarity/api/types"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanestimationwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanprocessor"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/discovery"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanconfigwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanestimationwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanwatcher"
discovery "github.com/openclarity/vmclarity/orchestrator/pkg/discoverer"
assetscanprocessor "github.com/openclarity/vmclarity/orchestrator/pkg/processor/assetscan"
assetscanwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/assetscan"
assetscanestimationwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/assetscanestimation"
scanwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scan"
scanconfigwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scanconfig"
scanestimationwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scanestimation"
)

const (
Expand Down
20 changes: 10 additions & 10 deletions orchestrator/pkg/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import (

apitypes "github.com/openclarity/vmclarity/api/types"

"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanestimationwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanprocessor"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/discovery"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanconfigwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanestimationwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/discoverer"
assetscanprocessor "github.com/openclarity/vmclarity/orchestrator/pkg/processor/assetscan"
assetscanwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/assetscan"
assetscanestimationwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/assetscanestimation"
scanwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scan"
scanconfigwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scanconfig"
scanestimationwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scanestimation"
)

func TestUnmarshalCloudProvider(t *testing.T) {
Expand Down Expand Up @@ -147,7 +147,7 @@ func TestConfig(t *testing.T) {
APIServerAddress: "http://example.com:8484/api",
HealthCheckAddress: "example.com:18888",
ControllerStartupDelay: 15 * time.Second,
DiscoveryConfig: discovery.Config{
DiscoveryConfig: discoverer.Config{
DiscoveryInterval: time.Minute,
},
ScanConfigWatcherConfig: scanconfigwatcher.Config{
Expand Down Expand Up @@ -200,8 +200,8 @@ func TestConfig(t *testing.T) {
APIServerAddress: "",
HealthCheckAddress: DefaultHealthCheckAddress,
ControllerStartupDelay: DefaultControllerStartupDelay,
DiscoveryConfig: discovery.Config{
DiscoveryInterval: discovery.DefaultInterval,
DiscoveryConfig: discoverer.Config{
DiscoveryInterval: discoverer.DefaultInterval,
},
ScanConfigWatcherConfig: scanconfigwatcher.Config{
PollPeriod: scanconfigwatcher.DefaultPollInterval,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package discovery
package discoverer

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package discovery
package discoverer

import (
"context"
Expand Down
14 changes: 7 additions & 7 deletions orchestrator/pkg/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ import (

"github.com/openclarity/vmclarity/api/client"
"github.com/openclarity/vmclarity/api/types"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanestimationwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanprocessor"
"github.com/openclarity/vmclarity/orchestrator/pkg/assetscanwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/discovery"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanconfigwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanestimationwatcher"
"github.com/openclarity/vmclarity/orchestrator/pkg/scanwatcher"
discovery "github.com/openclarity/vmclarity/orchestrator/pkg/discoverer"
assetscanprocessor "github.com/openclarity/vmclarity/orchestrator/pkg/processor/assetscan"
assetscanwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/assetscan"
assetscanestimationwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/assetscanestimation"
scanwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scan"
scanconfigwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scanconfig"
scanestimationwatcher "github.com/openclarity/vmclarity/orchestrator/pkg/watcher/scanestimation"
provider "github.com/openclarity/vmclarity/provider/pkg"
"github.com/openclarity/vmclarity/provider/pkg/aws"
"github.com/openclarity/vmclarity/provider/pkg/azure"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanprocessor
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import "time"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanwatcher
package assetscan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanestimationwatcher
package assetscanestimation

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanestimationwatcher
package assetscanestimation

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanestimationwatcher
package assetscanestimation

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package assetscanestimationwatcher
package assetscanestimation

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanwatcher
package scan

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanwatcher
package scan

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanwatcher
package scan

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanwatcher
package scan

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanwatcher
package scan

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanconfigwatcher
package scanconfig

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanconfigwatcher
package scanconfig

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanconfigwatcher
package scanconfig

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanconfigwatcher
package scanconfig

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package scanconfigwatcher
package scanconfig

import (
"testing"
Expand Down
Loading

0 comments on commit c1e487a

Please sign in to comment.