From 28e6ba03333cb02e8d73783c476b4af065d4d7ee Mon Sep 17 00:00:00 2001 From: t-kikuc Date: Fri, 27 Dec 2024 16:39:42 +0900 Subject: [PATCH 1/2] rename package: execute->deployment 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 | 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%) 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/server.go index ffc932f8bb..740193193d 100644 --- a/pkg/app/pipedv1/plugin/wait/server.go +++ b/pkg/app/pipedv1/plugin/wait/server.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, From b57e6b8f4009489f0279eb73fd7e3fc15cfbd3e8 Mon Sep 17 00:00:00 2001 From: t-kikuc Date: Fri, 27 Dec 2024 16:39:57 +0900 Subject: [PATCH 2/2] rename file: server.go->plugin.go Signed-off-by: t-kikuc --- pkg/app/pipedv1/plugin/wait/{server.go => plugin.go} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename pkg/app/pipedv1/plugin/wait/{server.go => plugin.go} (100%) diff --git a/pkg/app/pipedv1/plugin/wait/server.go b/pkg/app/pipedv1/plugin/wait/plugin.go similarity index 100% rename from pkg/app/pipedv1/plugin/wait/server.go rename to pkg/app/pipedv1/plugin/wait/plugin.go