Skip to content

Commit d901715

Browse files
karkunpavancopybara-github
authored andcommitted
Move shared packages and protos from sapagent to platform
PiperOrigin-RevId: 698290654
1 parent a65651b commit d901715

File tree

18 files changed

+33
-31
lines changed

18 files changed

+33
-31
lines changed

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ import (
2626
"github.com/spf13/cobra"
2727
"github.com/spf13/pflag"
2828
"go.uber.org/zap/zapcore"
29-
"github.com/GoogleCloudPlatform/sapagent/shared/gce/metadataserver"
30-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
3129
"github.com/GoogleCloudPlatform/workloadagent/internal/daemon"
3230
"github.com/GoogleCloudPlatform/workloadagent/internal/onetime/logusage"
3331
"github.com/GoogleCloudPlatform/workloadagent/internal/onetime"
3432
"github.com/GoogleCloudPlatform/workloadagent/internal/onetime/version"
33+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/gce/metadataserver"
34+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
3535

3636
cpb "github.com/GoogleCloudPlatform/workloadagent/protos/configuration"
3737
)

internal/commondiscovery/commondiscovery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import (
2323
"time"
2424

2525
"github.com/shirou/gopsutil/v3/process"
26-
"github.com/GoogleCloudPlatform/sapagent/shared/commandlineexecutor"
27-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
2826
"github.com/GoogleCloudPlatform/workloadagent/internal/usagemetrics"
27+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/commandlineexecutor"
28+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
2929
)
3030

3131
const (

internal/daemon/configuration/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"google.golang.org/protobuf/encoding/protojson"
2929
"google.golang.org/protobuf/proto"
3030
"go.uber.org/zap/zapcore"
31-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
3231
"github.com/GoogleCloudPlatform/workloadagent/internal/usagemetrics"
32+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
3333

3434
dpb "google.golang.org/protobuf/types/known/durationpb"
3535
cpb "github.com/GoogleCloudPlatform/workloadagent/protos/configuration"

internal/daemon/daemon.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ import (
2626
"time"
2727

2828
"github.com/spf13/cobra"
29-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
30-
"github.com/GoogleCloudPlatform/sapagent/shared/recovery"
3129
"github.com/GoogleCloudPlatform/workloadagent/internal/commondiscovery"
3230
"github.com/GoogleCloudPlatform/workloadagent/internal/daemon/configuration"
3331
"github.com/GoogleCloudPlatform/workloadagent/internal/daemon/mysql"
3432
"github.com/GoogleCloudPlatform/workloadagent/internal/daemon/oracle"
3533
"github.com/GoogleCloudPlatform/workloadagent/internal/usagemetrics"
34+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
35+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/recovery"
3636

3737
cpb "github.com/GoogleCloudPlatform/workloadagent/protos/configuration"
3838
)

internal/daemon/mysql/mysql.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ import (
2121
"context"
2222
"time"
2323

24-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
25-
"github.com/GoogleCloudPlatform/sapagent/shared/recovery"
2624
"github.com/GoogleCloudPlatform/workloadagent/internal/commondiscovery"
2725
"github.com/GoogleCloudPlatform/workloadagent/internal/mysqldiscovery"
2826
"github.com/GoogleCloudPlatform/workloadagent/internal/mysqlmetrics"
2927
"github.com/GoogleCloudPlatform/workloadagent/internal/usagemetrics"
3028
cpb "github.com/GoogleCloudPlatform/workloadagent/protos/configuration"
29+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
30+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/recovery"
3131
)
3232

3333
// Service implements the interfaces for MySQL workload agent service.

internal/daemon/oracle/oracle.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ import (
2424
"slices"
2525
"time"
2626

27-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
28-
"github.com/GoogleCloudPlatform/sapagent/shared/recovery"
2927
"github.com/GoogleCloudPlatform/workloadagent/internal/commondiscovery"
3028
"github.com/GoogleCloudPlatform/workloadagent/internal/oraclediscovery"
3129
"github.com/GoogleCloudPlatform/workloadagent/internal/oraclemetrics"
3230
"github.com/GoogleCloudPlatform/workloadagent/internal/usagemetrics"
3331
cpb "github.com/GoogleCloudPlatform/workloadagent/protos/configuration"
3432
odpb "github.com/GoogleCloudPlatform/workloadagent/protos/oraclediscovery"
33+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
34+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/recovery"
3535
)
3636

3737
// Service implements the interfaces for Oracle workload agent service.

internal/mysqldiscovery/mysqldiscovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package mysqldiscovery
2020
import (
2121
"context"
2222

23-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
23+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
2424
)
2525

2626
// Discover runs the MySQL discovery routine.

internal/mysqlmetrics/mysqlmetrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package mysqlmetrics
2020
import (
2121
"context"
2222

23-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
23+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
2424
)
2525

2626
// CollectMetricsOnce collects metrics for MySQL databases running on the host.

internal/onetime/logusage/logusage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import (
2121
"fmt"
2222

2323
"github.com/spf13/cobra"
24-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
2524
"github.com/GoogleCloudPlatform/workloadagent/internal/daemon/configuration"
2625
"github.com/GoogleCloudPlatform/workloadagent/internal/onetime"
2726
"github.com/GoogleCloudPlatform/workloadagent/internal/usagemetrics"
27+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
2828

2929
cpb "github.com/GoogleCloudPlatform/workloadagent/protos/configuration"
3030
)

internal/onetime/onetime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import (
2626
"github.com/spf13/cobra"
2727
"github.com/spf13/pflag"
2828
"go.uber.org/zap/zapcore"
29-
"github.com/GoogleCloudPlatform/sapagent/shared/log"
3029
"github.com/GoogleCloudPlatform/workloadagent/internal/daemon/configuration"
3130
"github.com/GoogleCloudPlatform/workloadagent/internal/usagemetrics"
3231
cpb "github.com/GoogleCloudPlatform/workloadagent/protos/configuration"
32+
"github.com/GoogleCloudPlatform/workloadagentplatform/integration/common/shared/log"
3333
)
3434

3535
type (

0 commit comments

Comments
 (0)