From ca55bd0e67ea7cb8c38f12ebbeb98dd52646b521 Mon Sep 17 00:00:00 2001 From: Caleb Brown Date: Mon, 14 Nov 2022 10:19:04 +1100 Subject: [PATCH] Move cron monitoring to a non-internal location. (#2453) This allows external workers (e.g. criticality_score) to use the same monitoring code. Signed-off-by: Caleb Brown Signed-off-by: Caleb Brown --- cron/internal/worker/main.go | 2 +- cron/{internal => }/monitoring/exporter.go | 0 cron/{internal => }/monitoring/printer.go | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename cron/{internal => }/monitoring/exporter.go (100%) rename cron/{internal => }/monitoring/printer.go (100%) diff --git a/cron/internal/worker/main.go b/cron/internal/worker/main.go index 2ad727a2aed..1bc8a3be115 100644 --- a/cron/internal/worker/main.go +++ b/cron/internal/worker/main.go @@ -33,7 +33,7 @@ import ( "github.com/ossf/scorecard/v4/cron/config" "github.com/ossf/scorecard/v4/cron/data" format "github.com/ossf/scorecard/v4/cron/internal/format" - "github.com/ossf/scorecard/v4/cron/internal/monitoring" + "github.com/ossf/scorecard/v4/cron/monitoring" "github.com/ossf/scorecard/v4/cron/worker" docs "github.com/ossf/scorecard/v4/docs/checks" sce "github.com/ossf/scorecard/v4/errors" diff --git a/cron/internal/monitoring/exporter.go b/cron/monitoring/exporter.go similarity index 100% rename from cron/internal/monitoring/exporter.go rename to cron/monitoring/exporter.go diff --git a/cron/internal/monitoring/printer.go b/cron/monitoring/printer.go similarity index 100% rename from cron/internal/monitoring/printer.go rename to cron/monitoring/printer.go