Skip to content

Commit

Permalink
Move PipedPluginService definition to the under the pkg/plugin (#5468)
Browse files Browse the repository at this point in the history
* Move the piped-plugin-service to under /pkg/plugin

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

* Fix import path

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
  • Loading branch information
Warashi authored Jan 7, 2025
1 parent 7e0adab commit 48be6ed
Show file tree
Hide file tree
Showing 10 changed files with 156 additions and 157 deletions.
2 changes: 1 addition & 1 deletion pkg/app/pipedv1/cmd/piped/grpcapi/plugin_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"context"
"fmt"

"github.com/pipe-cd/pipecd/pkg/app/pipedv1/cmd/piped/service"
"github.com/pipe-cd/pipecd/pkg/app/server/service/pipedservice"
config "github.com/pipe-cd/pipecd/pkg/configv1"
service "github.com/pipe-cd/pipecd/pkg/plugin/pipedservice"

"go.uber.org/zap"
"google.golang.org/grpc"
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/logpersister/persister.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"go.uber.org/zap"
"google.golang.org/grpc"

"github.com/pipe-cd/pipecd/pkg/app/pipedv1/cmd/piped/service"
"github.com/pipe-cd/pipecd/pkg/model"
service "github.com/pipe-cd/pipecd/pkg/plugin/pipedservice"
)

type apiClient interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/logpersister/persister_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"go.uber.org/zap"
"google.golang.org/grpc"

"github.com/pipe-cd/pipecd/pkg/app/pipedv1/cmd/piped/service"
service "github.com/pipe-cd/pipecd/pkg/plugin/pipedservice"
)

type fakeAPIClient struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/pipedapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"google.golang.org/grpc"

"github.com/pipe-cd/pipecd/pkg/app/pipedv1/cmd/piped/service"
service "github.com/pipe-cd/pipecd/pkg/plugin/pipedservice"
"github.com/pipe-cd/pipecd/pkg/rpc/rpcclient"
)

Expand Down

Large diffs are not rendered by default.

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

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
syntax = "proto3";

package grpc.piped.service;
option go_package = "github.com/pipe-cd/pipecd/pkg/app/pipedv1/cmd/piped/service";
option go_package = "github.com/pipe-cd/pipecd/pkg/plugin/pipedservice";

import "validate/validate.proto";
import "pkg/model/logblock.proto";
Expand Down

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

2 changes: 1 addition & 1 deletion pkg/plugin/toolregistry/toolregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package toolregistry
import (
"context"

"github.com/pipe-cd/pipecd/pkg/app/pipedv1/cmd/piped/service"
service "github.com/pipe-cd/pipecd/pkg/plugin/pipedservice"
)

type ToolRegistry struct {
Expand Down
2 changes: 1 addition & 1 deletion tool/codegen/codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ goProtoDirs=(
"pkg/app/helloworld/service"
"pkg/plugin/api/v1alpha1/deployment"
"pkg/plugin/api/v1alpha1/livestate"
"pkg/app/pipedv1/cmd/piped/service"
"pkg/plugin/pipedservice"
)

for dir in ${goProtoDirs[*]}; do
Expand Down

0 comments on commit 48be6ed

Please sign in to comment.