From 47a13c3433671a3ec635e039a813db2d90138ab6 Mon Sep 17 00:00:00 2001 From: Tetsuya KIKUCHI <97105818+t-kikuc@users.noreply.github.com> Date: Fri, 27 Dec 2024 16:47:12 +0900 Subject: [PATCH] Refactor wait plugin: rename package and file (#5462) * rename package: execute->deployment Signed-off-by: t-kikuc * rename file: server.go->plugin.go Signed-off-by: t-kikuc --------- Signed-off-by: t-kikuc --- pkg/app/pipedv1/plugin/wait/{execute => deployment}/server.go | 2 +- pkg/app/pipedv1/plugin/wait/{execute => deployment}/wait.go | 2 +- pkg/app/pipedv1/plugin/wait/{server.go => plugin.go} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename pkg/app/pipedv1/plugin/wait/{execute => deployment}/server.go (99%) rename pkg/app/pipedv1/plugin/wait/{execute => deployment}/wait.go (98%) rename pkg/app/pipedv1/plugin/wait/{server.go => plugin.go} (97%) diff --git a/pkg/app/pipedv1/plugin/wait/execute/server.go b/pkg/app/pipedv1/plugin/wait/deployment/server.go similarity index 99% rename from pkg/app/pipedv1/plugin/wait/execute/server.go rename to pkg/app/pipedv1/plugin/wait/deployment/server.go index ecbea7d920..0cb5a0ccd2 100644 --- a/pkg/app/pipedv1/plugin/wait/execute/server.go +++ b/pkg/app/pipedv1/plugin/wait/deployment/server.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package execute +package deployment import ( "context" diff --git a/pkg/app/pipedv1/plugin/wait/execute/wait.go b/pkg/app/pipedv1/plugin/wait/deployment/wait.go similarity index 98% rename from pkg/app/pipedv1/plugin/wait/execute/wait.go rename to pkg/app/pipedv1/plugin/wait/deployment/wait.go index e1f59c4b70..1fab6cfd17 100644 --- a/pkg/app/pipedv1/plugin/wait/execute/wait.go +++ b/pkg/app/pipedv1/plugin/wait/deployment/wait.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package execute +package deployment import ( "context" diff --git a/pkg/app/pipedv1/plugin/wait/server.go b/pkg/app/pipedv1/plugin/wait/plugin.go similarity index 97% rename from pkg/app/pipedv1/plugin/wait/server.go rename to pkg/app/pipedv1/plugin/wait/plugin.go index ffc932f8bb..740193193d 100644 --- a/pkg/app/pipedv1/plugin/wait/server.go +++ b/pkg/app/pipedv1/plugin/wait/plugin.go @@ -25,7 +25,7 @@ import ( "golang.org/x/sync/errgroup" "github.com/pipe-cd/pipecd/pkg/admin" - "github.com/pipe-cd/pipecd/pkg/app/pipedv1/plugin/wait/execute" + "github.com/pipe-cd/pipecd/pkg/app/pipedv1/plugin/wait/deployment" "github.com/pipe-cd/pipecd/pkg/cli" config "github.com/pipe-cd/pipecd/pkg/configv1" "github.com/pipe-cd/pipecd/pkg/plugin/logpersister" @@ -124,7 +124,7 @@ func (s *plugin) run(ctx context.Context, input cli.Input) (runErr error) { // Start a gRPC server for handling external API requests. { var ( - service = execute.NewDeploymentService( + service = deployment.NewDeploymentService( cfg, input.Logger, persister,