From e7ec8897dd3a3a8d68f4be7c46054458853d789f Mon Sep 17 00:00:00 2001 From: Mickael BOURNEUF Date: Sat, 1 Mar 2025 18:46:38 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9placement=20des=20protos=20dans=20un=20p?= =?UTF-8?q?kg=20a=20part=20entier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/mgr/domain/domain.go | 2 +- cmd/mgr/domain/events.go | 2 +- cmd/mgr/main.go | 2 +- cmd/mgr/node/node.go | 2 +- pkg/{api => }/proto/domain.pb.go | 0 pkg/{api => }/proto/domain.proto | 0 pkg/{api => }/proto/domain_grpc.pb.go | 0 pkg/{api => }/proto/network.pb.go | 0 pkg/{api => }/proto/network.proto | 0 pkg/{api => }/proto/node.pb.go | 0 pkg/{api => }/proto/node.proto | 0 pkg/{api => }/proto/node_grpc.pb.go | 0 pkg/{api => }/proto/raft_admin.pb.go | 0 pkg/{api => }/proto/raft_admin.proto | 0 pkg/{api => }/proto/raft_admin_grpc.pb.go | 0 pkg/{api => }/proto/raft_transport.pb.go | 0 pkg/{api => }/proto/raft_transport.proto | 0 pkg/{api => }/proto/raft_transport_grpc.pb.go | 0 pkg/{api => }/proto/storage.pb.go | 0 pkg/{api => }/proto/storage.proto | 0 pkg/raft/admin.go | 2 +- pkg/raft/transport/api.go | 2 +- pkg/raft/transport/chunking.go | 2 +- pkg/raft/transport/fromproto.go | 2 +- pkg/raft/transport/grpc.go | 2 +- pkg/raft/transport/toproto.go | 2 +- pkg/raft/transport/transport.go | 2 +- 27 files changed, 11 insertions(+), 11 deletions(-) rename pkg/{api => }/proto/domain.pb.go (100%) rename pkg/{api => }/proto/domain.proto (100%) rename pkg/{api => }/proto/domain_grpc.pb.go (100%) rename pkg/{api => }/proto/network.pb.go (100%) rename pkg/{api => }/proto/network.proto (100%) rename pkg/{api => }/proto/node.pb.go (100%) rename pkg/{api => }/proto/node.proto (100%) rename pkg/{api => }/proto/node_grpc.pb.go (100%) rename pkg/{api => }/proto/raft_admin.pb.go (100%) rename pkg/{api => }/proto/raft_admin.proto (100%) rename pkg/{api => }/proto/raft_admin_grpc.pb.go (100%) rename pkg/{api => }/proto/raft_transport.pb.go (100%) rename pkg/{api => }/proto/raft_transport.proto (100%) rename pkg/{api => }/proto/raft_transport_grpc.pb.go (100%) rename pkg/{api => }/proto/storage.pb.go (100%) rename pkg/{api => }/proto/storage.proto (100%) diff --git a/cmd/mgr/domain/domain.go b/cmd/mgr/domain/domain.go index 8022753..82aa8b8 100644 --- a/cmd/mgr/domain/domain.go +++ b/cmd/mgr/domain/domain.go @@ -3,8 +3,8 @@ package domain import ( "go.uber.org/zap" - "deevirt.fr/compute/pkg/api/proto" "deevirt.fr/compute/pkg/config" + "deevirt.fr/compute/pkg/proto" "deevirt.fr/compute/pkg/raft" ) diff --git a/cmd/mgr/domain/events.go b/cmd/mgr/domain/events.go index 49248bb..ce95dbb 100644 --- a/cmd/mgr/domain/events.go +++ b/cmd/mgr/domain/events.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" - "deevirt.fr/compute/pkg/api/proto" + "deevirt.fr/compute/pkg/proto" "libvirt.org/go/libvirt" ) diff --git a/cmd/mgr/main.go b/cmd/mgr/main.go index 0a76084..e6601c7 100644 --- a/cmd/mgr/main.go +++ b/cmd/mgr/main.go @@ -19,8 +19,8 @@ import ( "deevirt.fr/compute/cmd/mgr/node" "deevirt.fr/compute/cmd/mgr/worker" - pb "deevirt.fr/compute/pkg/api/proto" "deevirt.fr/compute/pkg/config" + pb "deevirt.fr/compute/pkg/proto" "deevirt.fr/compute/pkg/raft" ) diff --git a/cmd/mgr/node/node.go b/cmd/mgr/node/node.go index 2cec467..3f03b1f 100644 --- a/cmd/mgr/node/node.go +++ b/cmd/mgr/node/node.go @@ -6,8 +6,8 @@ import ( "io" "log" - "deevirt.fr/compute/pkg/api/proto" "deevirt.fr/compute/pkg/config" + "deevirt.fr/compute/pkg/proto" "deevirt.fr/compute/pkg/raft" "deevirt.fr/compute/pkg/schema" ) diff --git a/pkg/api/proto/domain.pb.go b/pkg/proto/domain.pb.go similarity index 100% rename from pkg/api/proto/domain.pb.go rename to pkg/proto/domain.pb.go diff --git a/pkg/api/proto/domain.proto b/pkg/proto/domain.proto similarity index 100% rename from pkg/api/proto/domain.proto rename to pkg/proto/domain.proto diff --git a/pkg/api/proto/domain_grpc.pb.go b/pkg/proto/domain_grpc.pb.go similarity index 100% rename from pkg/api/proto/domain_grpc.pb.go rename to pkg/proto/domain_grpc.pb.go diff --git a/pkg/api/proto/network.pb.go b/pkg/proto/network.pb.go similarity index 100% rename from pkg/api/proto/network.pb.go rename to pkg/proto/network.pb.go diff --git a/pkg/api/proto/network.proto b/pkg/proto/network.proto similarity index 100% rename from pkg/api/proto/network.proto rename to pkg/proto/network.proto diff --git a/pkg/api/proto/node.pb.go b/pkg/proto/node.pb.go similarity index 100% rename from pkg/api/proto/node.pb.go rename to pkg/proto/node.pb.go diff --git a/pkg/api/proto/node.proto b/pkg/proto/node.proto similarity index 100% rename from pkg/api/proto/node.proto rename to pkg/proto/node.proto diff --git a/pkg/api/proto/node_grpc.pb.go b/pkg/proto/node_grpc.pb.go similarity index 100% rename from pkg/api/proto/node_grpc.pb.go rename to pkg/proto/node_grpc.pb.go diff --git a/pkg/api/proto/raft_admin.pb.go b/pkg/proto/raft_admin.pb.go similarity index 100% rename from pkg/api/proto/raft_admin.pb.go rename to pkg/proto/raft_admin.pb.go diff --git a/pkg/api/proto/raft_admin.proto b/pkg/proto/raft_admin.proto similarity index 100% rename from pkg/api/proto/raft_admin.proto rename to pkg/proto/raft_admin.proto diff --git a/pkg/api/proto/raft_admin_grpc.pb.go b/pkg/proto/raft_admin_grpc.pb.go similarity index 100% rename from pkg/api/proto/raft_admin_grpc.pb.go rename to pkg/proto/raft_admin_grpc.pb.go diff --git a/pkg/api/proto/raft_transport.pb.go b/pkg/proto/raft_transport.pb.go similarity index 100% rename from pkg/api/proto/raft_transport.pb.go rename to pkg/proto/raft_transport.pb.go diff --git a/pkg/api/proto/raft_transport.proto b/pkg/proto/raft_transport.proto similarity index 100% rename from pkg/api/proto/raft_transport.proto rename to pkg/proto/raft_transport.proto diff --git a/pkg/api/proto/raft_transport_grpc.pb.go b/pkg/proto/raft_transport_grpc.pb.go similarity index 100% rename from pkg/api/proto/raft_transport_grpc.pb.go rename to pkg/proto/raft_transport_grpc.pb.go diff --git a/pkg/api/proto/storage.pb.go b/pkg/proto/storage.pb.go similarity index 100% rename from pkg/api/proto/storage.pb.go rename to pkg/proto/storage.pb.go diff --git a/pkg/api/proto/storage.proto b/pkg/proto/storage.proto similarity index 100% rename from pkg/api/proto/storage.proto rename to pkg/proto/storage.proto diff --git a/pkg/raft/admin.go b/pkg/raft/admin.go index eb967ee..8dd421e 100644 --- a/pkg/raft/admin.go +++ b/pkg/raft/admin.go @@ -8,7 +8,7 @@ import ( "sync" "time" - pb "deevirt.fr/compute/pkg/api/proto" + pb "deevirt.fr/compute/pkg/proto" "github.com/hashicorp/raft" "google.golang.org/grpc" ) diff --git a/pkg/raft/transport/api.go b/pkg/raft/transport/api.go index fbe1950..2eff324 100644 --- a/pkg/raft/transport/api.go +++ b/pkg/raft/transport/api.go @@ -6,7 +6,7 @@ import ( "sync" "time" - pb "deevirt.fr/compute/pkg/api/proto" + pb "deevirt.fr/compute/pkg/proto" "github.com/hashicorp/raft" "google.golang.org/grpc" "google.golang.org/grpc/codes" diff --git a/pkg/raft/transport/chunking.go b/pkg/raft/transport/chunking.go index 7ae8e9b..35f0bbe 100644 --- a/pkg/raft/transport/chunking.go +++ b/pkg/raft/transport/chunking.go @@ -1,7 +1,7 @@ package transport import ( - pb "deevirt.fr/compute/pkg/api/proto" + pb "deevirt.fr/compute/pkg/proto" "google.golang.org/protobuf/proto" ) diff --git a/pkg/raft/transport/fromproto.go b/pkg/raft/transport/fromproto.go index 5d96ab1..d82611c 100644 --- a/pkg/raft/transport/fromproto.go +++ b/pkg/raft/transport/fromproto.go @@ -1,7 +1,7 @@ package transport import ( - pb "deevirt.fr/compute/pkg/api/proto" + pb "deevirt.fr/compute/pkg/proto" "github.com/hashicorp/raft" ) diff --git a/pkg/raft/transport/grpc.go b/pkg/raft/transport/grpc.go index 4659376..4515a0a 100644 --- a/pkg/raft/transport/grpc.go +++ b/pkg/raft/transport/grpc.go @@ -4,7 +4,7 @@ import ( "context" "io" - pb "deevirt.fr/compute/pkg/api/proto" + pb "deevirt.fr/compute/pkg/proto" "github.com/hashicorp/raft" ) diff --git a/pkg/raft/transport/toproto.go b/pkg/raft/transport/toproto.go index d7eeb5e..d025db5 100644 --- a/pkg/raft/transport/toproto.go +++ b/pkg/raft/transport/toproto.go @@ -1,7 +1,7 @@ package transport import ( - pb "deevirt.fr/compute/pkg/api/proto" + pb "deevirt.fr/compute/pkg/proto" "github.com/hashicorp/raft" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/pkg/raft/transport/transport.go b/pkg/raft/transport/transport.go index 9a10ebd..0e1eb18 100644 --- a/pkg/raft/transport/transport.go +++ b/pkg/raft/transport/transport.go @@ -5,7 +5,7 @@ import ( "sync" "time" - pb "deevirt.fr/compute/pkg/api/proto" + pb "deevirt.fr/compute/pkg/proto" "github.com/hashicorp/go-multierror" "github.com/hashicorp/raft" "github.com/pkg/errors"