diff --git a/api/Dockerfile b/Dockerfile similarity index 100% rename from api/Dockerfile rename to Dockerfile diff --git a/Makefile b/Makefile index 1d87b2d5..663d2dba 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,8 @@ -pcm-core-api: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-core-api api/pcm.go +api-gen: + goctl api go -api desc/pcm.api -dir . -style gozero --home ../deploy/goctl -pcm-core-rpc: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-core-rpc rpc/pcmcore.go +Generate-AMD64: + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-coordinator-api pcm.go -all-build: pcm-core-rpc pcm-core-api - -.PHONY: pcm-core-rpc pcm-core-api \ No newline at end of file +Generate-ARM64: + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -o pcm-coordinator-api pcm.go diff --git a/api/Makefile b/api/Makefile deleted file mode 100644 index 663d2dba..00000000 --- a/api/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -api-gen: - goctl api go -api desc/pcm.api -dir . -style gozero --home ../deploy/goctl - -Generate-AMD64: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-coordinator-api pcm.go - -Generate-ARM64: - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -o pcm-coordinator-api pcm.go diff --git a/api/client/client.go b/client/client.go similarity index 100% rename from api/client/client.go rename to client/client.go diff --git a/api/client/client_impl.go b/client/client_impl.go similarity index 100% rename from api/client/client_impl.go rename to client/client_impl.go diff --git a/api/client/notice.go b/client/notice.go similarity index 100% rename from api/client/notice.go rename to client/notice.go diff --git a/api/client/notice_impl.go b/client/notice_impl.go similarity index 100% rename from api/client/notice_impl.go rename to client/notice_impl.go diff --git a/api/client/task.go b/client/task.go similarity index 100% rename from api/client/task.go rename to client/task.go diff --git a/api/client/task_impl.go b/client/task_impl.go similarity index 100% rename from api/client/task_impl.go rename to client/task_impl.go diff --git a/api/client/types.go b/client/types.go similarity index 100% rename from api/client/types.go rename to client/types.go diff --git a/api/pcm-coordinator-api.yaml b/deploy/pcm-coordinator-api.yaml similarity index 100% rename from api/pcm-coordinator-api.yaml rename to deploy/pcm-coordinator-api.yaml diff --git a/api/desc/ai/pcm-ai.api b/desc/ai/pcm-ai.api similarity index 100% rename from api/desc/ai/pcm-ai.api rename to desc/ai/pcm-ai.api diff --git a/api/desc/cloud/pcm-cloud.api b/desc/cloud/pcm-cloud.api similarity index 100% rename from api/desc/cloud/pcm-cloud.api rename to desc/cloud/pcm-cloud.api diff --git a/api/desc/core/pcm-core.api b/desc/core/pcm-core.api similarity index 100% rename from api/desc/core/pcm-core.api rename to desc/core/pcm-core.api diff --git a/api/desc/hpc/pcm-hpc.api b/desc/hpc/pcm-hpc.api similarity index 100% rename from api/desc/hpc/pcm-hpc.api rename to desc/hpc/pcm-hpc.api diff --git a/api/desc/inference/inference.api b/desc/inference/inference.api similarity index 100% rename from api/desc/inference/inference.api rename to desc/inference/inference.api diff --git a/api/desc/monitoring/pcm-monitoring.api b/desc/monitoring/pcm-monitoring.api similarity index 100% rename from api/desc/monitoring/pcm-monitoring.api rename to desc/monitoring/pcm-monitoring.api diff --git a/api/desc/pcm.api b/desc/pcm.api similarity index 100% rename from api/desc/pcm.api rename to desc/pcm.api diff --git a/api/desc/pcm.json b/desc/pcm.json similarity index 100% rename from api/desc/pcm.json rename to desc/pcm.json diff --git a/api/desc/schedule/pcm-schedule.api b/desc/schedule/pcm-schedule.api similarity index 100% rename from api/desc/schedule/pcm-schedule.api rename to desc/schedule/pcm-schedule.api diff --git a/api/desc/storage/pcm-storage.api b/desc/storage/pcm-storage.api similarity index 100% rename from api/desc/storage/pcm-storage.api rename to desc/storage/pcm-storage.api diff --git a/api/desc/storelink/pcm-storelink.api b/desc/storelink/pcm-storelink.api similarity index 100% rename from api/desc/storelink/pcm-storelink.api rename to desc/storelink/pcm-storelink.api diff --git a/api/desc/vm/pcm-vm.api b/desc/vm/pcm-vm.api similarity index 100% rename from api/desc/vm/pcm-vm.api rename to desc/vm/pcm-vm.api diff --git a/api/etc/pcm.yaml b/etc/pcm.yaml similarity index 92% rename from api/etc/pcm.yaml rename to etc/pcm.yaml index ef1e3250..e2e14f99 100644 --- a/api/etc/pcm.yaml +++ b/etc/pcm.yaml @@ -6,8 +6,8 @@ MaxBytes: 524288000 Timeout: 50000 DB: - DataSource: root:uJpLd6u-J?HC1@(10.206.0.12:3306)/pcm?parseTime=true&loc=Local - # DataSource: root:uJpLd6u-J?HC1@(47.92.88.143:3306)/pcm?parseTime=true&loc=Local +# DataSource: root:uJpLd6u-J?HC1@(10.206.0.12:3306)/pcm?parseTime=true&loc=Local + DataSource: root:uJpLd6u-J?HC1@(47.92.88.143:3306)/pcm?parseTime=true&loc=Local Redis: Host: 10.206.0.12:6379 Pass: redisPW123 diff --git a/examples/ai/modelArts.yaml b/examples/ai/modelArts.yaml deleted file mode 100644 index c724191c..00000000 --- a/examples/ai/modelArts.yaml +++ /dev/null @@ -1,10 +0,0 @@ -description: modelArts -name: modelArts -tasks: - - serviceName: modelArts - metadata: - projectId: 0a62ffb0d48026c12fbfc011b8d23f0b - name: demo3 - command: echo hello;sleep 100;echo hello;sleep 100;echo hello - flavorId: modelarts.p3.large.public.free - imageUrl: jcce/nginx:v1 \ No newline at end of file diff --git a/examples/cloud/nginx.yaml b/examples/cloud/nginx.yaml deleted file mode 100644 index 22a0fee3..00000000 --- a/examples/cloud/nginx.yaml +++ /dev/null @@ -1,72 +0,0 @@ -description: sealos-task-zw3 -name: sealos-task-zw3 -nsID: ns-admin -tasks: - - taskType: cloud - replicas: 2 - matchLabels: - cloud: sealos - metadata: - - apiVersion: v1 - kind: Service - metadata: - namespace: ns-admin - name: hello-world-3 - labels: - cloud.sealos.io/app-deploy-manager: hello-world-3 - spec: - ports: - - port: 80 - targetPort: 80 - name: rcszabasszit - selector: - app: hello-world-3 - - - apiVersion: apps/v1 - kind: Deployment - metadata: - namespace: ns-admin - name: hello-world-3 - annotations: - originImageName: nginx - deploy.cloud.sealos.io/minReplicas: '1' - deploy.cloud.sealos.io/maxReplicas: '1' - labels: - cloud.sealos.io/app-deploy-manager: hello-world-3 - app: hello-world-3 - spec: - replicas: 1 - revisionHistoryLimit: 1 - selector: - matchLabels: - app: hello-world-3 - strategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 0 - maxSurge: 1 - template: - metadata: - labels: - app: hello-world-3 - restartTime: '20231129185132' - spec: - containers: - - name: hello-world-3 - image: nginx - env: [] - resources: - requests: - cpu: 10m - memory: 6Mi - limits: - cpu: 100m - memory: 64Mi - ports: - - containerPort: 80 - name: rcszabasszit - imagePullPolicy: Always - volumeMounts: [] - volumes: [] - - diff --git a/examples/hpc/ac.yaml b/examples/hpc/ac.yaml deleted file mode 100644 index 69713d25..00000000 --- a/examples/hpc/ac.yaml +++ /dev/null @@ -1,19 +0,0 @@ -description: ac_01 -name: ac_01 -tasks: - - taskType: hpc - matchLabels: - hpc: shuguang - metadata: - cardCount: 1 - name: ac_01 - workDir: /public/home/zhijiang/test/testjob1 - wallTime: 00:10:00 - cmdScript: sleep 300 - appType: BASIC - appName: BASE - queue: debug2 - nNode: "1" - submitType: cmd - stdOutFile: /public/home/zhijiang/test/testjob1/std.out.%j - stdErrFile: /public/home/zhijiang/test/testjob1/std.err.%j \ No newline at end of file diff --git a/examples/hpc/th.yaml b/examples/hpc/th.yaml deleted file mode 100644 index 4da1fd0b..00000000 --- a/examples/hpc/th.yaml +++ /dev/null @@ -1,8 +0,0 @@ -description: th1 task -name: th1 demo -tasks: - - serviceName: th - metadata: - cardCount: 1 - name: tianhe1 demo - cmdScript: srun sleep 500 diff --git a/go.mod b/go.mod index 8899453d..34ae8613 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,6 @@ require ( github.com/ghodss/yaml v1.0.0 github.com/go-redis/redis/v8 v8.11.5 github.com/go-resty/resty/v2 v2.12.0 - github.com/go-sql-driver/mysql v1.8.1 github.com/jinzhu/copier v0.4.0 github.com/json-iterator/go v1.1.12 github.com/pkg/errors v0.9.1 @@ -32,7 +31,6 @@ require ( go.opentelemetry.io/otel/trace v1.27.0 gonum.org/v1/gonum v0.11.0 google.golang.org/grpc v1.64.0 - google.golang.org/protobuf v1.34.2 gorm.io/datatypes v1.2.0 gorm.io/driver/mysql v1.5.2 gorm.io/gorm v1.25.5 @@ -73,6 +71,7 @@ require ( github.com/go-openapi/strfmt v0.22.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect github.com/go-openapi/validate v0.23.0 // indirect + github.com/go-sql-driver/mysql v1.8.1 // indirect github.com/gofrs/uuid v4.4.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt/v4 v4.5.0 // indirect @@ -155,6 +154,7 @@ require ( golang.org/x/tools v0.22.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240617180043-68d350f18fd4 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/api/internal/config/config.go b/internal/config/config.go similarity index 100% rename from api/internal/config/config.go rename to internal/config/config.go diff --git a/api/internal/cron/aiCronTask.go b/internal/cron/aiCronTask.go similarity index 94% rename from api/internal/cron/aiCronTask.go rename to internal/cron/aiCronTask.go index 458a243e..60511835 100644 --- a/api/internal/cron/aiCronTask.go +++ b/internal/cron/aiCronTask.go @@ -6,12 +6,12 @@ import ( "github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/zrpc" hpcacclient "gitlink.org.cn/JointCloud/pcm-ac/hpcacclient" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/config" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/executor" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/config" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/executor" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-modelarts/client/imagesservice" "gitlink.org.cn/JointCloud/pcm-modelarts/client/modelartsservice" diff --git a/api/internal/cron/cron.go b/internal/cron/cron.go similarity index 87% rename from api/internal/cron/cron.go rename to internal/cron/cron.go index a571195c..342b9b34 100644 --- a/api/internal/cron/cron.go +++ b/internal/cron/cron.go @@ -16,8 +16,8 @@ package cron import ( "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/status" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/status" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func AddCronGroup(svc *svc.ServiceContext) { diff --git a/api/internal/handler/adapters/adapterslisthandler.go b/internal/handler/adapters/adapterslisthandler.go similarity index 73% rename from api/internal/handler/adapters/adapterslisthandler.go rename to internal/handler/adapters/adapterslisthandler.go index 6ae5c320..a5052362 100644 --- a/api/internal/handler/adapters/adapterslisthandler.go +++ b/internal/handler/adapters/adapterslisthandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/clusterlisthandler.go b/internal/handler/adapters/clusterlisthandler.go similarity index 73% rename from api/internal/handler/adapters/clusterlisthandler.go rename to internal/handler/adapters/clusterlisthandler.go index bf168fbc..6c8a7b7f 100644 --- a/api/internal/handler/adapters/clusterlisthandler.go +++ b/internal/handler/adapters/clusterlisthandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/createadapterhandler.go b/internal/handler/adapters/createadapterhandler.go similarity index 73% rename from api/internal/handler/adapters/createadapterhandler.go rename to internal/handler/adapters/createadapterhandler.go index be20ca49..01739e2e 100644 --- a/api/internal/handler/adapters/createadapterhandler.go +++ b/internal/handler/adapters/createadapterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/createclusterhandler.go b/internal/handler/adapters/createclusterhandler.go similarity index 73% rename from api/internal/handler/adapters/createclusterhandler.go rename to internal/handler/adapters/createclusterhandler.go index 47e1e8b6..b5299d87 100644 --- a/api/internal/handler/adapters/createclusterhandler.go +++ b/internal/handler/adapters/createclusterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/deleteadapterhandler.go b/internal/handler/adapters/deleteadapterhandler.go similarity index 73% rename from api/internal/handler/adapters/deleteadapterhandler.go rename to internal/handler/adapters/deleteadapterhandler.go index 3b2fb374..e1607214 100644 --- a/api/internal/handler/adapters/deleteadapterhandler.go +++ b/internal/handler/adapters/deleteadapterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/deleteclusterhandler.go b/internal/handler/adapters/deleteclusterhandler.go similarity index 72% rename from api/internal/handler/adapters/deleteclusterhandler.go rename to internal/handler/adapters/deleteclusterhandler.go index 2f9d3c9e..7bf7aa7f 100644 --- a/api/internal/handler/adapters/deleteclusterhandler.go +++ b/internal/handler/adapters/deleteclusterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/getadapterhandler.go b/internal/handler/adapters/getadapterhandler.go similarity index 73% rename from api/internal/handler/adapters/getadapterhandler.go rename to internal/handler/adapters/getadapterhandler.go index 3967cc56..221bb1cf 100644 --- a/api/internal/handler/adapters/getadapterhandler.go +++ b/internal/handler/adapters/getadapterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/getadapterrelationhandler.go b/internal/handler/adapters/getadapterrelationhandler.go similarity index 74% rename from api/internal/handler/adapters/getadapterrelationhandler.go rename to internal/handler/adapters/getadapterrelationhandler.go index 1f265676..16c6b591 100644 --- a/api/internal/handler/adapters/getadapterrelationhandler.go +++ b/internal/handler/adapters/getadapterrelationhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/getclusterhandler.go b/internal/handler/adapters/getclusterhandler.go similarity index 72% rename from api/internal/handler/adapters/getclusterhandler.go rename to internal/handler/adapters/getclusterhandler.go index 7fe828e9..4d072fb3 100644 --- a/api/internal/handler/adapters/getclusterhandler.go +++ b/internal/handler/adapters/getclusterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/getclustersumhandler.go b/internal/handler/adapters/getclustersumhandler.go similarity index 73% rename from api/internal/handler/adapters/getclustersumhandler.go rename to internal/handler/adapters/getclustersumhandler.go index bcd6d6af..992cd6d7 100644 --- a/api/internal/handler/adapters/getclustersumhandler.go +++ b/internal/handler/adapters/getclustersumhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/updateadapterhandler.go b/internal/handler/adapters/updateadapterhandler.go similarity index 73% rename from api/internal/handler/adapters/updateadapterhandler.go rename to internal/handler/adapters/updateadapterhandler.go index 2f9ee8fa..759eef81 100644 --- a/api/internal/handler/adapters/updateadapterhandler.go +++ b/internal/handler/adapters/updateadapterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/adapters/updateclusterhandler.go b/internal/handler/adapters/updateclusterhandler.go similarity index 73% rename from api/internal/handler/adapters/updateclusterhandler.go rename to internal/handler/adapters/updateclusterhandler.go index 197d0198..191a8683 100644 --- a/api/internal/handler/adapters/updateclusterhandler.go +++ b/internal/handler/adapters/updateclusterhandler.go @@ -2,9 +2,9 @@ package adapters import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/adapters" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/adapters" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createalgorithmhandler.go b/internal/handler/ai/createalgorithmhandler.go similarity index 73% rename from api/internal/handler/ai/createalgorithmhandler.go rename to internal/handler/ai/createalgorithmhandler.go index f6c4e3bb..92b074d4 100644 --- a/api/internal/handler/ai/createalgorithmhandler.go +++ b/internal/handler/ai/createalgorithmhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createdatasethandler.go b/internal/handler/ai/createdatasethandler.go similarity index 73% rename from api/internal/handler/ai/createdatasethandler.go rename to internal/handler/ai/createdatasethandler.go index 424005b4..9661a729 100644 --- a/api/internal/handler/ai/createdatasethandler.go +++ b/internal/handler/ai/createdatasethandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createexporttaskhandler.go b/internal/handler/ai/createexporttaskhandler.go similarity index 74% rename from api/internal/handler/ai/createexporttaskhandler.go rename to internal/handler/ai/createexporttaskhandler.go index 7dbf1228..32594dfe 100644 --- a/api/internal/handler/ai/createexporttaskhandler.go +++ b/internal/handler/ai/createexporttaskhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createnotebookhandler.go b/internal/handler/ai/createnotebookhandler.go similarity index 73% rename from api/internal/handler/ai/createnotebookhandler.go rename to internal/handler/ai/createnotebookhandler.go index 14dd0460..7c9bcf68 100644 --- a/api/internal/handler/ai/createnotebookhandler.go +++ b/internal/handler/ai/createnotebookhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createprocessortaskhandler.go b/internal/handler/ai/createprocessortaskhandler.go similarity index 74% rename from api/internal/handler/ai/createprocessortaskhandler.go rename to internal/handler/ai/createprocessortaskhandler.go index 00167d1e..82bfc688 100644 --- a/api/internal/handler/ai/createprocessortaskhandler.go +++ b/internal/handler/ai/createprocessortaskhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createservicehandler.go b/internal/handler/ai/createservicehandler.go similarity index 73% rename from api/internal/handler/ai/createservicehandler.go rename to internal/handler/ai/createservicehandler.go index 4d9159ac..afef0e78 100644 --- a/api/internal/handler/ai/createservicehandler.go +++ b/internal/handler/ai/createservicehandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createtaskhandler.go b/internal/handler/ai/createtaskhandler.go similarity index 73% rename from api/internal/handler/ai/createtaskhandler.go rename to internal/handler/ai/createtaskhandler.go index 85c62920..5f83d772 100644 --- a/api/internal/handler/ai/createtaskhandler.go +++ b/internal/handler/ai/createtaskhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createtrainingjobhandler.go b/internal/handler/ai/createtrainingjobhandler.go similarity index 74% rename from api/internal/handler/ai/createtrainingjobhandler.go rename to internal/handler/ai/createtrainingjobhandler.go index f0c3eb9b..9838c439 100644 --- a/api/internal/handler/ai/createtrainingjobhandler.go +++ b/internal/handler/ai/createtrainingjobhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/createvisualizationjobhandler.go b/internal/handler/ai/createvisualizationjobhandler.go similarity index 74% rename from api/internal/handler/ai/createvisualizationjobhandler.go rename to internal/handler/ai/createvisualizationjobhandler.go index 971404ea..bebdd359 100644 --- a/api/internal/handler/ai/createvisualizationjobhandler.go +++ b/internal/handler/ai/createvisualizationjobhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/deletealgorithmhandler.go b/internal/handler/ai/deletealgorithmhandler.go similarity index 73% rename from api/internal/handler/ai/deletealgorithmhandler.go rename to internal/handler/ai/deletealgorithmhandler.go index 74597272..42d10abb 100644 --- a/api/internal/handler/ai/deletealgorithmhandler.go +++ b/internal/handler/ai/deletealgorithmhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/deletedatasethandler.go b/internal/handler/ai/deletedatasethandler.go similarity index 73% rename from api/internal/handler/ai/deletedatasethandler.go rename to internal/handler/ai/deletedatasethandler.go index 7457bee0..b9c99fa4 100644 --- a/api/internal/handler/ai/deletedatasethandler.go +++ b/internal/handler/ai/deletedatasethandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/deleteservicehandler.go b/internal/handler/ai/deleteservicehandler.go similarity index 73% rename from api/internal/handler/ai/deleteservicehandler.go rename to internal/handler/ai/deleteservicehandler.go index b65826fb..66fc8bb1 100644 --- a/api/internal/handler/ai/deleteservicehandler.go +++ b/internal/handler/ai/deleteservicehandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/deletetrainingjobhandler.go b/internal/handler/ai/deletetrainingjobhandler.go similarity index 74% rename from api/internal/handler/ai/deletetrainingjobhandler.go rename to internal/handler/ai/deletetrainingjobhandler.go index ae789acb..e899df89 100644 --- a/api/internal/handler/ai/deletetrainingjobhandler.go +++ b/internal/handler/ai/deletetrainingjobhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/getcenterlisthandler.go b/internal/handler/ai/getcenterlisthandler.go similarity index 76% rename from api/internal/handler/ai/getcenterlisthandler.go rename to internal/handler/ai/getcenterlisthandler.go index 40a7dc01..3b76501f 100644 --- a/api/internal/handler/ai/getcenterlisthandler.go +++ b/internal/handler/ai/getcenterlisthandler.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func GetCenterListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/ai/getcenteroverviewhandler.go b/internal/handler/ai/getcenteroverviewhandler.go similarity index 76% rename from api/internal/handler/ai/getcenteroverviewhandler.go rename to internal/handler/ai/getcenteroverviewhandler.go index 84b97958..c4c982a5 100644 --- a/api/internal/handler/ai/getcenteroverviewhandler.go +++ b/internal/handler/ai/getcenteroverviewhandler.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func GetCenterOverviewHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/ai/getcenterqueueinghandler.go b/internal/handler/ai/getcenterqueueinghandler.go similarity index 76% rename from api/internal/handler/ai/getcenterqueueinghandler.go rename to internal/handler/ai/getcenterqueueinghandler.go index 6577b34c..3ec25d4f 100644 --- a/api/internal/handler/ai/getcenterqueueinghandler.go +++ b/internal/handler/ai/getcenterqueueinghandler.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func GetCenterQueueingHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/ai/getcentertasklisthandler.go b/internal/handler/ai/getcentertasklisthandler.go similarity index 76% rename from api/internal/handler/ai/getcentertasklisthandler.go rename to internal/handler/ai/getcentertasklisthandler.go index 37312b25..7da507cb 100644 --- a/api/internal/handler/ai/getcentertasklisthandler.go +++ b/internal/handler/ai/getcentertasklisthandler.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func GetCenterTaskListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/ai/getexporttasksofdatasethandler.go b/internal/handler/ai/getexporttasksofdatasethandler.go similarity index 75% rename from api/internal/handler/ai/getexporttasksofdatasethandler.go rename to internal/handler/ai/getexporttasksofdatasethandler.go index f500affd..0eba6777 100644 --- a/api/internal/handler/ai/getexporttasksofdatasethandler.go +++ b/internal/handler/ai/getexporttasksofdatasethandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/getexporttaskstatusofdatasethandler.go b/internal/handler/ai/getexporttaskstatusofdatasethandler.go similarity index 75% rename from api/internal/handler/ai/getexporttaskstatusofdatasethandler.go rename to internal/handler/ai/getexporttaskstatusofdatasethandler.go index eb41f009..8ab02472 100644 --- a/api/internal/handler/ai/getexporttaskstatusofdatasethandler.go +++ b/internal/handler/ai/getexporttaskstatusofdatasethandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/getlisttrainingjobshandler.go b/internal/handler/ai/getlisttrainingjobshandler.go similarity index 74% rename from api/internal/handler/ai/getlisttrainingjobshandler.go rename to internal/handler/ai/getlisttrainingjobshandler.go index 51002c46..01c468c5 100644 --- a/api/internal/handler/ai/getlisttrainingjobshandler.go +++ b/internal/handler/ai/getlisttrainingjobshandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/getnotebookstoragehandler.go b/internal/handler/ai/getnotebookstoragehandler.go similarity index 74% rename from api/internal/handler/ai/getnotebookstoragehandler.go rename to internal/handler/ai/getnotebookstoragehandler.go index 9d7de093..e6a87098 100644 --- a/api/internal/handler/ai/getnotebookstoragehandler.go +++ b/internal/handler/ai/getnotebookstoragehandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/getvisualizationjobhandler.go b/internal/handler/ai/getvisualizationjobhandler.go similarity index 74% rename from api/internal/handler/ai/getvisualizationjobhandler.go rename to internal/handler/ai/getvisualizationjobhandler.go index 629b9707..b11fb437 100644 --- a/api/internal/handler/ai/getvisualizationjobhandler.go +++ b/internal/handler/ai/getvisualizationjobhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/listalgorithmshandler.go b/internal/handler/ai/listalgorithmshandler.go similarity index 73% rename from api/internal/handler/ai/listalgorithmshandler.go rename to internal/handler/ai/listalgorithmshandler.go index 9e3b0035..458d22e7 100644 --- a/api/internal/handler/ai/listalgorithmshandler.go +++ b/internal/handler/ai/listalgorithmshandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/listclustershandler.go b/internal/handler/ai/listclustershandler.go similarity index 73% rename from api/internal/handler/ai/listclustershandler.go rename to internal/handler/ai/listclustershandler.go index 261d2512..50718484 100644 --- a/api/internal/handler/ai/listclustershandler.go +++ b/internal/handler/ai/listclustershandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/listdatasethandler.go b/internal/handler/ai/listdatasethandler.go similarity index 73% rename from api/internal/handler/ai/listdatasethandler.go rename to internal/handler/ai/listdatasethandler.go index bb134718..c0b6db56 100644 --- a/api/internal/handler/ai/listdatasethandler.go +++ b/internal/handler/ai/listdatasethandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/listimporthandler.go b/internal/handler/ai/listimporthandler.go similarity index 73% rename from api/internal/handler/ai/listimporthandler.go rename to internal/handler/ai/listimporthandler.go index 2faa5689..5969d4de 100644 --- a/api/internal/handler/ai/listimporthandler.go +++ b/internal/handler/ai/listimporthandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/listnotebookhandler.go b/internal/handler/ai/listnotebookhandler.go similarity index 73% rename from api/internal/handler/ai/listnotebookhandler.go rename to internal/handler/ai/listnotebookhandler.go index a8da51d5..0dcce8ad 100644 --- a/api/internal/handler/ai/listnotebookhandler.go +++ b/internal/handler/ai/listnotebookhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/listserviceshandler.go b/internal/handler/ai/listserviceshandler.go similarity index 73% rename from api/internal/handler/ai/listserviceshandler.go rename to internal/handler/ai/listserviceshandler.go index 0f2266a6..33dec620 100644 --- a/api/internal/handler/ai/listserviceshandler.go +++ b/internal/handler/ai/listserviceshandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/mountnotebookstoragehandler.go b/internal/handler/ai/mountnotebookstoragehandler.go similarity index 74% rename from api/internal/handler/ai/mountnotebookstoragehandler.go rename to internal/handler/ai/mountnotebookstoragehandler.go index 3b1ac77d..ca276779 100644 --- a/api/internal/handler/ai/mountnotebookstoragehandler.go +++ b/internal/handler/ai/mountnotebookstoragehandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/proxyapihandler.go b/internal/handler/ai/proxyapihandler.go similarity index 72% rename from api/internal/handler/ai/proxyapihandler.go rename to internal/handler/ai/proxyapihandler.go index b86ce9d2..d376a92b 100644 --- a/api/internal/handler/ai/proxyapihandler.go +++ b/internal/handler/ai/proxyapihandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/showalgorithmbyuuidhandler.go b/internal/handler/ai/showalgorithmbyuuidhandler.go similarity index 74% rename from api/internal/handler/ai/showalgorithmbyuuidhandler.go rename to internal/handler/ai/showalgorithmbyuuidhandler.go index 73bdde4f..02c14234 100644 --- a/api/internal/handler/ai/showalgorithmbyuuidhandler.go +++ b/internal/handler/ai/showalgorithmbyuuidhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/showservicehandler.go b/internal/handler/ai/showservicehandler.go similarity index 73% rename from api/internal/handler/ai/showservicehandler.go rename to internal/handler/ai/showservicehandler.go index c63b177f..3f994910 100644 --- a/api/internal/handler/ai/showservicehandler.go +++ b/internal/handler/ai/showservicehandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/startnotebookhandler.go b/internal/handler/ai/startnotebookhandler.go similarity index 73% rename from api/internal/handler/ai/startnotebookhandler.go rename to internal/handler/ai/startnotebookhandler.go index 39706c24..9b1cb044 100644 --- a/api/internal/handler/ai/startnotebookhandler.go +++ b/internal/handler/ai/startnotebookhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/ai/stopnotebookhandler.go b/internal/handler/ai/stopnotebookhandler.go similarity index 73% rename from api/internal/handler/ai/stopnotebookhandler.go rename to internal/handler/ai/stopnotebookhandler.go index 4fc89e79..7afe018f 100644 --- a/api/internal/handler/ai/stopnotebookhandler.go +++ b/internal/handler/ai/stopnotebookhandler.go @@ -2,9 +2,9 @@ package ai import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/ai" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/ai" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/cloudlisthandler.go b/internal/handler/cloud/cloudlisthandler.go similarity index 72% rename from api/internal/handler/cloud/cloudlisthandler.go rename to internal/handler/cloud/cloudlisthandler.go index 524dc511..3c8bcf8c 100644 --- a/api/internal/handler/cloud/cloudlisthandler.go +++ b/internal/handler/cloud/cloudlisthandler.go @@ -1,8 +1,8 @@ package cloud import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/clusterinfohandler.go b/internal/handler/cloud/clusterinfohandler.go similarity index 73% rename from api/internal/handler/cloud/clusterinfohandler.go rename to internal/handler/cloud/clusterinfohandler.go index 51522ea4..1838a89b 100644 --- a/api/internal/handler/cloud/clusterinfohandler.go +++ b/internal/handler/cloud/clusterinfohandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ClusterInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/cloud/commitgeneraltaskhandler.go b/internal/handler/cloud/commitgeneraltaskhandler.go similarity index 73% rename from api/internal/handler/cloud/commitgeneraltaskhandler.go rename to internal/handler/cloud/commitgeneraltaskhandler.go index 692b7d56..952d6ec0 100644 --- a/api/internal/handler/cloud/commitgeneraltaskhandler.go +++ b/internal/handler/cloud/commitgeneraltaskhandler.go @@ -2,9 +2,9 @@ package cloud import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/controllermetricshandler.go b/internal/handler/cloud/controllermetricshandler.go similarity index 74% rename from api/internal/handler/cloud/controllermetricshandler.go rename to internal/handler/cloud/controllermetricshandler.go index 83aa7595..7b071c15 100644 --- a/api/internal/handler/cloud/controllermetricshandler.go +++ b/internal/handler/cloud/controllermetricshandler.go @@ -2,9 +2,9 @@ package cloud import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/deleteclusterhandler.go b/internal/handler/cloud/deleteclusterhandler.go similarity index 73% rename from api/internal/handler/cloud/deleteclusterhandler.go rename to internal/handler/cloud/deleteclusterhandler.go index 7c27c7d0..042f7f49 100644 --- a/api/internal/handler/cloud/deleteclusterhandler.go +++ b/internal/handler/cloud/deleteclusterhandler.go @@ -2,9 +2,9 @@ package cloud import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/deleteyamlhandler.go b/internal/handler/cloud/deleteyamlhandler.go similarity index 72% rename from api/internal/handler/cloud/deleteyamlhandler.go rename to internal/handler/cloud/deleteyamlhandler.go index d4eb7b7b..1983a38e 100644 --- a/api/internal/handler/cloud/deleteyamlhandler.go +++ b/internal/handler/cloud/deleteyamlhandler.go @@ -2,9 +2,9 @@ package cloud import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/getclusterlisthandler.go b/internal/handler/cloud/getclusterlisthandler.go similarity index 73% rename from api/internal/handler/cloud/getclusterlisthandler.go rename to internal/handler/cloud/getclusterlisthandler.go index 0363e174..2499c617 100644 --- a/api/internal/handler/cloud/getclusterlisthandler.go +++ b/internal/handler/cloud/getclusterlisthandler.go @@ -2,9 +2,9 @@ package cloud import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/podlogshandler.go b/internal/handler/cloud/podlogshandler.go similarity index 72% rename from api/internal/handler/cloud/podlogshandler.go rename to internal/handler/cloud/podlogshandler.go index 78824344..7b2bc1cc 100644 --- a/api/internal/handler/cloud/podlogshandler.go +++ b/internal/handler/cloud/podlogshandler.go @@ -2,9 +2,9 @@ package cloud import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/cloud/registerclusterhandler.go b/internal/handler/cloud/registerclusterhandler.go similarity index 73% rename from api/internal/handler/cloud/registerclusterhandler.go rename to internal/handler/cloud/registerclusterhandler.go index 54deafb0..d65894f4 100644 --- a/api/internal/handler/cloud/registerclusterhandler.go +++ b/internal/handler/cloud/registerclusterhandler.go @@ -2,9 +2,9 @@ package cloud import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/centerresourceshandler.go b/internal/handler/core/centerresourceshandler.go similarity index 73% rename from api/internal/handler/core/centerresourceshandler.go rename to internal/handler/core/centerresourceshandler.go index 31aef57b..ba5dee9c 100644 --- a/api/internal/handler/core/centerresourceshandler.go +++ b/internal/handler/core/centerresourceshandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/committaskhandler.go b/internal/handler/core/committaskhandler.go similarity index 72% rename from api/internal/handler/core/committaskhandler.go rename to internal/handler/core/committaskhandler.go index b0642b7c..8de6d93b 100644 --- a/api/internal/handler/core/committaskhandler.go +++ b/internal/handler/core/committaskhandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/commitvmtaskhandler.go b/internal/handler/core/commitvmtaskhandler.go similarity index 73% rename from api/internal/handler/core/commitvmtaskhandler.go rename to internal/handler/core/commitvmtaskhandler.go index 7f8ab825..5eeecf1f 100644 --- a/api/internal/handler/core/commitvmtaskhandler.go +++ b/internal/handler/core/commitvmtaskhandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/counttaskstatushandler.go b/internal/handler/core/counttaskstatushandler.go similarity index 73% rename from api/internal/handler/core/counttaskstatushandler.go rename to internal/handler/core/counttaskstatushandler.go index 6f46929d..eec399d9 100644 --- a/api/internal/handler/core/counttaskstatushandler.go +++ b/internal/handler/core/counttaskstatushandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/deletetaskhandler.go b/internal/handler/core/deletetaskhandler.go similarity index 72% rename from api/internal/handler/core/deletetaskhandler.go rename to internal/handler/core/deletetaskhandler.go index b922b88b..d3f5243d 100644 --- a/api/internal/handler/core/deletetaskhandler.go +++ b/internal/handler/core/deletetaskhandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/getcomputilitystatisticshandler.go b/internal/handler/core/getcomputilitystatisticshandler.go similarity index 75% rename from api/internal/handler/core/getcomputilitystatisticshandler.go rename to internal/handler/core/getcomputilitystatisticshandler.go index 06183c83..90f93ef6 100644 --- a/api/internal/handler/core/getcomputilitystatisticshandler.go +++ b/internal/handler/core/getcomputilitystatisticshandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/getcomputingpowerhandler.go b/internal/handler/core/getcomputingpowerhandler.go similarity index 74% rename from api/internal/handler/core/getcomputingpowerhandler.go rename to internal/handler/core/getcomputingpowerhandler.go index 9f031ac0..7c975d5c 100644 --- a/api/internal/handler/core/getcomputingpowerhandler.go +++ b/internal/handler/core/getcomputingpowerhandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/getdomainresourcehandler.go b/internal/handler/core/getdomainresourcehandler.go similarity index 74% rename from api/internal/handler/core/getdomainresourcehandler.go rename to internal/handler/core/getdomainresourcehandler.go index 6ab31112..e5a4b657 100644 --- a/api/internal/handler/core/getdomainresourcehandler.go +++ b/internal/handler/core/getdomainresourcehandler.go @@ -4,8 +4,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func GetDomainResourceHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/getgeneralinfohandler.go b/internal/handler/core/getgeneralinfohandler.go similarity index 73% rename from api/internal/handler/core/getgeneralinfohandler.go rename to internal/handler/core/getgeneralinfohandler.go index 614e1954..d9d071c0 100644 --- a/api/internal/handler/core/getgeneralinfohandler.go +++ b/internal/handler/core/getgeneralinfohandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/getpublicflavorhandler.go b/internal/handler/core/getpublicflavorhandler.go similarity index 74% rename from api/internal/handler/core/getpublicflavorhandler.go rename to internal/handler/core/getpublicflavorhandler.go index 0fc1942a..1ef4833b 100644 --- a/api/internal/handler/core/getpublicflavorhandler.go +++ b/internal/handler/core/getpublicflavorhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetPublicFlavorHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/getpublicimagehandler.go b/internal/handler/core/getpublicimagehandler.go similarity index 74% rename from api/internal/handler/core/getpublicimagehandler.go rename to internal/handler/core/getpublicimagehandler.go index de2b1033..0cde040b 100644 --- a/api/internal/handler/core/getpublicimagehandler.go +++ b/internal/handler/core/getpublicimagehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetPublicImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/getpublicnetworkhandler.go b/internal/handler/core/getpublicnetworkhandler.go similarity index 74% rename from api/internal/handler/core/getpublicnetworkhandler.go rename to internal/handler/core/getpublicnetworkhandler.go index 7450740d..3f1dcb47 100644 --- a/api/internal/handler/core/getpublicnetworkhandler.go +++ b/internal/handler/core/getpublicnetworkhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetPublicNetworkHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/getregionhandler.go b/internal/handler/core/getregionhandler.go similarity index 72% rename from api/internal/handler/core/getregionhandler.go rename to internal/handler/core/getregionhandler.go index 3b884280..eab729d6 100644 --- a/api/internal/handler/core/getregionhandler.go +++ b/internal/handler/core/getregionhandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/getresourcepanelconfighandler.go b/internal/handler/core/getresourcepanelconfighandler.go similarity index 74% rename from api/internal/handler/core/getresourcepanelconfighandler.go rename to internal/handler/core/getresourcepanelconfighandler.go index bc84d068..57c8a6d9 100644 --- a/api/internal/handler/core/getresourcepanelconfighandler.go +++ b/internal/handler/core/getresourcepanelconfighandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/getscreencharthandler.go b/internal/handler/core/getscreencharthandler.go similarity index 73% rename from api/internal/handler/core/getscreencharthandler.go rename to internal/handler/core/getscreencharthandler.go index 64f7ea93..9dd30a38 100644 --- a/api/internal/handler/core/getscreencharthandler.go +++ b/internal/handler/core/getscreencharthandler.go @@ -4,8 +4,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func GetScreenChartHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/getscreeninfohandler.go b/internal/handler/core/getscreeninfohandler.go similarity index 73% rename from api/internal/handler/core/getscreeninfohandler.go rename to internal/handler/core/getscreeninfohandler.go index 65a28a6e..dfcf0c1d 100644 --- a/api/internal/handler/core/getscreeninfohandler.go +++ b/internal/handler/core/getscreeninfohandler.go @@ -4,8 +4,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func GetScreenInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/homeoverviewhandler.go b/internal/handler/core/homeoverviewhandler.go similarity index 73% rename from api/internal/handler/core/homeoverviewhandler.go rename to internal/handler/core/homeoverviewhandler.go index 3cf4ac59..d0de9a17 100644 --- a/api/internal/handler/core/homeoverviewhandler.go +++ b/internal/handler/core/homeoverviewhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func HomeOverviewHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/jobtotalhandler.go b/internal/handler/core/jobtotalhandler.go similarity index 72% rename from api/internal/handler/core/jobtotalhandler.go rename to internal/handler/core/jobtotalhandler.go index 0d59f6bc..8f718256 100644 --- a/api/internal/handler/core/jobtotalhandler.go +++ b/internal/handler/core/jobtotalhandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/listcenterhandler.go b/internal/handler/core/listcenterhandler.go similarity index 72% rename from api/internal/handler/core/listcenterhandler.go rename to internal/handler/core/listcenterhandler.go index 0c7b8c4f..84c6d21b 100644 --- a/api/internal/handler/core/listcenterhandler.go +++ b/internal/handler/core/listcenterhandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/listclusterhandler.go b/internal/handler/core/listclusterhandler.go similarity index 73% rename from api/internal/handler/core/listclusterhandler.go rename to internal/handler/core/listclusterhandler.go index 96fa7279..dc45e38d 100644 --- a/api/internal/handler/core/listclusterhandler.go +++ b/internal/handler/core/listclusterhandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/listnoticehandler.go b/internal/handler/core/listnoticehandler.go similarity index 73% rename from api/internal/handler/core/listnoticehandler.go rename to internal/handler/core/listnoticehandler.go index 9df28753..146b245b 100644 --- a/api/internal/handler/core/listnoticehandler.go +++ b/internal/handler/core/listnoticehandler.go @@ -1,12 +1,12 @@ package core import ( - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func ListNoticeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/listregionhandler.go b/internal/handler/core/listregionhandler.go similarity index 72% rename from api/internal/handler/core/listregionhandler.go rename to internal/handler/core/listregionhandler.go index 80d60ef8..9b3bcc9d 100644 --- a/api/internal/handler/core/listregionhandler.go +++ b/internal/handler/core/listregionhandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/metricshandler.go b/internal/handler/core/metricshandler.go similarity index 76% rename from api/internal/handler/core/metricshandler.go rename to internal/handler/core/metricshandler.go index bec78bfc..6ac6babd 100644 --- a/api/internal/handler/core/metricshandler.go +++ b/internal/handler/core/metricshandler.go @@ -2,7 +2,7 @@ package core import ( "github.com/prometheus/client_golang/prometheus/promhttp" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "net/http" ) diff --git a/api/internal/handler/core/nodeassetshandler.go b/internal/handler/core/nodeassetshandler.go similarity index 72% rename from api/internal/handler/core/nodeassetshandler.go rename to internal/handler/core/nodeassetshandler.go index 9117fb16..2ec21a18 100644 --- a/api/internal/handler/core/nodeassetshandler.go +++ b/internal/handler/core/nodeassetshandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/pagelisttaskhandler.go b/internal/handler/core/pagelisttaskhandler.go similarity index 73% rename from api/internal/handler/core/pagelisttaskhandler.go rename to internal/handler/core/pagelisttaskhandler.go index 42912e04..6c0ce4f9 100644 --- a/api/internal/handler/core/pagelisttaskhandler.go +++ b/internal/handler/core/pagelisttaskhandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/participantlisthandler.go b/internal/handler/core/participantlisthandler.go similarity index 73% rename from api/internal/handler/core/participantlisthandler.go rename to internal/handler/core/participantlisthandler.go index c6795eef..e0680c26 100644 --- a/api/internal/handler/core/participantlisthandler.go +++ b/internal/handler/core/participantlisthandler.go @@ -1,8 +1,8 @@ package core import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/pulltaskinfohandler.go b/internal/handler/core/pulltaskinfohandler.go similarity index 74% rename from api/internal/handler/core/pulltaskinfohandler.go rename to internal/handler/core/pulltaskinfohandler.go index ed98c682..66494e9c 100644 --- a/api/internal/handler/core/pulltaskinfohandler.go +++ b/internal/handler/core/pulltaskinfohandler.go @@ -1,12 +1,12 @@ package core import ( - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func PullTaskInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/pushnoticehandler.go b/internal/handler/core/pushnoticehandler.go similarity index 73% rename from api/internal/handler/core/pushnoticehandler.go rename to internal/handler/core/pushnoticehandler.go index f9205846..91f4dad7 100644 --- a/api/internal/handler/core/pushnoticehandler.go +++ b/internal/handler/core/pushnoticehandler.go @@ -1,12 +1,12 @@ package core import ( - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func PushNoticeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/pushresourceinfohandler.go b/internal/handler/core/pushresourceinfohandler.go similarity index 74% rename from api/internal/handler/core/pushresourceinfohandler.go rename to internal/handler/core/pushresourceinfohandler.go index 1212a898..cd70488a 100644 --- a/api/internal/handler/core/pushresourceinfohandler.go +++ b/internal/handler/core/pushresourceinfohandler.go @@ -1,12 +1,12 @@ package core import ( - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func PushResourceInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/pushtaskinfohandler.go b/internal/handler/core/pushtaskinfohandler.go similarity index 73% rename from api/internal/handler/core/pushtaskinfohandler.go rename to internal/handler/core/pushtaskinfohandler.go index fa7f5e91..01d8648d 100644 --- a/api/internal/handler/core/pushtaskinfohandler.go +++ b/internal/handler/core/pushtaskinfohandler.go @@ -1,12 +1,12 @@ package core import ( - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func PushTaskInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/putresourcepanelconfighandler.go b/internal/handler/core/putresourcepanelconfighandler.go similarity index 74% rename from api/internal/handler/core/putresourcepanelconfighandler.go rename to internal/handler/core/putresourcepanelconfighandler.go index 0700c6cd..f607ed59 100644 --- a/api/internal/handler/core/putresourcepanelconfighandler.go +++ b/internal/handler/core/putresourcepanelconfighandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/scheduletaskbyyamlhandler.go b/internal/handler/core/scheduletaskbyyamlhandler.go similarity index 81% rename from api/internal/handler/core/scheduletaskbyyamlhandler.go rename to internal/handler/core/scheduletaskbyyamlhandler.go index c3447137..038e0ed4 100644 --- a/api/internal/handler/core/scheduletaskbyyamlhandler.go +++ b/internal/handler/core/scheduletaskbyyamlhandler.go @@ -6,9 +6,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ScheduleTaskByYamlHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/core/syncclusterloadhandler.go b/internal/handler/core/syncclusterloadhandler.go similarity index 73% rename from api/internal/handler/core/syncclusterloadhandler.go rename to internal/handler/core/syncclusterloadhandler.go index da5f6f1b..bfa7d298 100644 --- a/api/internal/handler/core/syncclusterloadhandler.go +++ b/internal/handler/core/syncclusterloadhandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/taskdetailshandler.go b/internal/handler/core/taskdetailshandler.go similarity index 72% rename from api/internal/handler/core/taskdetailshandler.go rename to internal/handler/core/taskdetailshandler.go index cc3ac448..e3b7a85b 100644 --- a/api/internal/handler/core/taskdetailshandler.go +++ b/internal/handler/core/taskdetailshandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/core/tasklisthandler.go b/internal/handler/core/tasklisthandler.go similarity index 72% rename from api/internal/handler/core/tasklisthandler.go rename to internal/handler/core/tasklisthandler.go index 3a16cb02..70e1fe96 100644 --- a/api/internal/handler/core/tasklisthandler.go +++ b/internal/handler/core/tasklisthandler.go @@ -2,9 +2,9 @@ package core import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/core" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/core" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/adddicthandler.go b/internal/handler/dictionary/adddicthandler.go similarity index 72% rename from api/internal/handler/dictionary/adddicthandler.go rename to internal/handler/dictionary/adddicthandler.go index f97da1bb..36e8a1b7 100644 --- a/api/internal/handler/dictionary/adddicthandler.go +++ b/internal/handler/dictionary/adddicthandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/adddictitemhandler.go b/internal/handler/dictionary/adddictitemhandler.go similarity index 73% rename from api/internal/handler/dictionary/adddictitemhandler.go rename to internal/handler/dictionary/adddictitemhandler.go index 44dbe883..9d27207a 100644 --- a/api/internal/handler/dictionary/adddictitemhandler.go +++ b/internal/handler/dictionary/adddictitemhandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/deletedicthandler.go b/internal/handler/dictionary/deletedicthandler.go similarity index 72% rename from api/internal/handler/dictionary/deletedicthandler.go rename to internal/handler/dictionary/deletedicthandler.go index e65e54c2..6425f68b 100644 --- a/api/internal/handler/dictionary/deletedicthandler.go +++ b/internal/handler/dictionary/deletedicthandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/deletedictitemhandler.go b/internal/handler/dictionary/deletedictitemhandler.go similarity index 73% rename from api/internal/handler/dictionary/deletedictitemhandler.go rename to internal/handler/dictionary/deletedictitemhandler.go index 65139c09..74574abc 100644 --- a/api/internal/handler/dictionary/deletedictitemhandler.go +++ b/internal/handler/dictionary/deletedictitemhandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/editdicthandler.go b/internal/handler/dictionary/editdicthandler.go similarity index 72% rename from api/internal/handler/dictionary/editdicthandler.go rename to internal/handler/dictionary/editdicthandler.go index fe0ef391..f707d1b2 100644 --- a/api/internal/handler/dictionary/editdicthandler.go +++ b/internal/handler/dictionary/editdicthandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/editdictitemhandler.go b/internal/handler/dictionary/editdictitemhandler.go similarity index 73% rename from api/internal/handler/dictionary/editdictitemhandler.go rename to internal/handler/dictionary/editdictitemhandler.go index 295e9095..e2ba505a 100644 --- a/api/internal/handler/dictionary/editdictitemhandler.go +++ b/internal/handler/dictionary/editdictitemhandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/getdicthandler.go b/internal/handler/dictionary/getdicthandler.go similarity index 72% rename from api/internal/handler/dictionary/getdicthandler.go rename to internal/handler/dictionary/getdicthandler.go index b1b56d0d..26c6e18f 100644 --- a/api/internal/handler/dictionary/getdicthandler.go +++ b/internal/handler/dictionary/getdicthandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/getdictitemhandler.go b/internal/handler/dictionary/getdictitemhandler.go similarity index 72% rename from api/internal/handler/dictionary/getdictitemhandler.go rename to internal/handler/dictionary/getdictitemhandler.go index bbfe113f..2cbbce74 100644 --- a/api/internal/handler/dictionary/getdictitemhandler.go +++ b/internal/handler/dictionary/getdictitemhandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/listdicthandler.go b/internal/handler/dictionary/listdicthandler.go similarity index 72% rename from api/internal/handler/dictionary/listdicthandler.go rename to internal/handler/dictionary/listdicthandler.go index 72dac7c8..31e73b67 100644 --- a/api/internal/handler/dictionary/listdicthandler.go +++ b/internal/handler/dictionary/listdicthandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/listdictitembycodehandler.go b/internal/handler/dictionary/listdictitembycodehandler.go similarity index 73% rename from api/internal/handler/dictionary/listdictitembycodehandler.go rename to internal/handler/dictionary/listdictitembycodehandler.go index c6400185..7b219cb6 100644 --- a/api/internal/handler/dictionary/listdictitembycodehandler.go +++ b/internal/handler/dictionary/listdictitembycodehandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/dictionary/listdictitemhandler.go b/internal/handler/dictionary/listdictitemhandler.go similarity index 73% rename from api/internal/handler/dictionary/listdictitemhandler.go rename to internal/handler/dictionary/listdictitemhandler.go index 16df182d..d4099112 100644 --- a/api/internal/handler/dictionary/listdictitemhandler.go +++ b/internal/handler/dictionary/listdictitemhandler.go @@ -2,9 +2,9 @@ package dictionary import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/dictionary" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/dictionary" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/hpc/adaptersummaryhandler.go b/internal/handler/hpc/adaptersummaryhandler.go similarity index 74% rename from api/internal/handler/hpc/adaptersummaryhandler.go rename to internal/handler/hpc/adaptersummaryhandler.go index f5178829..c78aa3ad 100644 --- a/api/internal/handler/hpc/adaptersummaryhandler.go +++ b/internal/handler/hpc/adaptersummaryhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/hpc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/hpc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func AdapterSummaryHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/hpc/commithpctaskhandler.go b/internal/handler/hpc/commithpctaskhandler.go similarity index 73% rename from api/internal/handler/hpc/commithpctaskhandler.go rename to internal/handler/hpc/commithpctaskhandler.go index 7408b559..ba7d6da8 100644 --- a/api/internal/handler/hpc/commithpctaskhandler.go +++ b/internal/handler/hpc/commithpctaskhandler.go @@ -2,9 +2,9 @@ package hpc import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/hpc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/hpc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/hpc/jobhandler.go b/internal/handler/hpc/jobhandler.go similarity index 72% rename from api/internal/handler/hpc/jobhandler.go rename to internal/handler/hpc/jobhandler.go index ce1725c1..18c4185a 100644 --- a/api/internal/handler/hpc/jobhandler.go +++ b/internal/handler/hpc/jobhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/hpc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/hpc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func JobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/hpc/overviewhandler.go b/internal/handler/hpc/overviewhandler.go similarity index 73% rename from api/internal/handler/hpc/overviewhandler.go rename to internal/handler/hpc/overviewhandler.go index 3cb75018..3bab57d9 100644 --- a/api/internal/handler/hpc/overviewhandler.go +++ b/internal/handler/hpc/overviewhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/hpc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/hpc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func OverViewHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/hpc/queueassetshandler.go b/internal/handler/hpc/queueassetshandler.go similarity index 73% rename from api/internal/handler/hpc/queueassetshandler.go rename to internal/handler/hpc/queueassetshandler.go index 135d88bd..9a803a8e 100644 --- a/api/internal/handler/hpc/queueassetshandler.go +++ b/internal/handler/hpc/queueassetshandler.go @@ -1,8 +1,8 @@ package hpc import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/hpc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/hpc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/hpc/resourcehandler.go b/internal/handler/hpc/resourcehandler.go similarity index 73% rename from api/internal/handler/hpc/resourcehandler.go rename to internal/handler/hpc/resourcehandler.go index 2f321824..754586f7 100644 --- a/api/internal/handler/hpc/resourcehandler.go +++ b/internal/handler/hpc/resourcehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/hpc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/hpc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ResourceHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/inference/imageinferencehandler.go b/internal/handler/inference/imageinferencehandler.go similarity index 73% rename from api/internal/handler/inference/imageinferencehandler.go rename to internal/handler/inference/imageinferencehandler.go index 04ae9f78..aa50db42 100644 --- a/api/internal/handler/inference/imageinferencehandler.go +++ b/internal/handler/inference/imageinferencehandler.go @@ -2,9 +2,9 @@ package inference import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/inference" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/inference" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/inference/inferencetaskdetailhandler.go b/internal/handler/inference/inferencetaskdetailhandler.go similarity index 74% rename from api/internal/handler/inference/inferencetaskdetailhandler.go rename to internal/handler/inference/inferencetaskdetailhandler.go index a1f5a30f..0575572b 100644 --- a/api/internal/handler/inference/inferencetaskdetailhandler.go +++ b/internal/handler/inference/inferencetaskdetailhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/inference" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/inference" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func InferenceTaskDetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/inference/modelnamesbytypehandler.go b/internal/handler/inference/modelnamesbytypehandler.go similarity index 73% rename from api/internal/handler/inference/modelnamesbytypehandler.go rename to internal/handler/inference/modelnamesbytypehandler.go index 86f1e339..022c9ce9 100644 --- a/api/internal/handler/inference/modelnamesbytypehandler.go +++ b/internal/handler/inference/modelnamesbytypehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/inference" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/inference" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" ) diff --git a/api/internal/handler/inference/modeltypeshandler.go b/internal/handler/inference/modeltypeshandler.go similarity index 72% rename from api/internal/handler/inference/modeltypeshandler.go rename to internal/handler/inference/modeltypeshandler.go index 1ee33432..f42697a9 100644 --- a/api/internal/handler/inference/modeltypeshandler.go +++ b/internal/handler/inference/modeltypeshandler.go @@ -1,8 +1,8 @@ package inference import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/inference" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/inference" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/inference/texttotextinferencehandler.go b/internal/handler/inference/texttotextinferencehandler.go similarity index 74% rename from api/internal/handler/inference/texttotextinferencehandler.go rename to internal/handler/inference/texttotextinferencehandler.go index d291d60e..586f2876 100644 --- a/api/internal/handler/inference/texttotextinferencehandler.go +++ b/internal/handler/inference/texttotextinferencehandler.go @@ -2,9 +2,9 @@ package inference import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/inference" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/inference" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/monitoring/adapterinfohandler.go b/internal/handler/monitoring/adapterinfohandler.go similarity index 73% rename from api/internal/handler/monitoring/adapterinfohandler.go rename to internal/handler/monitoring/adapterinfohandler.go index 4869213f..89661f62 100644 --- a/api/internal/handler/monitoring/adapterinfohandler.go +++ b/internal/handler/monitoring/adapterinfohandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func AdapterInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/alertlisthandler.go b/internal/handler/monitoring/alertlisthandler.go similarity index 72% rename from api/internal/handler/monitoring/alertlisthandler.go rename to internal/handler/monitoring/alertlisthandler.go index 227e45cb..571a6b3c 100644 --- a/api/internal/handler/monitoring/alertlisthandler.go +++ b/internal/handler/monitoring/alertlisthandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func AlertListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/alertruleshandler.go b/internal/handler/monitoring/alertruleshandler.go similarity index 73% rename from api/internal/handler/monitoring/alertruleshandler.go rename to internal/handler/monitoring/alertruleshandler.go index dd7c8607..aa2c9b07 100644 --- a/api/internal/handler/monitoring/alertruleshandler.go +++ b/internal/handler/monitoring/alertruleshandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func AlertRulesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/clustersloadhandler.go b/internal/handler/monitoring/clustersloadhandler.go similarity index 73% rename from api/internal/handler/monitoring/clustersloadhandler.go rename to internal/handler/monitoring/clustersloadhandler.go index 6758c46a..b560cb98 100644 --- a/api/internal/handler/monitoring/clustersloadhandler.go +++ b/internal/handler/monitoring/clustersloadhandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ClustersLoadHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/createalertrulehandler.go b/internal/handler/monitoring/createalertrulehandler.go similarity index 73% rename from api/internal/handler/monitoring/createalertrulehandler.go rename to internal/handler/monitoring/createalertrulehandler.go index 292ca021..df1b0f03 100644 --- a/api/internal/handler/monitoring/createalertrulehandler.go +++ b/internal/handler/monitoring/createalertrulehandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateAlertRuleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/deletealertrulehandler.go b/internal/handler/monitoring/deletealertrulehandler.go similarity index 73% rename from api/internal/handler/monitoring/deletealertrulehandler.go rename to internal/handler/monitoring/deletealertrulehandler.go index e7593a92..d3b50f14 100644 --- a/api/internal/handler/monitoring/deletealertrulehandler.go +++ b/internal/handler/monitoring/deletealertrulehandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteAlertRuleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/nodesloadtophandler.go b/internal/handler/monitoring/nodesloadtophandler.go similarity index 73% rename from api/internal/handler/monitoring/nodesloadtophandler.go rename to internal/handler/monitoring/nodesloadtophandler.go index 81630285..da11e559 100644 --- a/api/internal/handler/monitoring/nodesloadtophandler.go +++ b/internal/handler/monitoring/nodesloadtophandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func NodesLoadTopHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/schedulesituationhandler.go b/internal/handler/monitoring/schedulesituationhandler.go similarity index 73% rename from api/internal/handler/monitoring/schedulesituationhandler.go rename to internal/handler/monitoring/schedulesituationhandler.go index 4677a111..452f1d01 100644 --- a/api/internal/handler/monitoring/schedulesituationhandler.go +++ b/internal/handler/monitoring/schedulesituationhandler.go @@ -4,8 +4,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func ScheduleSituationHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/syncclusteralerthandler.go b/internal/handler/monitoring/syncclusteralerthandler.go similarity index 73% rename from api/internal/handler/monitoring/syncclusteralerthandler.go rename to internal/handler/monitoring/syncclusteralerthandler.go index 8aac80f6..a963a0dc 100644 --- a/api/internal/handler/monitoring/syncclusteralerthandler.go +++ b/internal/handler/monitoring/syncclusteralerthandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func SyncClusterAlertHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/monitoring/tasknumhandler.go b/internal/handler/monitoring/tasknumhandler.go similarity index 72% rename from api/internal/handler/monitoring/tasknumhandler.go rename to internal/handler/monitoring/tasknumhandler.go index 4b7751bc..384e494e 100644 --- a/api/internal/handler/monitoring/tasknumhandler.go +++ b/internal/handler/monitoring/tasknumhandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/monitoring" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/monitoring" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func TaskNumHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/routes.go b/internal/handler/routes.go similarity index 96% rename from api/internal/handler/routes.go rename to internal/handler/routes.go index c3315879..3693a59c 100644 --- a/api/internal/handler/routes.go +++ b/internal/handler/routes.go @@ -4,19 +4,19 @@ package handler import ( "net/http" - adapters "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/adapters" - ai "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/ai" - cloud "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/cloud" - core "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/core" - dictionary "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/dictionary" - hpc "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/hpc" - inference "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/inference" - monitoring "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/monitoring" - schedule "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/schedule" - storage "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/storage" - storelink "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/storelink" - vm "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + adapters "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/adapters" + ai "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/ai" + cloud "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/cloud" + core "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/core" + dictionary "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/dictionary" + hpc "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/hpc" + inference "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/inference" + monitoring "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/monitoring" + schedule "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/schedule" + storage "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/storage" + storelink "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/storelink" + vm "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "github.com/zeromicro/go-zero/rest" ) diff --git a/api/internal/handler/schedule/downloadalgothmcodehandler.go b/internal/handler/schedule/downloadalgothmcodehandler.go similarity index 74% rename from api/internal/handler/schedule/downloadalgothmcodehandler.go rename to internal/handler/schedule/downloadalgothmcodehandler.go index e70d85ea..a7843511 100644 --- a/api/internal/handler/schedule/downloadalgothmcodehandler.go +++ b/internal/handler/schedule/downloadalgothmcodehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" ) diff --git a/api/internal/handler/schedule/getclusterbalancebyidhandler.go b/internal/handler/schedule/getclusterbalancebyidhandler.go similarity index 74% rename from api/internal/handler/schedule/getclusterbalancebyidhandler.go rename to internal/handler/schedule/getclusterbalancebyidhandler.go index 27e273f4..35daeb17 100644 --- a/api/internal/handler/schedule/getclusterbalancebyidhandler.go +++ b/internal/handler/schedule/getclusterbalancebyidhandler.go @@ -5,9 +5,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetClusterBalanceByIdHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/schedule/getcomputecardsbyclusterhandler.go b/internal/handler/schedule/getcomputecardsbyclusterhandler.go similarity index 75% rename from api/internal/handler/schedule/getcomputecardsbyclusterhandler.go rename to internal/handler/schedule/getcomputecardsbyclusterhandler.go index 2c4393e1..ca42e4f2 100644 --- a/api/internal/handler/schedule/getcomputecardsbyclusterhandler.go +++ b/internal/handler/schedule/getcomputecardsbyclusterhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetComputeCardsByClusterHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/schedule/schedulegetaijoblogloghandler.go b/internal/handler/schedule/schedulegetaijoblogloghandler.go similarity index 74% rename from api/internal/handler/schedule/schedulegetaijoblogloghandler.go rename to internal/handler/schedule/schedulegetaijoblogloghandler.go index 9eecc66d..e9eb0099 100644 --- a/api/internal/handler/schedule/schedulegetaijoblogloghandler.go +++ b/internal/handler/schedule/schedulegetaijoblogloghandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ScheduleGetAiJobLogLogHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/schedule/schedulegetairesourcetypeshandler.go b/internal/handler/schedule/schedulegetairesourcetypeshandler.go similarity index 75% rename from api/internal/handler/schedule/schedulegetairesourcetypeshandler.go rename to internal/handler/schedule/schedulegetairesourcetypeshandler.go index 82b876ae..751d7c96 100644 --- a/api/internal/handler/schedule/schedulegetairesourcetypeshandler.go +++ b/internal/handler/schedule/schedulegetairesourcetypeshandler.go @@ -1,8 +1,8 @@ package schedule import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/schedule/schedulegetaitasktypeshandler.go b/internal/handler/schedule/schedulegetaitasktypeshandler.go similarity index 74% rename from api/internal/handler/schedule/schedulegetaitasktypeshandler.go rename to internal/handler/schedule/schedulegetaitasktypeshandler.go index db45b9c5..9ed751be 100644 --- a/api/internal/handler/schedule/schedulegetaitasktypeshandler.go +++ b/internal/handler/schedule/schedulegetaitasktypeshandler.go @@ -1,8 +1,8 @@ package schedule import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/schedule/schedulegetalgorithmshandler.go b/internal/handler/schedule/schedulegetalgorithmshandler.go similarity index 74% rename from api/internal/handler/schedule/schedulegetalgorithmshandler.go rename to internal/handler/schedule/schedulegetalgorithmshandler.go index a1f28eab..02b6e0ec 100644 --- a/api/internal/handler/schedule/schedulegetalgorithmshandler.go +++ b/internal/handler/schedule/schedulegetalgorithmshandler.go @@ -2,9 +2,9 @@ package schedule import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/schedule/schedulegetdatasetshandler.go b/internal/handler/schedule/schedulegetdatasetshandler.go similarity index 73% rename from api/internal/handler/schedule/schedulegetdatasetshandler.go rename to internal/handler/schedule/schedulegetdatasetshandler.go index 6dae2970..2bfdc710 100644 --- a/api/internal/handler/schedule/schedulegetdatasetshandler.go +++ b/internal/handler/schedule/schedulegetdatasetshandler.go @@ -2,9 +2,9 @@ package schedule import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/schedule/schedulegetoverviewhandler.go b/internal/handler/schedule/schedulegetoverviewhandler.go similarity index 76% rename from api/internal/handler/schedule/schedulegetoverviewhandler.go rename to internal/handler/schedule/schedulegetoverviewhandler.go index bbf66cc7..8d6a4878 100644 --- a/api/internal/handler/schedule/schedulegetoverviewhandler.go +++ b/internal/handler/schedule/schedulegetoverviewhandler.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func ScheduleGetOverviewHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/schedule/schedulegetstrategyhandler.go b/internal/handler/schedule/schedulegetstrategyhandler.go similarity index 74% rename from api/internal/handler/schedule/schedulegetstrategyhandler.go rename to internal/handler/schedule/schedulegetstrategyhandler.go index 4771495c..31422f56 100644 --- a/api/internal/handler/schedule/schedulegetstrategyhandler.go +++ b/internal/handler/schedule/schedulegetstrategyhandler.go @@ -1,8 +1,8 @@ package schedule import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/schedule/schedulesubmithandler.go b/internal/handler/schedule/schedulesubmithandler.go similarity index 73% rename from api/internal/handler/schedule/schedulesubmithandler.go rename to internal/handler/schedule/schedulesubmithandler.go index d6e2a538..81e3acff 100644 --- a/api/internal/handler/schedule/schedulesubmithandler.go +++ b/internal/handler/schedule/schedulesubmithandler.go @@ -2,9 +2,9 @@ package schedule import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/schedule/uploadalgothmcodehandler.go b/internal/handler/schedule/uploadalgothmcodehandler.go similarity index 74% rename from api/internal/handler/schedule/uploadalgothmcodehandler.go rename to internal/handler/schedule/uploadalgothmcodehandler.go index 681715e2..af13a9c4 100644 --- a/api/internal/handler/schedule/uploadalgothmcodehandler.go +++ b/internal/handler/schedule/uploadalgothmcodehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/schedule" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/schedule" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" ) diff --git a/api/internal/handler/storage/dailypowerscreenhandler.go b/internal/handler/storage/dailypowerscreenhandler.go similarity index 73% rename from api/internal/handler/storage/dailypowerscreenhandler.go rename to internal/handler/storage/dailypowerscreenhandler.go index a71c2331..9c28d735 100644 --- a/api/internal/handler/storage/dailypowerscreenhandler.go +++ b/internal/handler/storage/dailypowerscreenhandler.go @@ -4,8 +4,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storage" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storage" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func DailyPowerScreenHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storage/percentercomputerpowershandler.go b/internal/handler/storage/percentercomputerpowershandler.go similarity index 74% rename from api/internal/handler/storage/percentercomputerpowershandler.go rename to internal/handler/storage/percentercomputerpowershandler.go index b21a330b..f81dc9f8 100644 --- a/api/internal/handler/storage/percentercomputerpowershandler.go +++ b/internal/handler/storage/percentercomputerpowershandler.go @@ -4,8 +4,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storage" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storage" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) func PerCenterComputerPowersHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storage/screenstoragehandler.go b/internal/handler/storage/screenstoragehandler.go similarity index 73% rename from api/internal/handler/storage/screenstoragehandler.go rename to internal/handler/storage/screenstoragehandler.go index 2a6d8901..cebffc15 100644 --- a/api/internal/handler/storage/screenstoragehandler.go +++ b/internal/handler/storage/screenstoragehandler.go @@ -2,9 +2,9 @@ package storage import ( "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storage" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storage" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "net/http" ) diff --git a/api/internal/handler/storelink/deletelinkimagehandler.go b/internal/handler/storelink/deletelinkimagehandler.go similarity index 74% rename from api/internal/handler/storelink/deletelinkimagehandler.go rename to internal/handler/storelink/deletelinkimagehandler.go index fc56fe9d..90a1a197 100644 --- a/api/internal/handler/storelink/deletelinkimagehandler.go +++ b/internal/handler/storelink/deletelinkimagehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteLinkImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storelink/deletelinktaskhandler.go b/internal/handler/storelink/deletelinktaskhandler.go similarity index 73% rename from api/internal/handler/storelink/deletelinktaskhandler.go rename to internal/handler/storelink/deletelinktaskhandler.go index 536b3ae9..060fa979 100644 --- a/api/internal/handler/storelink/deletelinktaskhandler.go +++ b/internal/handler/storelink/deletelinktaskhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteLinkTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storelink/getaispecshandler.go b/internal/handler/storelink/getaispecshandler.go similarity index 73% rename from api/internal/handler/storelink/getaispecshandler.go rename to internal/handler/storelink/getaispecshandler.go index 8e97d294..d0a1d148 100644 --- a/api/internal/handler/storelink/getaispecshandler.go +++ b/internal/handler/storelink/getaispecshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetAISpecsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storelink/getlinkimagelisthandler.go b/internal/handler/storelink/getlinkimagelisthandler.go similarity index 74% rename from api/internal/handler/storelink/getlinkimagelisthandler.go rename to internal/handler/storelink/getlinkimagelisthandler.go index b83198f6..a2b922eb 100644 --- a/api/internal/handler/storelink/getlinkimagelisthandler.go +++ b/internal/handler/storelink/getlinkimagelisthandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetLinkImageListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storelink/getlinktaskhandler.go b/internal/handler/storelink/getlinktaskhandler.go similarity index 73% rename from api/internal/handler/storelink/getlinktaskhandler.go rename to internal/handler/storelink/getlinktaskhandler.go index af477e23..f6c915fe 100644 --- a/api/internal/handler/storelink/getlinktaskhandler.go +++ b/internal/handler/storelink/getlinktaskhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetLinkTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storelink/getparticipantshandler.go b/internal/handler/storelink/getparticipantshandler.go similarity index 74% rename from api/internal/handler/storelink/getparticipantshandler.go rename to internal/handler/storelink/getparticipantshandler.go index 07c88f83..2ecb8dda 100644 --- a/api/internal/handler/storelink/getparticipantshandler.go +++ b/internal/handler/storelink/getparticipantshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetParticipantsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storelink/submitlinktaskhandler.go b/internal/handler/storelink/submitlinktaskhandler.go similarity index 73% rename from api/internal/handler/storelink/submitlinktaskhandler.go rename to internal/handler/storelink/submitlinktaskhandler.go index 5da13f4b..767fba4a 100644 --- a/api/internal/handler/storelink/submitlinktaskhandler.go +++ b/internal/handler/storelink/submitlinktaskhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func SubmitLinkTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/storelink/uploadlinkimagehandler.go b/internal/handler/storelink/uploadlinkimagehandler.go similarity index 74% rename from api/internal/handler/storelink/uploadlinkimagehandler.go rename to internal/handler/storelink/uploadlinkimagehandler.go index 9adec263..9a456480 100644 --- a/api/internal/handler/storelink/uploadlinkimagehandler.go +++ b/internal/handler/storelink/uploadlinkimagehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/storelink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storelink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UploadLinkImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/addsecuritygrouptoserverhandler.go b/internal/handler/vm/addsecuritygrouptoserverhandler.go similarity index 75% rename from api/internal/handler/vm/addsecuritygrouptoserverhandler.go rename to internal/handler/vm/addsecuritygrouptoserverhandler.go index 86553cbf..d6256a60 100644 --- a/api/internal/handler/vm/addsecuritygrouptoserverhandler.go +++ b/internal/handler/vm/addsecuritygrouptoserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func AddSecurityGroupToServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/bulkcreatenetworkshandler.go b/internal/handler/vm/bulkcreatenetworkshandler.go similarity index 74% rename from api/internal/handler/vm/bulkcreatenetworkshandler.go rename to internal/handler/vm/bulkcreatenetworkshandler.go index 84cad5c6..61fb4cb1 100644 --- a/api/internal/handler/vm/bulkcreatenetworkshandler.go +++ b/internal/handler/vm/bulkcreatenetworkshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func BulkCreateNetworksHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/changeadministrativepasswordhandler.go b/internal/handler/vm/changeadministrativepasswordhandler.go similarity index 75% rename from api/internal/handler/vm/changeadministrativepasswordhandler.go rename to internal/handler/vm/changeadministrativepasswordhandler.go index ecf1c6bc..99cdf65f 100644 --- a/api/internal/handler/vm/changeadministrativepasswordhandler.go +++ b/internal/handler/vm/changeadministrativepasswordhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ChangeAdministrativePasswordHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createfirewallgrouphandler.go b/internal/handler/vm/createfirewallgrouphandler.go similarity index 74% rename from api/internal/handler/vm/createfirewallgrouphandler.go rename to internal/handler/vm/createfirewallgrouphandler.go index f6f5b3a1..9d04bd54 100644 --- a/api/internal/handler/vm/createfirewallgrouphandler.go +++ b/internal/handler/vm/createfirewallgrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateFirewallGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createfirewallpolicyhandler.go b/internal/handler/vm/createfirewallpolicyhandler.go similarity index 74% rename from api/internal/handler/vm/createfirewallpolicyhandler.go rename to internal/handler/vm/createfirewallpolicyhandler.go index 77d8d1cf..132d8cc6 100644 --- a/api/internal/handler/vm/createfirewallpolicyhandler.go +++ b/internal/handler/vm/createfirewallpolicyhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateFirewallPolicyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createfirewallrulehandler.go b/internal/handler/vm/createfirewallrulehandler.go similarity index 74% rename from api/internal/handler/vm/createfirewallrulehandler.go rename to internal/handler/vm/createfirewallrulehandler.go index 3995c08a..be2e0d1e 100644 --- a/api/internal/handler/vm/createfirewallrulehandler.go +++ b/internal/handler/vm/createfirewallrulehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateFirewallRuleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createflavorhandler.go b/internal/handler/vm/createflavorhandler.go similarity index 73% rename from api/internal/handler/vm/createflavorhandler.go rename to internal/handler/vm/createflavorhandler.go index f32dc8f2..14805f12 100644 --- a/api/internal/handler/vm/createflavorhandler.go +++ b/internal/handler/vm/createflavorhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateFlavorHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createfloatingiphandler.go b/internal/handler/vm/createfloatingiphandler.go similarity index 74% rename from api/internal/handler/vm/createfloatingiphandler.go rename to internal/handler/vm/createfloatingiphandler.go index 797a4a55..3cb67323 100644 --- a/api/internal/handler/vm/createfloatingiphandler.go +++ b/internal/handler/vm/createfloatingiphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateFloatingIPHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createimagehandler.go b/internal/handler/vm/createimagehandler.go similarity index 73% rename from api/internal/handler/vm/createimagehandler.go rename to internal/handler/vm/createimagehandler.go index 5f5e4f81..8c1ac5e1 100644 --- a/api/internal/handler/vm/createimagehandler.go +++ b/internal/handler/vm/createimagehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createmulserverhandler.go b/internal/handler/vm/createmulserverhandler.go similarity index 74% rename from api/internal/handler/vm/createmulserverhandler.go rename to internal/handler/vm/createmulserverhandler.go index 613f1ca2..298ad39a 100644 --- a/api/internal/handler/vm/createmulserverhandler.go +++ b/internal/handler/vm/createmulserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateMulServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createnetworkhandler.go b/internal/handler/vm/createnetworkhandler.go similarity index 74% rename from api/internal/handler/vm/createnetworkhandler.go rename to internal/handler/vm/createnetworkhandler.go index 2da207be..2932283b 100644 --- a/api/internal/handler/vm/createnetworkhandler.go +++ b/internal/handler/vm/createnetworkhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateNetworkHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createnetworksegmentrangehandler.go b/internal/handler/vm/createnetworksegmentrangehandler.go similarity index 75% rename from api/internal/handler/vm/createnetworksegmentrangehandler.go rename to internal/handler/vm/createnetworksegmentrangehandler.go index 47f7e5fa..aa76647b 100644 --- a/api/internal/handler/vm/createnetworksegmentrangehandler.go +++ b/internal/handler/vm/createnetworksegmentrangehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateNetworkSegmentRangeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createnodehandler.go b/internal/handler/vm/createnodehandler.go similarity index 73% rename from api/internal/handler/vm/createnodehandler.go rename to internal/handler/vm/createnodehandler.go index 5df9dd56..bd2c6bab 100644 --- a/api/internal/handler/vm/createnodehandler.go +++ b/internal/handler/vm/createnodehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateNodeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createporthandler.go b/internal/handler/vm/createporthandler.go similarity index 73% rename from api/internal/handler/vm/createporthandler.go rename to internal/handler/vm/createporthandler.go index 0ea408b7..9c7f4c5c 100644 --- a/api/internal/handler/vm/createporthandler.go +++ b/internal/handler/vm/createporthandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreatePortHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createrouterhandler.go b/internal/handler/vm/createrouterhandler.go similarity index 73% rename from api/internal/handler/vm/createrouterhandler.go rename to internal/handler/vm/createrouterhandler.go index 45390b39..fdff9fa1 100644 --- a/api/internal/handler/vm/createrouterhandler.go +++ b/internal/handler/vm/createrouterhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateRouterHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createsecuritygrouphandler.go b/internal/handler/vm/createsecuritygrouphandler.go similarity index 74% rename from api/internal/handler/vm/createsecuritygrouphandler.go rename to internal/handler/vm/createsecuritygrouphandler.go index 2fcfd935..d2c793ee 100644 --- a/api/internal/handler/vm/createsecuritygrouphandler.go +++ b/internal/handler/vm/createsecuritygrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateSecurityGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createsecuritygrouprulehandler.go b/internal/handler/vm/createsecuritygrouprulehandler.go similarity index 75% rename from api/internal/handler/vm/createsecuritygrouprulehandler.go rename to internal/handler/vm/createsecuritygrouprulehandler.go index 11ffe7ea..0a0216b0 100644 --- a/api/internal/handler/vm/createsecuritygrouprulehandler.go +++ b/internal/handler/vm/createsecuritygrouprulehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateSecurityGroupRuleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createserverhandler.go b/internal/handler/vm/createserverhandler.go similarity index 73% rename from api/internal/handler/vm/createserverhandler.go rename to internal/handler/vm/createserverhandler.go index 1afd92f1..7211704e 100644 --- a/api/internal/handler/vm/createserverhandler.go +++ b/internal/handler/vm/createserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createsubnethandler.go b/internal/handler/vm/createsubnethandler.go similarity index 73% rename from api/internal/handler/vm/createsubnethandler.go rename to internal/handler/vm/createsubnethandler.go index 931121f3..209a3324 100644 --- a/api/internal/handler/vm/createsubnethandler.go +++ b/internal/handler/vm/createsubnethandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateSubnetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createvolumehandler.go b/internal/handler/vm/createvolumehandler.go similarity index 73% rename from api/internal/handler/vm/createvolumehandler.go rename to internal/handler/vm/createvolumehandler.go index 4e6c56b3..ddf4f0bc 100644 --- a/api/internal/handler/vm/createvolumehandler.go +++ b/internal/handler/vm/createvolumehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateVolumeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/createvolumetypeshandler.go b/internal/handler/vm/createvolumetypeshandler.go similarity index 74% rename from api/internal/handler/vm/createvolumetypeshandler.go rename to internal/handler/vm/createvolumetypeshandler.go index 955b889f..8dae8198 100644 --- a/api/internal/handler/vm/createvolumetypeshandler.go +++ b/internal/handler/vm/createvolumetypeshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func CreateVolumeTypesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletefirewallgrouphandler.go b/internal/handler/vm/deletefirewallgrouphandler.go similarity index 74% rename from api/internal/handler/vm/deletefirewallgrouphandler.go rename to internal/handler/vm/deletefirewallgrouphandler.go index 240f1ceb..87c27eca 100644 --- a/api/internal/handler/vm/deletefirewallgrouphandler.go +++ b/internal/handler/vm/deletefirewallgrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteFirewallGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletefirewallpolicyhandler.go b/internal/handler/vm/deletefirewallpolicyhandler.go similarity index 74% rename from api/internal/handler/vm/deletefirewallpolicyhandler.go rename to internal/handler/vm/deletefirewallpolicyhandler.go index ee0f12fa..949a0eb3 100644 --- a/api/internal/handler/vm/deletefirewallpolicyhandler.go +++ b/internal/handler/vm/deletefirewallpolicyhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteFirewallPolicyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletefirewallrulehandler.go b/internal/handler/vm/deletefirewallrulehandler.go similarity index 74% rename from api/internal/handler/vm/deletefirewallrulehandler.go rename to internal/handler/vm/deletefirewallrulehandler.go index 44c60272..edfd472a 100644 --- a/api/internal/handler/vm/deletefirewallrulehandler.go +++ b/internal/handler/vm/deletefirewallrulehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteFirewallRuleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deleteflavorhandler.go b/internal/handler/vm/deleteflavorhandler.go similarity index 73% rename from api/internal/handler/vm/deleteflavorhandler.go rename to internal/handler/vm/deleteflavorhandler.go index 7bf5fe04..2bd72db2 100644 --- a/api/internal/handler/vm/deleteflavorhandler.go +++ b/internal/handler/vm/deleteflavorhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteFlavorHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletefloatingiphandler.go b/internal/handler/vm/deletefloatingiphandler.go similarity index 74% rename from api/internal/handler/vm/deletefloatingiphandler.go rename to internal/handler/vm/deletefloatingiphandler.go index 3f7abdf3..06aca718 100644 --- a/api/internal/handler/vm/deletefloatingiphandler.go +++ b/internal/handler/vm/deletefloatingiphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteFloatingIPHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deleteimagehandler.go b/internal/handler/vm/deleteimagehandler.go similarity index 73% rename from api/internal/handler/vm/deleteimagehandler.go rename to internal/handler/vm/deleteimagehandler.go index 6ba84ce0..40a517e1 100644 --- a/api/internal/handler/vm/deleteimagehandler.go +++ b/internal/handler/vm/deleteimagehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletenetworkhandler.go b/internal/handler/vm/deletenetworkhandler.go similarity index 74% rename from api/internal/handler/vm/deletenetworkhandler.go rename to internal/handler/vm/deletenetworkhandler.go index 182f3747..efc4f2ef 100644 --- a/api/internal/handler/vm/deletenetworkhandler.go +++ b/internal/handler/vm/deletenetworkhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteNetworkHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletenetworksegmentrangeshandler.go b/internal/handler/vm/deletenetworksegmentrangeshandler.go similarity index 75% rename from api/internal/handler/vm/deletenetworksegmentrangeshandler.go rename to internal/handler/vm/deletenetworksegmentrangeshandler.go index b4cfc237..7e94a0ef 100644 --- a/api/internal/handler/vm/deletenetworksegmentrangeshandler.go +++ b/internal/handler/vm/deletenetworksegmentrangeshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteNetworkSegmentRangesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletenodehandler.go b/internal/handler/vm/deletenodehandler.go similarity index 73% rename from api/internal/handler/vm/deletenodehandler.go rename to internal/handler/vm/deletenodehandler.go index 19f67962..645aa6da 100644 --- a/api/internal/handler/vm/deletenodehandler.go +++ b/internal/handler/vm/deletenodehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteNodeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deleteporthandler.go b/internal/handler/vm/deleteporthandler.go similarity index 73% rename from api/internal/handler/vm/deleteporthandler.go rename to internal/handler/vm/deleteporthandler.go index 45d4a17a..2f113025 100644 --- a/api/internal/handler/vm/deleteporthandler.go +++ b/internal/handler/vm/deleteporthandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeletePortHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deleterouterhandler.go b/internal/handler/vm/deleterouterhandler.go similarity index 73% rename from api/internal/handler/vm/deleterouterhandler.go rename to internal/handler/vm/deleterouterhandler.go index 0184dbed..e85b3b3e 100644 --- a/api/internal/handler/vm/deleterouterhandler.go +++ b/internal/handler/vm/deleterouterhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteRouterHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletesecuritygrouphandler.go b/internal/handler/vm/deletesecuritygrouphandler.go similarity index 74% rename from api/internal/handler/vm/deletesecuritygrouphandler.go rename to internal/handler/vm/deletesecuritygrouphandler.go index 482ba147..2a21c181 100644 --- a/api/internal/handler/vm/deletesecuritygrouphandler.go +++ b/internal/handler/vm/deletesecuritygrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteSecurityGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletesecuritygrouprulehandler.go b/internal/handler/vm/deletesecuritygrouprulehandler.go similarity index 75% rename from api/internal/handler/vm/deletesecuritygrouprulehandler.go rename to internal/handler/vm/deletesecuritygrouprulehandler.go index 5dcf49cf..f22e8db7 100644 --- a/api/internal/handler/vm/deletesecuritygrouprulehandler.go +++ b/internal/handler/vm/deletesecuritygrouprulehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteSecurityGroupRuleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deleteserverhandler.go b/internal/handler/vm/deleteserverhandler.go similarity index 73% rename from api/internal/handler/vm/deleteserverhandler.go rename to internal/handler/vm/deleteserverhandler.go index 412ee0a4..e83a934d 100644 --- a/api/internal/handler/vm/deleteserverhandler.go +++ b/internal/handler/vm/deleteserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletesubnethandler.go b/internal/handler/vm/deletesubnethandler.go similarity index 73% rename from api/internal/handler/vm/deletesubnethandler.go rename to internal/handler/vm/deletesubnethandler.go index cb8e0b40..2fe8d99d 100644 --- a/api/internal/handler/vm/deletesubnethandler.go +++ b/internal/handler/vm/deletesubnethandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteSubnetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletevolumehandler.go b/internal/handler/vm/deletevolumehandler.go similarity index 73% rename from api/internal/handler/vm/deletevolumehandler.go rename to internal/handler/vm/deletevolumehandler.go index d7e91490..96ac3531 100644 --- a/api/internal/handler/vm/deletevolumehandler.go +++ b/internal/handler/vm/deletevolumehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteVolumeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/deletevolumetypehandler.go b/internal/handler/vm/deletevolumetypehandler.go similarity index 74% rename from api/internal/handler/vm/deletevolumetypehandler.go rename to internal/handler/vm/deletevolumetypehandler.go index 6467de46..e606634b 100644 --- a/api/internal/handler/vm/deletevolumetypehandler.go +++ b/internal/handler/vm/deletevolumetypehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func DeleteVolumeTypeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/getcomputelimitshandler.go b/internal/handler/vm/getcomputelimitshandler.go similarity index 74% rename from api/internal/handler/vm/getcomputelimitshandler.go rename to internal/handler/vm/getcomputelimitshandler.go index e52d0fb9..1cab45d5 100644 --- a/api/internal/handler/vm/getcomputelimitshandler.go +++ b/internal/handler/vm/getcomputelimitshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetComputeLimitsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/getimagenumhandler.go b/internal/handler/vm/getimagenumhandler.go similarity index 73% rename from api/internal/handler/vm/getimagenumhandler.go rename to internal/handler/vm/getimagenumhandler.go index ecaf4ea1..6315e29c 100644 --- a/api/internal/handler/vm/getimagenumhandler.go +++ b/internal/handler/vm/getimagenumhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetImageNumHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/getnetworknumhandler.go b/internal/handler/vm/getnetworknumhandler.go similarity index 73% rename from api/internal/handler/vm/getnetworknumhandler.go rename to internal/handler/vm/getnetworknumhandler.go index d1115cdf..9c36afdb 100644 --- a/api/internal/handler/vm/getnetworknumhandler.go +++ b/internal/handler/vm/getnetworknumhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetNetworkNumHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/getopenstackoverviewhandler.go b/internal/handler/vm/getopenstackoverviewhandler.go similarity index 74% rename from api/internal/handler/vm/getopenstackoverviewhandler.go rename to internal/handler/vm/getopenstackoverviewhandler.go index 871f814c..2eebcc32 100644 --- a/api/internal/handler/vm/getopenstackoverviewhandler.go +++ b/internal/handler/vm/getopenstackoverviewhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetOpenstackOverviewHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/getserversdetailedbyidhandler.go b/internal/handler/vm/getserversdetailedbyidhandler.go similarity index 75% rename from api/internal/handler/vm/getserversdetailedbyidhandler.go rename to internal/handler/vm/getserversdetailedbyidhandler.go index 884d5412..5c74b347 100644 --- a/api/internal/handler/vm/getserversdetailedbyidhandler.go +++ b/internal/handler/vm/getserversdetailedbyidhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetServersDetailedByIdHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/getvolumedetailedbyidhandler.go b/internal/handler/vm/getvolumedetailedbyidhandler.go similarity index 75% rename from api/internal/handler/vm/getvolumedetailedbyidhandler.go rename to internal/handler/vm/getvolumedetailedbyidhandler.go index fa08be98..71fb16a1 100644 --- a/api/internal/handler/vm/getvolumedetailedbyidhandler.go +++ b/internal/handler/vm/getvolumedetailedbyidhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetVolumeDetailedByIdHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/getvolumelimitshandler.go b/internal/handler/vm/getvolumelimitshandler.go similarity index 74% rename from api/internal/handler/vm/getvolumelimitshandler.go rename to internal/handler/vm/getvolumelimitshandler.go index 07e9af2d..9b592c2d 100644 --- a/api/internal/handler/vm/getvolumelimitshandler.go +++ b/internal/handler/vm/getvolumelimitshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func GetVolumeLimitsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listfirewallgroupshandler.go b/internal/handler/vm/listfirewallgroupshandler.go similarity index 74% rename from api/internal/handler/vm/listfirewallgroupshandler.go rename to internal/handler/vm/listfirewallgroupshandler.go index 01041333..0f4b271b 100644 --- a/api/internal/handler/vm/listfirewallgroupshandler.go +++ b/internal/handler/vm/listfirewallgroupshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListFirewallGroupsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listfirewallpolicieshandler.go b/internal/handler/vm/listfirewallpolicieshandler.go similarity index 74% rename from api/internal/handler/vm/listfirewallpolicieshandler.go rename to internal/handler/vm/listfirewallpolicieshandler.go index 877c2806..dcbdab6c 100644 --- a/api/internal/handler/vm/listfirewallpolicieshandler.go +++ b/internal/handler/vm/listfirewallpolicieshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListFirewallPoliciesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listfirewallruleshandler.go b/internal/handler/vm/listfirewallruleshandler.go similarity index 74% rename from api/internal/handler/vm/listfirewallruleshandler.go rename to internal/handler/vm/listfirewallruleshandler.go index b630593c..e78f9936 100644 --- a/api/internal/handler/vm/listfirewallruleshandler.go +++ b/internal/handler/vm/listfirewallruleshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListFirewallRulesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listflavorsdetailhandler.go b/internal/handler/vm/listflavorsdetailhandler.go similarity index 74% rename from api/internal/handler/vm/listflavorsdetailhandler.go rename to internal/handler/vm/listflavorsdetailhandler.go index 09362f69..71a39cb6 100644 --- a/api/internal/handler/vm/listflavorsdetailhandler.go +++ b/internal/handler/vm/listflavorsdetailhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListFlavorsDetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listfloatingipshandler.go b/internal/handler/vm/listfloatingipshandler.go similarity index 74% rename from api/internal/handler/vm/listfloatingipshandler.go rename to internal/handler/vm/listfloatingipshandler.go index f723634c..6d4f5f3c 100644 --- a/api/internal/handler/vm/listfloatingipshandler.go +++ b/internal/handler/vm/listfloatingipshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListFloatingIPsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listimageshandler.go b/internal/handler/vm/listimageshandler.go similarity index 73% rename from api/internal/handler/vm/listimageshandler.go rename to internal/handler/vm/listimageshandler.go index cf5844cb..bda108e0 100644 --- a/api/internal/handler/vm/listimageshandler.go +++ b/internal/handler/vm/listimageshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListImagesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listnetworksegmentrangesrangehandler.go b/internal/handler/vm/listnetworksegmentrangesrangehandler.go similarity index 75% rename from api/internal/handler/vm/listnetworksegmentrangesrangehandler.go rename to internal/handler/vm/listnetworksegmentrangesrangehandler.go index 27b3478f..a1c0dbc7 100644 --- a/api/internal/handler/vm/listnetworksegmentrangesrangehandler.go +++ b/internal/handler/vm/listnetworksegmentrangesrangehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListNetworkSegmentRangesRangeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listnetworkshandler.go b/internal/handler/vm/listnetworkshandler.go similarity index 73% rename from api/internal/handler/vm/listnetworkshandler.go rename to internal/handler/vm/listnetworkshandler.go index c7078abf..bbe785fd 100644 --- a/api/internal/handler/vm/listnetworkshandler.go +++ b/internal/handler/vm/listnetworkshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListNetworksHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listnodeshandler.go b/internal/handler/vm/listnodeshandler.go similarity index 73% rename from api/internal/handler/vm/listnodeshandler.go rename to internal/handler/vm/listnodeshandler.go index fcc192d2..6c747b4d 100644 --- a/api/internal/handler/vm/listnodeshandler.go +++ b/internal/handler/vm/listnodeshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListNodesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listportshandler.go b/internal/handler/vm/listportshandler.go similarity index 73% rename from api/internal/handler/vm/listportshandler.go rename to internal/handler/vm/listportshandler.go index ac134170..8cd1315b 100644 --- a/api/internal/handler/vm/listportshandler.go +++ b/internal/handler/vm/listportshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListPortsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listroutershandler.go b/internal/handler/vm/listroutershandler.go similarity index 73% rename from api/internal/handler/vm/listroutershandler.go rename to internal/handler/vm/listroutershandler.go index e7b6bc11..a7c01243 100644 --- a/api/internal/handler/vm/listroutershandler.go +++ b/internal/handler/vm/listroutershandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListRoutersHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listsecuritygroupruleshandler.go b/internal/handler/vm/listsecuritygroupruleshandler.go similarity index 75% rename from api/internal/handler/vm/listsecuritygroupruleshandler.go rename to internal/handler/vm/listsecuritygroupruleshandler.go index 2b31f7e8..fca14c47 100644 --- a/api/internal/handler/vm/listsecuritygroupruleshandler.go +++ b/internal/handler/vm/listsecuritygroupruleshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListSecurityGroupRulesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listsecuritygroupshandler.go b/internal/handler/vm/listsecuritygroupshandler.go similarity index 74% rename from api/internal/handler/vm/listsecuritygroupshandler.go rename to internal/handler/vm/listsecuritygroupshandler.go index be559d8d..663ed838 100644 --- a/api/internal/handler/vm/listsecuritygroupshandler.go +++ b/internal/handler/vm/listsecuritygroupshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListSecurityGroupsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listserverhandler.go b/internal/handler/vm/listserverhandler.go similarity index 73% rename from api/internal/handler/vm/listserverhandler.go rename to internal/handler/vm/listserverhandler.go index 4c859136..c2cf0e91 100644 --- a/api/internal/handler/vm/listserverhandler.go +++ b/internal/handler/vm/listserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listserversdetailedhandler.go b/internal/handler/vm/listserversdetailedhandler.go similarity index 74% rename from api/internal/handler/vm/listserversdetailedhandler.go rename to internal/handler/vm/listserversdetailedhandler.go index 1dc3daaf..b1fb666a 100644 --- a/api/internal/handler/vm/listserversdetailedhandler.go +++ b/internal/handler/vm/listserversdetailedhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListServersDetailedHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listsubnetshandler.go b/internal/handler/vm/listsubnetshandler.go similarity index 73% rename from api/internal/handler/vm/listsubnetshandler.go rename to internal/handler/vm/listsubnetshandler.go index a148ccc5..74058625 100644 --- a/api/internal/handler/vm/listsubnetshandler.go +++ b/internal/handler/vm/listsubnetshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListSubnetsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listvolumesdetailhandler.go b/internal/handler/vm/listvolumesdetailhandler.go similarity index 74% rename from api/internal/handler/vm/listvolumesdetailhandler.go rename to internal/handler/vm/listvolumesdetailhandler.go index fd0e6bb2..5c164f9b 100644 --- a/api/internal/handler/vm/listvolumesdetailhandler.go +++ b/internal/handler/vm/listvolumesdetailhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListVolumesDetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listvolumeshandler.go b/internal/handler/vm/listvolumeshandler.go similarity index 73% rename from api/internal/handler/vm/listvolumeshandler.go rename to internal/handler/vm/listvolumeshandler.go index 330fc958..6cbe59b1 100644 --- a/api/internal/handler/vm/listvolumeshandler.go +++ b/internal/handler/vm/listvolumeshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListVolumesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/listvolumetypeshandler.go b/internal/handler/vm/listvolumetypeshandler.go similarity index 74% rename from api/internal/handler/vm/listvolumetypeshandler.go rename to internal/handler/vm/listvolumetypeshandler.go index 711a2f75..426aab86 100644 --- a/api/internal/handler/vm/listvolumetypeshandler.go +++ b/internal/handler/vm/listvolumetypeshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ListVolumeTypesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/migrateserverhandler.go b/internal/handler/vm/migrateserverhandler.go similarity index 74% rename from api/internal/handler/vm/migrateserverhandler.go rename to internal/handler/vm/migrateserverhandler.go index 2a7dbe82..8ee3306d 100644 --- a/api/internal/handler/vm/migrateserverhandler.go +++ b/internal/handler/vm/migrateserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func MigrateServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/pauseserverhandler.go b/internal/handler/vm/pauseserverhandler.go similarity index 73% rename from api/internal/handler/vm/pauseserverhandler.go rename to internal/handler/vm/pauseserverhandler.go index 610c4193..c8b4130c 100644 --- a/api/internal/handler/vm/pauseserverhandler.go +++ b/internal/handler/vm/pauseserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func PauseServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/rebootserverhandler.go b/internal/handler/vm/rebootserverhandler.go similarity index 73% rename from api/internal/handler/vm/rebootserverhandler.go rename to internal/handler/vm/rebootserverhandler.go index 31da26be..41269593 100644 --- a/api/internal/handler/vm/rebootserverhandler.go +++ b/internal/handler/vm/rebootserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func RebootServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/removesecuritygrouphandler.go b/internal/handler/vm/removesecuritygrouphandler.go similarity index 74% rename from api/internal/handler/vm/removesecuritygrouphandler.go rename to internal/handler/vm/removesecuritygrouphandler.go index 40b21349..9ecd032b 100644 --- a/api/internal/handler/vm/removesecuritygrouphandler.go +++ b/internal/handler/vm/removesecuritygrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func RemoveSecurityGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/rescueserverhandler.go b/internal/handler/vm/rescueserverhandler.go similarity index 73% rename from api/internal/handler/vm/rescueserverhandler.go rename to internal/handler/vm/rescueserverhandler.go index 97c18bd2..b20f6584 100644 --- a/api/internal/handler/vm/rescueserverhandler.go +++ b/internal/handler/vm/rescueserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func RescueServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/resizeserverhandler.go b/internal/handler/vm/resizeserverhandler.go similarity index 73% rename from api/internal/handler/vm/resizeserverhandler.go rename to internal/handler/vm/resizeserverhandler.go index 81d8be1e..d2929cff 100644 --- a/api/internal/handler/vm/resizeserverhandler.go +++ b/internal/handler/vm/resizeserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ResizeServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/shelveserverhandler.go b/internal/handler/vm/shelveserverhandler.go similarity index 73% rename from api/internal/handler/vm/shelveserverhandler.go rename to internal/handler/vm/shelveserverhandler.go index 927c78c3..8d5c0d63 100644 --- a/api/internal/handler/vm/shelveserverhandler.go +++ b/internal/handler/vm/shelveserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShelveServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showfirewallgroupdetailshandler.go b/internal/handler/vm/showfirewallgroupdetailshandler.go similarity index 75% rename from api/internal/handler/vm/showfirewallgroupdetailshandler.go rename to internal/handler/vm/showfirewallgroupdetailshandler.go index 6e1e07ae..0d180385 100644 --- a/api/internal/handler/vm/showfirewallgroupdetailshandler.go +++ b/internal/handler/vm/showfirewallgroupdetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowFirewallGroupDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showfirewallpolicydetailshandler.go b/internal/handler/vm/showfirewallpolicydetailshandler.go similarity index 75% rename from api/internal/handler/vm/showfirewallpolicydetailshandler.go rename to internal/handler/vm/showfirewallpolicydetailshandler.go index 1b562893..9336c5ab 100644 --- a/api/internal/handler/vm/showfirewallpolicydetailshandler.go +++ b/internal/handler/vm/showfirewallpolicydetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowFirewallPolicyDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showfirewallruledetailshandler.go b/internal/handler/vm/showfirewallruledetailshandler.go similarity index 75% rename from api/internal/handler/vm/showfirewallruledetailshandler.go rename to internal/handler/vm/showfirewallruledetailshandler.go index b026c434..c6f8e1bb 100644 --- a/api/internal/handler/vm/showfirewallruledetailshandler.go +++ b/internal/handler/vm/showfirewallruledetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowFirewallRuleDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showfloatingipdetailshandler.go b/internal/handler/vm/showfloatingipdetailshandler.go similarity index 75% rename from api/internal/handler/vm/showfloatingipdetailshandler.go rename to internal/handler/vm/showfloatingipdetailshandler.go index 91e09a44..5bbccb0f 100644 --- a/api/internal/handler/vm/showfloatingipdetailshandler.go +++ b/internal/handler/vm/showfloatingipdetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowFloatingIPDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/shownetworkdetailshandler.go b/internal/handler/vm/shownetworkdetailshandler.go similarity index 74% rename from api/internal/handler/vm/shownetworkdetailshandler.go rename to internal/handler/vm/shownetworkdetailshandler.go index 113a0e7e..1a20e006 100644 --- a/api/internal/handler/vm/shownetworkdetailshandler.go +++ b/internal/handler/vm/shownetworkdetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowNetworkDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/shownetworksegmentrangedetailshandler.go b/internal/handler/vm/shownetworksegmentrangedetailshandler.go similarity index 76% rename from api/internal/handler/vm/shownetworksegmentrangedetailshandler.go rename to internal/handler/vm/shownetworksegmentrangedetailshandler.go index 309c7533..953d1699 100644 --- a/api/internal/handler/vm/shownetworksegmentrangedetailshandler.go +++ b/internal/handler/vm/shownetworksegmentrangedetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowNetworkSegmentRangeDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/shownodedetailshandler.go b/internal/handler/vm/shownodedetailshandler.go similarity index 74% rename from api/internal/handler/vm/shownodedetailshandler.go rename to internal/handler/vm/shownodedetailshandler.go index 1a025f73..7205f2d1 100644 --- a/api/internal/handler/vm/shownodedetailshandler.go +++ b/internal/handler/vm/shownodedetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowNodeDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showportdetailshandler.go b/internal/handler/vm/showportdetailshandler.go similarity index 74% rename from api/internal/handler/vm/showportdetailshandler.go rename to internal/handler/vm/showportdetailshandler.go index 2066679e..ba4d2072 100644 --- a/api/internal/handler/vm/showportdetailshandler.go +++ b/internal/handler/vm/showportdetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowPortDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showrouterdetailshandler.go b/internal/handler/vm/showrouterdetailshandler.go similarity index 74% rename from api/internal/handler/vm/showrouterdetailshandler.go rename to internal/handler/vm/showrouterdetailshandler.go index 395e03d2..da10ae87 100644 --- a/api/internal/handler/vm/showrouterdetailshandler.go +++ b/internal/handler/vm/showrouterdetailshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowRouterDetailsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showsecuritygrouphandler.go b/internal/handler/vm/showsecuritygrouphandler.go similarity index 74% rename from api/internal/handler/vm/showsecuritygrouphandler.go rename to internal/handler/vm/showsecuritygrouphandler.go index 0cf2ecfa..4fd4da35 100644 --- a/api/internal/handler/vm/showsecuritygrouphandler.go +++ b/internal/handler/vm/showsecuritygrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowSecurityGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/showsecuritygrouprulehandler.go b/internal/handler/vm/showsecuritygrouprulehandler.go similarity index 75% rename from api/internal/handler/vm/showsecuritygrouprulehandler.go rename to internal/handler/vm/showsecuritygrouprulehandler.go index 3dcdc0ed..bf07f758 100644 --- a/api/internal/handler/vm/showsecuritygrouprulehandler.go +++ b/internal/handler/vm/showsecuritygrouprulehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func ShowSecurityGroupRuleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/startserverhandler.go b/internal/handler/vm/startserverhandler.go similarity index 73% rename from api/internal/handler/vm/startserverhandler.go rename to internal/handler/vm/startserverhandler.go index 00fc4257..179e7365 100644 --- a/api/internal/handler/vm/startserverhandler.go +++ b/internal/handler/vm/startserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func StartServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/stopserverhandler.go b/internal/handler/vm/stopserverhandler.go similarity index 73% rename from api/internal/handler/vm/stopserverhandler.go rename to internal/handler/vm/stopserverhandler.go index 1941ade0..c37c7b23 100644 --- a/api/internal/handler/vm/stopserverhandler.go +++ b/internal/handler/vm/stopserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func StopServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/suspendserverhandler.go b/internal/handler/vm/suspendserverhandler.go similarity index 74% rename from api/internal/handler/vm/suspendserverhandler.go rename to internal/handler/vm/suspendserverhandler.go index fd9826e8..f37d033b 100644 --- a/api/internal/handler/vm/suspendserverhandler.go +++ b/internal/handler/vm/suspendserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func SuspendServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/unpauseserverhandler.go b/internal/handler/vm/unpauseserverhandler.go similarity index 74% rename from api/internal/handler/vm/unpauseserverhandler.go rename to internal/handler/vm/unpauseserverhandler.go index 3095d1e8..59581de8 100644 --- a/api/internal/handler/vm/unpauseserverhandler.go +++ b/internal/handler/vm/unpauseserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UnpauseServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/unrescuehandler.go b/internal/handler/vm/unrescuehandler.go similarity index 73% rename from api/internal/handler/vm/unrescuehandler.go rename to internal/handler/vm/unrescuehandler.go index e07adec8..deafa468 100644 --- a/api/internal/handler/vm/unrescuehandler.go +++ b/internal/handler/vm/unrescuehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UnRescueHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updatefirewallgrouphandler.go b/internal/handler/vm/updatefirewallgrouphandler.go similarity index 74% rename from api/internal/handler/vm/updatefirewallgrouphandler.go rename to internal/handler/vm/updatefirewallgrouphandler.go index 1d072d0b..7285787b 100644 --- a/api/internal/handler/vm/updatefirewallgrouphandler.go +++ b/internal/handler/vm/updatefirewallgrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateFirewallGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updatefloatingiphandler.go b/internal/handler/vm/updatefloatingiphandler.go similarity index 74% rename from api/internal/handler/vm/updatefloatingiphandler.go rename to internal/handler/vm/updatefloatingiphandler.go index 16493a84..7a61d49f 100644 --- a/api/internal/handler/vm/updatefloatingiphandler.go +++ b/internal/handler/vm/updatefloatingiphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateFloatingIPHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updatenetworkhandler.go b/internal/handler/vm/updatenetworkhandler.go similarity index 74% rename from api/internal/handler/vm/updatenetworkhandler.go rename to internal/handler/vm/updatenetworkhandler.go index fc1b3a0c..b135c50b 100644 --- a/api/internal/handler/vm/updatenetworkhandler.go +++ b/internal/handler/vm/updatenetworkhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateNetworkHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updatenetworksegmentrangeshandler.go b/internal/handler/vm/updatenetworksegmentrangeshandler.go similarity index 75% rename from api/internal/handler/vm/updatenetworksegmentrangeshandler.go rename to internal/handler/vm/updatenetworksegmentrangeshandler.go index c91e38eb..c0a10707 100644 --- a/api/internal/handler/vm/updatenetworksegmentrangeshandler.go +++ b/internal/handler/vm/updatenetworksegmentrangeshandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateNetworkSegmentRangesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updateporthandler.go b/internal/handler/vm/updateporthandler.go similarity index 73% rename from api/internal/handler/vm/updateporthandler.go rename to internal/handler/vm/updateporthandler.go index 37e34376..90f59e0e 100644 --- a/api/internal/handler/vm/updateporthandler.go +++ b/internal/handler/vm/updateporthandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdatePortHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updaterouterhandler.go b/internal/handler/vm/updaterouterhandler.go similarity index 73% rename from api/internal/handler/vm/updaterouterhandler.go rename to internal/handler/vm/updaterouterhandler.go index 262ee32a..6fb46a10 100644 --- a/api/internal/handler/vm/updaterouterhandler.go +++ b/internal/handler/vm/updaterouterhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateRouterHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updatesecuritygrouphandler.go b/internal/handler/vm/updatesecuritygrouphandler.go similarity index 74% rename from api/internal/handler/vm/updatesecuritygrouphandler.go rename to internal/handler/vm/updatesecuritygrouphandler.go index 2d0d5de2..e197b83a 100644 --- a/api/internal/handler/vm/updatesecuritygrouphandler.go +++ b/internal/handler/vm/updatesecuritygrouphandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateSecurityGroupHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updateserverhandler.go b/internal/handler/vm/updateserverhandler.go similarity index 73% rename from api/internal/handler/vm/updateserverhandler.go rename to internal/handler/vm/updateserverhandler.go index acd162a4..e8854612 100644 --- a/api/internal/handler/vm/updateserverhandler.go +++ b/internal/handler/vm/updateserverhandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateServerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updatesubnethandler.go b/internal/handler/vm/updatesubnethandler.go similarity index 73% rename from api/internal/handler/vm/updatesubnethandler.go rename to internal/handler/vm/updatesubnethandler.go index a8093754..78a7b485 100644 --- a/api/internal/handler/vm/updatesubnethandler.go +++ b/internal/handler/vm/updatesubnethandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateSubnetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/updatevolumehandler.go b/internal/handler/vm/updatevolumehandler.go similarity index 73% rename from api/internal/handler/vm/updatevolumehandler.go rename to internal/handler/vm/updatevolumehandler.go index 80389014..52110fc0 100644 --- a/api/internal/handler/vm/updatevolumehandler.go +++ b/internal/handler/vm/updatevolumehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UpdateVolumeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/handler/vm/uploadimagehandler.go b/internal/handler/vm/uploadimagehandler.go similarity index 73% rename from api/internal/handler/vm/uploadimagehandler.go rename to internal/handler/vm/uploadimagehandler.go index 0682d12f..e89ddc5a 100644 --- a/api/internal/handler/vm/uploadimagehandler.go +++ b/internal/handler/vm/uploadimagehandler.go @@ -4,9 +4,9 @@ import ( "net/http" "github.com/zeromicro/go-zero/rest/httpx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/vm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/vm" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) func UploadImageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { diff --git a/api/internal/logic/adapters/adapterslistlogic.go b/internal/logic/adapters/adapterslistlogic.go similarity index 91% rename from api/internal/logic/adapters/adapterslistlogic.go rename to internal/logic/adapters/adapterslistlogic.go index 5f4aba2a..a62d9921 100644 --- a/api/internal/logic/adapters/adapterslistlogic.go +++ b/internal/logic/adapters/adapterslistlogic.go @@ -2,8 +2,8 @@ package adapters import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/clusterlistlogic.go b/internal/logic/adapters/clusterlistlogic.go similarity index 93% rename from api/internal/logic/adapters/clusterlistlogic.go rename to internal/logic/adapters/clusterlistlogic.go index fb3f25e3..9b15e1a5 100644 --- a/api/internal/logic/adapters/clusterlistlogic.go +++ b/internal/logic/adapters/clusterlistlogic.go @@ -2,8 +2,8 @@ package adapters import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/createadapterlogic.go b/internal/logic/adapters/createadapterlogic.go similarity index 93% rename from api/internal/logic/adapters/createadapterlogic.go rename to internal/logic/adapters/createadapterlogic.go index 6febb282..61cd6c81 100644 --- a/api/internal/logic/adapters/createadapterlogic.go +++ b/internal/logic/adapters/createadapterlogic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" "time" diff --git a/api/internal/logic/adapters/createclusterlogic.go b/internal/logic/adapters/createclusterlogic.go similarity index 93% rename from api/internal/logic/adapters/createclusterlogic.go rename to internal/logic/adapters/createclusterlogic.go index f8d8a356..526de536 100644 --- a/api/internal/logic/adapters/createclusterlogic.go +++ b/internal/logic/adapters/createclusterlogic.go @@ -7,8 +7,8 @@ import ( "gorm.io/gorm" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/deleteadapterlogic.go b/internal/logic/adapters/deleteadapterlogic.go similarity index 90% rename from api/internal/logic/adapters/deleteadapterlogic.go rename to internal/logic/adapters/deleteadapterlogic.go index 44e87fa6..8cedd296 100644 --- a/api/internal/logic/adapters/deleteadapterlogic.go +++ b/internal/logic/adapters/deleteadapterlogic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/deleteclusterlogic.go b/internal/logic/adapters/deleteclusterlogic.go similarity index 88% rename from api/internal/logic/adapters/deleteclusterlogic.go rename to internal/logic/adapters/deleteclusterlogic.go index 5fd39ed6..c9f67df2 100644 --- a/api/internal/logic/adapters/deleteclusterlogic.go +++ b/internal/logic/adapters/deleteclusterlogic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/getadapterlogic.go b/internal/logic/adapters/getadapterlogic.go similarity index 85% rename from api/internal/logic/adapters/getadapterlogic.go rename to internal/logic/adapters/getadapterlogic.go index 70e3c556..92c52236 100644 --- a/api/internal/logic/adapters/getadapterlogic.go +++ b/internal/logic/adapters/getadapterlogic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/getadapterrelationlogic.go b/internal/logic/adapters/getadapterrelationlogic.go similarity index 94% rename from api/internal/logic/adapters/getadapterrelationlogic.go rename to internal/logic/adapters/getadapterrelationlogic.go index cb1617bc..3e44e8b6 100644 --- a/api/internal/logic/adapters/getadapterrelationlogic.go +++ b/internal/logic/adapters/getadapterrelationlogic.go @@ -4,8 +4,8 @@ import ( "context" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/getclusterlogic.go b/internal/logic/adapters/getclusterlogic.go similarity index 85% rename from api/internal/logic/adapters/getclusterlogic.go rename to internal/logic/adapters/getclusterlogic.go index ba5fb31c..f5b8952e 100644 --- a/api/internal/logic/adapters/getclusterlogic.go +++ b/internal/logic/adapters/getclusterlogic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/getclustersumlogic.go b/internal/logic/adapters/getclustersumlogic.go similarity index 93% rename from api/internal/logic/adapters/getclustersumlogic.go rename to internal/logic/adapters/getclustersumlogic.go index 6beab051..9bd2997e 100644 --- a/api/internal/logic/adapters/getclustersumlogic.go +++ b/internal/logic/adapters/getclustersumlogic.go @@ -3,8 +3,8 @@ package adapters import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/updateadapterlogic.go b/internal/logic/adapters/updateadapterlogic.go similarity index 87% rename from api/internal/logic/adapters/updateadapterlogic.go rename to internal/logic/adapters/updateadapterlogic.go index abf19b63..215f205f 100644 --- a/api/internal/logic/adapters/updateadapterlogic.go +++ b/internal/logic/adapters/updateadapterlogic.go @@ -6,8 +6,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/adapters/updateclusterlogic.go b/internal/logic/adapters/updateclusterlogic.go similarity index 87% rename from api/internal/logic/adapters/updateclusterlogic.go rename to internal/logic/adapters/updateclusterlogic.go index 360b18a8..7f260bd8 100644 --- a/api/internal/logic/adapters/updateclusterlogic.go +++ b/internal/logic/adapters/updateclusterlogic.go @@ -6,8 +6,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/createalgorithmlogic.go b/internal/logic/ai/createalgorithmlogic.go similarity index 93% rename from api/internal/logic/ai/createalgorithmlogic.go rename to internal/logic/ai/createalgorithmlogic.go index bd46ddb7..89eec6af 100644 --- a/api/internal/logic/ai/createalgorithmlogic.go +++ b/internal/logic/ai/createalgorithmlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/createdatasetlogic.go b/internal/logic/ai/createdatasetlogic.go similarity index 93% rename from api/internal/logic/ai/createdatasetlogic.go rename to internal/logic/ai/createdatasetlogic.go index bff8de2f..a02b49d0 100644 --- a/api/internal/logic/ai/createdatasetlogic.go +++ b/internal/logic/ai/createdatasetlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/createexporttasklogic.go b/internal/logic/ai/createexporttasklogic.go similarity index 94% rename from api/internal/logic/ai/createexporttasklogic.go rename to internal/logic/ai/createexporttasklogic.go index f2e7e67b..d2358e6c 100644 --- a/api/internal/logic/ai/createexporttasklogic.go +++ b/internal/logic/ai/createexporttasklogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/ai/createnotebooklogic.go b/internal/logic/ai/createnotebooklogic.go similarity index 93% rename from api/internal/logic/ai/createnotebooklogic.go rename to internal/logic/ai/createnotebooklogic.go index 9d7384b1..d6a8736e 100644 --- a/api/internal/logic/ai/createnotebooklogic.go +++ b/internal/logic/ai/createnotebooklogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/createprocessortasklogic.go b/internal/logic/ai/createprocessortasklogic.go similarity index 93% rename from api/internal/logic/ai/createprocessortasklogic.go rename to internal/logic/ai/createprocessortasklogic.go index e071fe54..607b3e80 100644 --- a/api/internal/logic/ai/createprocessortasklogic.go +++ b/internal/logic/ai/createprocessortasklogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/createservicelogic.go b/internal/logic/ai/createservicelogic.go similarity index 93% rename from api/internal/logic/ai/createservicelogic.go rename to internal/logic/ai/createservicelogic.go index ed02a7b5..7ade166e 100644 --- a/api/internal/logic/ai/createservicelogic.go +++ b/internal/logic/ai/createservicelogic.go @@ -17,8 +17,8 @@ package ai import ( "context" "github.com/jinzhu/copier" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/createtasklogic.go b/internal/logic/ai/createtasklogic.go similarity index 94% rename from api/internal/logic/ai/createtasklogic.go rename to internal/logic/ai/createtasklogic.go index 25bacfcf..1ffe1105 100644 --- a/api/internal/logic/ai/createtasklogic.go +++ b/internal/logic/ai/createtasklogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/ai/createtrainingjoblogic.go b/internal/logic/ai/createtrainingjoblogic.go similarity index 94% rename from api/internal/logic/ai/createtrainingjoblogic.go rename to internal/logic/ai/createtrainingjoblogic.go index 983e71f4..0e0dc61e 100644 --- a/api/internal/logic/ai/createtrainingjoblogic.go +++ b/internal/logic/ai/createtrainingjoblogic.go @@ -17,8 +17,8 @@ package ai import ( "context" "github.com/jinzhu/copier" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/createvisualizationjoblogic.go b/internal/logic/ai/createvisualizationjoblogic.go similarity index 90% rename from api/internal/logic/ai/createvisualizationjoblogic.go rename to internal/logic/ai/createvisualizationjoblogic.go index d38aa7d0..d71b9a09 100644 --- a/api/internal/logic/ai/createvisualizationjoblogic.go +++ b/internal/logic/ai/createvisualizationjoblogic.go @@ -17,8 +17,8 @@ package ai import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/deletealgorithmlogic.go b/internal/logic/ai/deletealgorithmlogic.go similarity index 94% rename from api/internal/logic/ai/deletealgorithmlogic.go rename to internal/logic/ai/deletealgorithmlogic.go index 3297ee84..c3115856 100644 --- a/api/internal/logic/ai/deletealgorithmlogic.go +++ b/internal/logic/ai/deletealgorithmlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/ai/deletedatasetlogic.go b/internal/logic/ai/deletedatasetlogic.go similarity index 94% rename from api/internal/logic/ai/deletedatasetlogic.go rename to internal/logic/ai/deletedatasetlogic.go index 853b8d86..546faab8 100644 --- a/api/internal/logic/ai/deletedatasetlogic.go +++ b/internal/logic/ai/deletedatasetlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/ai/deleteservicelogic.go b/internal/logic/ai/deleteservicelogic.go similarity index 93% rename from api/internal/logic/ai/deleteservicelogic.go rename to internal/logic/ai/deleteservicelogic.go index c6c6b51b..bf49ea67 100644 --- a/api/internal/logic/ai/deleteservicelogic.go +++ b/internal/logic/ai/deleteservicelogic.go @@ -22,8 +22,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/deletetrainingjoblogic.go b/internal/logic/ai/deletetrainingjoblogic.go similarity index 93% rename from api/internal/logic/ai/deletetrainingjoblogic.go rename to internal/logic/ai/deletetrainingjoblogic.go index 37792f27..7d4fa07e 100644 --- a/api/internal/logic/ai/deletetrainingjoblogic.go +++ b/internal/logic/ai/deletetrainingjoblogic.go @@ -17,8 +17,8 @@ package ai import ( "context" "github.com/jinzhu/copier" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/getcenterlistlogic.go b/internal/logic/ai/getcenterlistlogic.go similarity index 86% rename from api/internal/logic/ai/getcenterlistlogic.go rename to internal/logic/ai/getcenterlistlogic.go index 2de25ad5..0ba9e775 100644 --- a/api/internal/logic/ai/getcenterlistlogic.go +++ b/internal/logic/ai/getcenterlistlogic.go @@ -2,8 +2,8 @@ package ai import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/getcenteroverviewlogic.go b/internal/logic/ai/getcenteroverviewlogic.go similarity index 97% rename from api/internal/logic/ai/getcenteroverviewlogic.go rename to internal/logic/ai/getcenteroverviewlogic.go index 0363edb7..d4aecdb9 100644 --- a/api/internal/logic/ai/getcenteroverviewlogic.go +++ b/internal/logic/ai/getcenteroverviewlogic.go @@ -3,8 +3,8 @@ package ai import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "strconv" "sync" diff --git a/api/internal/logic/ai/getcenterqueueinglogic.go b/internal/logic/ai/getcenterqueueinglogic.go similarity index 92% rename from api/internal/logic/ai/getcenterqueueinglogic.go rename to internal/logic/ai/getcenterqueueinglogic.go index e7405298..d0408a57 100644 --- a/api/internal/logic/ai/getcenterqueueinglogic.go +++ b/internal/logic/ai/getcenterqueueinglogic.go @@ -4,8 +4,8 @@ import ( "context" "sort" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/getcentertasklistlogic.go b/internal/logic/ai/getcentertasklistlogic.go similarity index 96% rename from api/internal/logic/ai/getcentertasklistlogic.go rename to internal/logic/ai/getcentertasklistlogic.go index b7fa034f..90e3e497 100644 --- a/api/internal/logic/ai/getcentertasklistlogic.go +++ b/internal/logic/ai/getcentertasklistlogic.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/getexporttasksofdatasetlogic.go b/internal/logic/ai/getexporttasksofdatasetlogic.go similarity index 94% rename from api/internal/logic/ai/getexporttasksofdatasetlogic.go rename to internal/logic/ai/getexporttasksofdatasetlogic.go index 3d053fa2..6451c84a 100644 --- a/api/internal/logic/ai/getexporttasksofdatasetlogic.go +++ b/internal/logic/ai/getexporttasksofdatasetlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/ai/getexporttaskstatusofdatasetlogic.go b/internal/logic/ai/getexporttaskstatusofdatasetlogic.go similarity index 94% rename from api/internal/logic/ai/getexporttaskstatusofdatasetlogic.go rename to internal/logic/ai/getexporttaskstatusofdatasetlogic.go index 2caae709..b5eae3b9 100644 --- a/api/internal/logic/ai/getexporttaskstatusofdatasetlogic.go +++ b/internal/logic/ai/getexporttaskstatusofdatasetlogic.go @@ -22,8 +22,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/getlisttrainingjobslogic.go b/internal/logic/ai/getlisttrainingjobslogic.go similarity index 97% rename from api/internal/logic/ai/getlisttrainingjobslogic.go rename to internal/logic/ai/getlisttrainingjobslogic.go index 12316436..39594638 100644 --- a/api/internal/logic/ai/getlisttrainingjobslogic.go +++ b/internal/logic/ai/getlisttrainingjobslogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/ai/getnotebookstoragelogic.go b/internal/logic/ai/getnotebookstoragelogic.go similarity index 89% rename from api/internal/logic/ai/getnotebookstoragelogic.go rename to internal/logic/ai/getnotebookstoragelogic.go index 574520d5..9c14b574 100644 --- a/api/internal/logic/ai/getnotebookstoragelogic.go +++ b/internal/logic/ai/getnotebookstoragelogic.go @@ -17,8 +17,8 @@ package ai import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/getvisualizationjoblogic.go b/internal/logic/ai/getvisualizationjoblogic.go similarity index 89% rename from api/internal/logic/ai/getvisualizationjoblogic.go rename to internal/logic/ai/getvisualizationjoblogic.go index ca26aadf..6de4c4fb 100644 --- a/api/internal/logic/ai/getvisualizationjoblogic.go +++ b/internal/logic/ai/getvisualizationjoblogic.go @@ -17,8 +17,8 @@ package ai import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/listalgorithmslogic.go b/internal/logic/ai/listalgorithmslogic.go similarity index 93% rename from api/internal/logic/ai/listalgorithmslogic.go rename to internal/logic/ai/listalgorithmslogic.go index 3e4eaa26..dfce47ff 100644 --- a/api/internal/logic/ai/listalgorithmslogic.go +++ b/internal/logic/ai/listalgorithmslogic.go @@ -22,8 +22,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/listclusterslogic.go b/internal/logic/ai/listclusterslogic.go similarity index 93% rename from api/internal/logic/ai/listclusterslogic.go rename to internal/logic/ai/listclusterslogic.go index 2ee7057c..e9a0600b 100644 --- a/api/internal/logic/ai/listclusterslogic.go +++ b/internal/logic/ai/listclusterslogic.go @@ -22,8 +22,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/listdatasetlogic.go b/internal/logic/ai/listdatasetlogic.go similarity index 94% rename from api/internal/logic/ai/listdatasetlogic.go rename to internal/logic/ai/listdatasetlogic.go index 6089719a..8c488dff 100644 --- a/api/internal/logic/ai/listdatasetlogic.go +++ b/internal/logic/ai/listdatasetlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/listimportlogic.go b/internal/logic/ai/listimportlogic.go similarity index 93% rename from api/internal/logic/ai/listimportlogic.go rename to internal/logic/ai/listimportlogic.go index e03fabe7..a77d8857 100644 --- a/api/internal/logic/ai/listimportlogic.go +++ b/internal/logic/ai/listimportlogic.go @@ -17,8 +17,8 @@ package ai import ( "context" "github.com/jinzhu/copier" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/listnotebooklogic.go b/internal/logic/ai/listnotebooklogic.go similarity index 93% rename from api/internal/logic/ai/listnotebooklogic.go rename to internal/logic/ai/listnotebooklogic.go index 24808982..b02c181d 100644 --- a/api/internal/logic/ai/listnotebooklogic.go +++ b/internal/logic/ai/listnotebooklogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/listserviceslogic.go b/internal/logic/ai/listserviceslogic.go similarity index 93% rename from api/internal/logic/ai/listserviceslogic.go rename to internal/logic/ai/listserviceslogic.go index ad3cc184..fad59484 100644 --- a/api/internal/logic/ai/listserviceslogic.go +++ b/internal/logic/ai/listserviceslogic.go @@ -17,8 +17,8 @@ package ai import ( "context" "github.com/jinzhu/copier" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" diff --git a/api/internal/logic/ai/mountnotebookstoragelogic.go b/internal/logic/ai/mountnotebookstoragelogic.go similarity index 89% rename from api/internal/logic/ai/mountnotebookstoragelogic.go rename to internal/logic/ai/mountnotebookstoragelogic.go index 52eb5fda..a7436ae7 100644 --- a/api/internal/logic/ai/mountnotebookstoragelogic.go +++ b/internal/logic/ai/mountnotebookstoragelogic.go @@ -17,8 +17,8 @@ package ai import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/proxyapilogic.go b/internal/logic/ai/proxyapilogic.go similarity index 95% rename from api/internal/logic/ai/proxyapilogic.go rename to internal/logic/ai/proxyapilogic.go index adec665f..64e27fb8 100644 --- a/api/internal/logic/ai/proxyapilogic.go +++ b/internal/logic/ai/proxyapilogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils/hws" "net/http" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/showalgorithmbyuuidlogic.go b/internal/logic/ai/showalgorithmbyuuidlogic.go similarity index 94% rename from api/internal/logic/ai/showalgorithmbyuuidlogic.go rename to internal/logic/ai/showalgorithmbyuuidlogic.go index 6cf7c127..910b7632 100644 --- a/api/internal/logic/ai/showalgorithmbyuuidlogic.go +++ b/internal/logic/ai/showalgorithmbyuuidlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/showservicelogic.go b/internal/logic/ai/showservicelogic.go similarity index 93% rename from api/internal/logic/ai/showservicelogic.go rename to internal/logic/ai/showservicelogic.go index 19136a4c..cdcfeba3 100644 --- a/api/internal/logic/ai/showservicelogic.go +++ b/internal/logic/ai/showservicelogic.go @@ -22,8 +22,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-modelarts/modelarts" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/startnotebooklogic.go b/internal/logic/ai/startnotebooklogic.go similarity index 89% rename from api/internal/logic/ai/startnotebooklogic.go rename to internal/logic/ai/startnotebooklogic.go index 9a08d646..940f3345 100644 --- a/api/internal/logic/ai/startnotebooklogic.go +++ b/internal/logic/ai/startnotebooklogic.go @@ -17,8 +17,8 @@ package ai import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/ai/stopnotebooklogic.go b/internal/logic/ai/stopnotebooklogic.go similarity index 89% rename from api/internal/logic/ai/stopnotebooklogic.go rename to internal/logic/ai/stopnotebooklogic.go index 3a6e3ca2..fecfe874 100644 --- a/api/internal/logic/ai/stopnotebooklogic.go +++ b/internal/logic/ai/stopnotebooklogic.go @@ -17,8 +17,8 @@ package ai import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/cloud/cloudlistlogic.go b/internal/logic/cloud/cloudlistlogic.go similarity index 91% rename from api/internal/logic/cloud/cloudlistlogic.go rename to internal/logic/cloud/cloudlistlogic.go index 353853c2..bc01ddfe 100644 --- a/api/internal/logic/cloud/cloudlistlogic.go +++ b/internal/logic/cloud/cloudlistlogic.go @@ -17,8 +17,8 @@ package cloud import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" ) diff --git a/api/internal/logic/cloud/clusterinfologic.go b/internal/logic/cloud/clusterinfologic.go similarity index 81% rename from api/internal/logic/cloud/clusterinfologic.go rename to internal/logic/cloud/clusterinfologic.go index a14fea99..c926d8e5 100644 --- a/api/internal/logic/cloud/clusterinfologic.go +++ b/internal/logic/cloud/clusterinfologic.go @@ -3,8 +3,8 @@ package cloud import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/cloud/commitgeneraltasklogic.go b/internal/logic/cloud/commitgeneraltasklogic.go similarity index 93% rename from api/internal/logic/cloud/commitgeneraltasklogic.go rename to internal/logic/cloud/commitgeneraltasklogic.go index 4fd561ae..0a101cea 100644 --- a/api/internal/logic/cloud/commitgeneraltasklogic.go +++ b/internal/logic/cloud/commitgeneraltasklogic.go @@ -4,9 +4,9 @@ import ( "bytes" "context" "github.com/pkg/errors" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models/cloud" @@ -20,8 +20,8 @@ import ( "strings" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/cloud/controllermetricslogic.go b/internal/logic/cloud/controllermetricslogic.go similarity index 91% rename from api/internal/logic/cloud/controllermetricslogic.go rename to internal/logic/cloud/controllermetricslogic.go index 50409bf6..46ba3791 100644 --- a/api/internal/logic/cloud/controllermetricslogic.go +++ b/internal/logic/cloud/controllermetricslogic.go @@ -2,8 +2,8 @@ package cloud import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" "time" diff --git a/api/internal/logic/cloud/deleteclusterlogic.go b/internal/logic/cloud/deleteclusterlogic.go similarity index 86% rename from api/internal/logic/cloud/deleteclusterlogic.go rename to internal/logic/cloud/deleteclusterlogic.go index a51c2d74..10fdfe0b 100644 --- a/api/internal/logic/cloud/deleteclusterlogic.go +++ b/internal/logic/cloud/deleteclusterlogic.go @@ -2,8 +2,8 @@ package cloud import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/cloud/deleteyamllogic.go b/internal/logic/cloud/deleteyamllogic.go similarity index 89% rename from api/internal/logic/cloud/deleteyamllogic.go rename to internal/logic/cloud/deleteyamllogic.go index c2d8838c..7ce39fcc 100644 --- a/api/internal/logic/cloud/deleteyamllogic.go +++ b/internal/logic/cloud/deleteyamllogic.go @@ -17,8 +17,8 @@ package cloud import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/cloud/getclusterlistlogic.go b/internal/logic/cloud/getclusterlistlogic.go similarity index 84% rename from api/internal/logic/cloud/getclusterlistlogic.go rename to internal/logic/cloud/getclusterlistlogic.go index 710550e6..2743f0f7 100644 --- a/api/internal/logic/cloud/getclusterlistlogic.go +++ b/internal/logic/cloud/getclusterlistlogic.go @@ -2,8 +2,8 @@ package cloud import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/cloud/listcloudclusterlogic.go b/internal/logic/cloud/listcloudclusterlogic.go similarity index 81% rename from api/internal/logic/cloud/listcloudclusterlogic.go rename to internal/logic/cloud/listcloudclusterlogic.go index c3d73625..78cd78d1 100644 --- a/api/internal/logic/cloud/listcloudclusterlogic.go +++ b/internal/logic/cloud/listcloudclusterlogic.go @@ -3,8 +3,8 @@ package cloud import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/cloud/podlogslogic.go b/internal/logic/cloud/podlogslogic.go similarity index 82% rename from api/internal/logic/cloud/podlogslogic.go rename to internal/logic/cloud/podlogslogic.go index 480c2d21..918e38b2 100644 --- a/api/internal/logic/cloud/podlogslogic.go +++ b/internal/logic/cloud/podlogslogic.go @@ -3,8 +3,8 @@ package cloud import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "net/http" ) diff --git a/api/internal/logic/cloud/registerclusterlogic.go b/internal/logic/cloud/registerclusterlogic.go similarity index 92% rename from api/internal/logic/cloud/registerclusterlogic.go rename to internal/logic/cloud/registerclusterlogic.go index 141fe851..930017ca 100644 --- a/api/internal/logic/cloud/registerclusterlogic.go +++ b/internal/logic/cloud/registerclusterlogic.go @@ -2,8 +2,8 @@ package cloud import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "strconv" diff --git a/api/internal/logic/core/centerresourceslogic.go b/internal/logic/core/centerresourceslogic.go similarity index 95% rename from api/internal/logic/core/centerresourceslogic.go rename to internal/logic/core/centerresourceslogic.go index 1775f68d..29471a08 100644 --- a/api/internal/logic/core/centerresourceslogic.go +++ b/internal/logic/core/centerresourceslogic.go @@ -6,8 +6,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" "strconv" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/committasklogic.go b/internal/logic/core/committasklogic.go similarity index 84% rename from api/internal/logic/core/committasklogic.go rename to internal/logic/core/committasklogic.go index 0ed31cd4..1e373277 100644 --- a/api/internal/logic/core/committasklogic.go +++ b/internal/logic/core/committasklogic.go @@ -3,15 +3,15 @@ package core import ( "context" "github.com/ghodss/yaml" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/mqs" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/pkg/response" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/mqs" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" + "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/response" "strings" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/commitvmtasklogic.go b/internal/logic/core/commitvmtasklogic.go similarity index 93% rename from api/internal/logic/core/commitvmtasklogic.go rename to internal/logic/core/commitvmtasklogic.go index aebf4f48..7e79514b 100644 --- a/api/internal/logic/core/commitvmtasklogic.go +++ b/internal/logic/core/commitvmtasklogic.go @@ -3,11 +3,11 @@ package core import ( "context" "fmt" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/core/counttaskstatuslogic.go b/internal/logic/core/counttaskstatuslogic.go similarity index 89% rename from api/internal/logic/core/counttaskstatuslogic.go rename to internal/logic/core/counttaskstatuslogic.go index 3abe9797..e0c5fd69 100644 --- a/api/internal/logic/core/counttaskstatuslogic.go +++ b/internal/logic/core/counttaskstatuslogic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/deletetasklogic.go b/internal/logic/core/deletetasklogic.go similarity index 92% rename from api/internal/logic/core/deletetasklogic.go rename to internal/logic/core/deletetasklogic.go index 3ba8f6d2..f5ca4be0 100644 --- a/api/internal/logic/core/deletetasklogic.go +++ b/internal/logic/core/deletetasklogic.go @@ -19,8 +19,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getcomputilitystatisticslogic.go b/internal/logic/core/getcomputilitystatisticslogic.go similarity index 96% rename from api/internal/logic/core/getcomputilitystatisticslogic.go rename to internal/logic/core/getcomputilitystatisticslogic.go index 56c4a900..48811f86 100644 --- a/api/internal/logic/core/getcomputilitystatisticslogic.go +++ b/internal/logic/core/getcomputilitystatisticslogic.go @@ -19,8 +19,8 @@ import ( "fmt" "strconv" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getcomputingpowerlogic.go b/internal/logic/core/getcomputingpowerlogic.go similarity index 95% rename from api/internal/logic/core/getcomputingpowerlogic.go rename to internal/logic/core/getcomputingpowerlogic.go index 40ec24fd..37a26f33 100644 --- a/api/internal/logic/core/getcomputingpowerlogic.go +++ b/internal/logic/core/getcomputingpowerlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/zeromicro/go-zero/core/logx" "gitlink.org.cn/JointCloud/pcm-ac/hpcAC" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-octopus/octopus" "log" ) diff --git a/api/internal/logic/core/getdomainresourcelogic.go b/internal/logic/core/getdomainresourcelogic.go similarity index 83% rename from api/internal/logic/core/getdomainresourcelogic.go rename to internal/logic/core/getdomainresourcelogic.go index f7f2acb0..ce960339 100644 --- a/api/internal/logic/core/getdomainresourcelogic.go +++ b/internal/logic/core/getdomainresourcelogic.go @@ -3,8 +3,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getgeneralinfologic.go b/internal/logic/core/getgeneralinfologic.go similarity index 93% rename from api/internal/logic/core/getgeneralinfologic.go rename to internal/logic/core/getgeneralinfologic.go index 8d0e3461..938f1f00 100644 --- a/api/internal/logic/core/getgeneralinfologic.go +++ b/internal/logic/core/getgeneralinfologic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/zeromicro/go-zero/core/logx" "gitlink.org.cn/JointCloud/pcm-ac/hpcAC" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-octopus/octopus" "log" ) diff --git a/api/internal/logic/core/getpublicflavorlogic.go b/internal/logic/core/getpublicflavorlogic.go similarity index 87% rename from api/internal/logic/core/getpublicflavorlogic.go rename to internal/logic/core/getpublicflavorlogic.go index 14d4be55..9dd8880f 100644 --- a/api/internal/logic/core/getpublicflavorlogic.go +++ b/internal/logic/core/getpublicflavorlogic.go @@ -3,8 +3,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getpublicimagelogic.go b/internal/logic/core/getpublicimagelogic.go similarity index 87% rename from api/internal/logic/core/getpublicimagelogic.go rename to internal/logic/core/getpublicimagelogic.go index a3dafc16..fad02090 100644 --- a/api/internal/logic/core/getpublicimagelogic.go +++ b/internal/logic/core/getpublicimagelogic.go @@ -3,8 +3,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getpublicnetworklogic.go b/internal/logic/core/getpublicnetworklogic.go similarity index 87% rename from api/internal/logic/core/getpublicnetworklogic.go rename to internal/logic/core/getpublicnetworklogic.go index b0d38bb0..8ba60214 100644 --- a/api/internal/logic/core/getpublicnetworklogic.go +++ b/internal/logic/core/getpublicnetworklogic.go @@ -2,8 +2,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getregionlogic.go b/internal/logic/core/getregionlogic.go similarity index 92% rename from api/internal/logic/core/getregionlogic.go rename to internal/logic/core/getregionlogic.go index 19d578ab..dd218e3c 100644 --- a/api/internal/logic/core/getregionlogic.go +++ b/internal/logic/core/getregionlogic.go @@ -18,8 +18,8 @@ import ( "context" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getresourcepanelconfiglogic.go b/internal/logic/core/getresourcepanelconfiglogic.go similarity index 91% rename from api/internal/logic/core/getresourcepanelconfiglogic.go rename to internal/logic/core/getresourcepanelconfiglogic.go index cd24e227..5b1d6632 100644 --- a/api/internal/logic/core/getresourcepanelconfiglogic.go +++ b/internal/logic/core/getresourcepanelconfiglogic.go @@ -17,8 +17,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" ) diff --git a/api/internal/logic/core/getscreenchartlogic.go b/internal/logic/core/getscreenchartlogic.go similarity index 86% rename from api/internal/logic/core/getscreenchartlogic.go rename to internal/logic/core/getscreenchartlogic.go index 06085cf9..ddf6b501 100644 --- a/api/internal/logic/core/getscreenchartlogic.go +++ b/internal/logic/core/getscreenchartlogic.go @@ -3,8 +3,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/getscreeninfologic.go b/internal/logic/core/getscreeninfologic.go similarity index 81% rename from api/internal/logic/core/getscreeninfologic.go rename to internal/logic/core/getscreeninfologic.go index efeb6f5f..f4119972 100644 --- a/api/internal/logic/core/getscreeninfologic.go +++ b/internal/logic/core/getscreeninfologic.go @@ -3,8 +3,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/homeoverviewlogic.go b/internal/logic/core/homeoverviewlogic.go similarity index 93% rename from api/internal/logic/core/homeoverviewlogic.go rename to internal/logic/core/homeoverviewlogic.go index 927a9f85..3767d28f 100644 --- a/api/internal/logic/core/homeoverviewlogic.go +++ b/internal/logic/core/homeoverviewlogic.go @@ -3,8 +3,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/jobtotallogic.go b/internal/logic/core/jobtotallogic.go similarity index 96% rename from api/internal/logic/core/jobtotallogic.go rename to internal/logic/core/jobtotallogic.go index 9ad52198..58aceace 100644 --- a/api/internal/logic/core/jobtotallogic.go +++ b/internal/logic/core/jobtotallogic.go @@ -17,8 +17,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/enum" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils/httputils" diff --git a/api/internal/logic/core/listcenterlogic.go b/internal/logic/core/listcenterlogic.go similarity index 96% rename from api/internal/logic/core/listcenterlogic.go rename to internal/logic/core/listcenterlogic.go index f79d1a3d..6dd03dbc 100644 --- a/api/internal/logic/core/listcenterlogic.go +++ b/internal/logic/core/listcenterlogic.go @@ -17,8 +17,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" ) diff --git a/api/internal/logic/core/listclusterlogic.go b/internal/logic/core/listclusterlogic.go similarity index 94% rename from api/internal/logic/core/listclusterlogic.go rename to internal/logic/core/listclusterlogic.go index ccace405..bd336b58 100644 --- a/api/internal/logic/core/listclusterlogic.go +++ b/internal/logic/core/listclusterlogic.go @@ -17,8 +17,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" ) diff --git a/api/internal/logic/core/listnoticelogic.go b/internal/logic/core/listnoticelogic.go similarity index 85% rename from api/internal/logic/core/listnoticelogic.go rename to internal/logic/core/listnoticelogic.go index fec7499e..be6e6061 100644 --- a/api/internal/logic/core/listnoticelogic.go +++ b/internal/logic/core/listnoticelogic.go @@ -3,8 +3,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) type ListNoticeLogic struct { diff --git a/api/internal/logic/core/listregionlogic.go b/internal/logic/core/listregionlogic.go similarity index 94% rename from api/internal/logic/core/listregionlogic.go rename to internal/logic/core/listregionlogic.go index 0168b66b..0087d75b 100644 --- a/api/internal/logic/core/listregionlogic.go +++ b/internal/logic/core/listregionlogic.go @@ -17,8 +17,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" ) diff --git a/api/internal/logic/core/metricslogic.go b/internal/logic/core/metricslogic.go similarity index 88% rename from api/internal/logic/core/metricslogic.go rename to internal/logic/core/metricslogic.go index 9f947fe3..1dd30c8b 100644 --- a/api/internal/logic/core/metricslogic.go +++ b/internal/logic/core/metricslogic.go @@ -4,7 +4,7 @@ import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) type MetricsLogic struct { diff --git a/api/internal/logic/core/nodeassetslogic.go b/internal/logic/core/nodeassetslogic.go similarity index 91% rename from api/internal/logic/core/nodeassetslogic.go rename to internal/logic/core/nodeassetslogic.go index 0dead70d..f6d50405 100644 --- a/api/internal/logic/core/nodeassetslogic.go +++ b/internal/logic/core/nodeassetslogic.go @@ -16,8 +16,8 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/pagelisttasklogic.go b/internal/logic/core/pagelisttasklogic.go similarity index 89% rename from api/internal/logic/core/pagelisttasklogic.go rename to internal/logic/core/pagelisttasklogic.go index c8bf7450..6b5bfbc8 100644 --- a/api/internal/logic/core/pagelisttasklogic.go +++ b/internal/logic/core/pagelisttasklogic.go @@ -2,9 +2,9 @@ package core import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/status" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/status" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils/timeutils" "time" diff --git a/api/internal/logic/core/participantlistlogic.go b/internal/logic/core/participantlistlogic.go similarity index 92% rename from api/internal/logic/core/participantlistlogic.go rename to internal/logic/core/participantlistlogic.go index 5da5a14c..c7659598 100644 --- a/api/internal/logic/core/participantlistlogic.go +++ b/internal/logic/core/participantlistlogic.go @@ -17,8 +17,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" ) diff --git a/api/internal/logic/core/pulltaskinfologic.go b/internal/logic/core/pulltaskinfologic.go similarity index 95% rename from api/internal/logic/core/pulltaskinfologic.go rename to internal/logic/core/pulltaskinfologic.go index 79fff62a..4833e71c 100644 --- a/api/internal/logic/core/pulltaskinfologic.go +++ b/internal/logic/core/pulltaskinfologic.go @@ -3,14 +3,14 @@ package core import ( "context" "github.com/jinzhu/copier" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models/cloud" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) type PullTaskInfoLogic struct { diff --git a/api/internal/logic/core/pushnoticelogic.go b/internal/logic/core/pushnoticelogic.go similarity index 82% rename from api/internal/logic/core/pushnoticelogic.go rename to internal/logic/core/pushnoticelogic.go index e816cb5d..521a72fc 100644 --- a/api/internal/logic/core/pushnoticelogic.go +++ b/internal/logic/core/pushnoticelogic.go @@ -3,8 +3,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) type PushNoticeLogic struct { diff --git a/api/internal/logic/core/pushresourceinfologic.go b/internal/logic/core/pushresourceinfologic.go similarity index 80% rename from api/internal/logic/core/pushresourceinfologic.go rename to internal/logic/core/pushresourceinfologic.go index c11bad6f..e0523c6c 100644 --- a/api/internal/logic/core/pushresourceinfologic.go +++ b/internal/logic/core/pushresourceinfologic.go @@ -2,10 +2,10 @@ package core import ( "context" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) type PushResourceInfoLogic struct { diff --git a/api/internal/logic/core/pushtaskinfologic.go b/internal/logic/core/pushtaskinfologic.go similarity index 98% rename from api/internal/logic/core/pushtaskinfologic.go rename to internal/logic/core/pushtaskinfologic.go index a989b01f..bdecf5e3 100644 --- a/api/internal/logic/core/pushtaskinfologic.go +++ b/internal/logic/core/pushtaskinfologic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" "github.com/zeromicro/go-zero/core/logx" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gorm.io/gorm" diff --git a/api/internal/logic/core/putresourcepanelconfiglogic.go b/internal/logic/core/putresourcepanelconfiglogic.go similarity index 92% rename from api/internal/logic/core/putresourcepanelconfiglogic.go rename to internal/logic/core/putresourcepanelconfiglogic.go index 97d01533..9f1f349a 100644 --- a/api/internal/logic/core/putresourcepanelconfiglogic.go +++ b/internal/logic/core/putresourcepanelconfiglogic.go @@ -17,8 +17,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "time" diff --git a/api/internal/logic/core/scheduletaskbyyamllogic.go b/internal/logic/core/scheduletaskbyyamllogic.go similarity index 94% rename from api/internal/logic/core/scheduletaskbyyamllogic.go rename to internal/logic/core/scheduletaskbyyamllogic.go index 2118e5fa..203d5045 100644 --- a/api/internal/logic/core/scheduletaskbyyamllogic.go +++ b/internal/logic/core/scheduletaskbyyamllogic.go @@ -21,8 +21,8 @@ import ( "k8s.io/apimachinery/pkg/util/json" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/core/syncclusterloadlogic.go b/internal/logic/core/syncclusterloadlogic.go similarity index 86% rename from api/internal/logic/core/syncclusterloadlogic.go rename to internal/logic/core/syncclusterloadlogic.go index 034fc176..184f213f 100644 --- a/api/internal/logic/core/syncclusterloadlogic.go +++ b/internal/logic/core/syncclusterloadlogic.go @@ -3,8 +3,8 @@ package core import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" tool "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" ) diff --git a/api/internal/logic/core/taskdetailslogic.go b/internal/logic/core/taskdetailslogic.go similarity index 92% rename from api/internal/logic/core/taskdetailslogic.go rename to internal/logic/core/taskdetailslogic.go index 2352974b..b2a87830 100644 --- a/api/internal/logic/core/taskdetailslogic.go +++ b/internal/logic/core/taskdetailslogic.go @@ -3,8 +3,8 @@ package core import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" diff --git a/api/internal/logic/core/tasklistlogic.go b/internal/logic/core/tasklistlogic.go similarity index 97% rename from api/internal/logic/core/tasklistlogic.go rename to internal/logic/core/tasklistlogic.go index fbbdcc91..83c04062 100644 --- a/api/internal/logic/core/tasklistlogic.go +++ b/internal/logic/core/tasklistlogic.go @@ -22,8 +22,8 @@ import ( "strconv" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/adddictitemlogic.go b/internal/logic/dictionary/adddictitemlogic.go similarity index 91% rename from api/internal/logic/dictionary/adddictitemlogic.go rename to internal/logic/dictionary/adddictitemlogic.go index 11892d8e..9b297829 100644 --- a/api/internal/logic/dictionary/adddictitemlogic.go +++ b/internal/logic/dictionary/adddictitemlogic.go @@ -7,8 +7,8 @@ import ( "gorm.io/gorm" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/adddictlogic.go b/internal/logic/dictionary/adddictlogic.go similarity index 88% rename from api/internal/logic/dictionary/adddictlogic.go rename to internal/logic/dictionary/adddictlogic.go index fa8b01bd..d5816143 100644 --- a/api/internal/logic/dictionary/adddictlogic.go +++ b/internal/logic/dictionary/adddictlogic.go @@ -5,8 +5,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/deletedictitemlogic.go b/internal/logic/dictionary/deletedictitemlogic.go similarity index 88% rename from api/internal/logic/dictionary/deletedictitemlogic.go rename to internal/logic/dictionary/deletedictitemlogic.go index a65a5069..b65c3898 100644 --- a/api/internal/logic/dictionary/deletedictitemlogic.go +++ b/internal/logic/dictionary/deletedictitemlogic.go @@ -4,8 +4,8 @@ import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/deletedictlogic.go b/internal/logic/dictionary/deletedictlogic.go similarity index 90% rename from api/internal/logic/dictionary/deletedictlogic.go rename to internal/logic/dictionary/deletedictlogic.go index 47eb68f8..6378ef59 100644 --- a/api/internal/logic/dictionary/deletedictlogic.go +++ b/internal/logic/dictionary/deletedictlogic.go @@ -3,8 +3,8 @@ package dictionary import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/editdictitemlogic.go b/internal/logic/dictionary/editdictitemlogic.go similarity index 88% rename from api/internal/logic/dictionary/editdictitemlogic.go rename to internal/logic/dictionary/editdictitemlogic.go index 60cadbd0..5c78586d 100644 --- a/api/internal/logic/dictionary/editdictitemlogic.go +++ b/internal/logic/dictionary/editdictitemlogic.go @@ -6,8 +6,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/editdictlogic.go b/internal/logic/dictionary/editdictlogic.go similarity index 88% rename from api/internal/logic/dictionary/editdictlogic.go rename to internal/logic/dictionary/editdictlogic.go index 735718a2..9f49028f 100644 --- a/api/internal/logic/dictionary/editdictlogic.go +++ b/internal/logic/dictionary/editdictlogic.go @@ -7,8 +7,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/getdictitemlogic.go b/internal/logic/dictionary/getdictitemlogic.go similarity index 87% rename from api/internal/logic/dictionary/getdictitemlogic.go rename to internal/logic/dictionary/getdictitemlogic.go index 3fa71aec..fd62b1ca 100644 --- a/api/internal/logic/dictionary/getdictitemlogic.go +++ b/internal/logic/dictionary/getdictitemlogic.go @@ -5,8 +5,8 @@ import ( "github.com/pkg/errors" tool "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/getdictlogic.go b/internal/logic/dictionary/getdictlogic.go similarity index 86% rename from api/internal/logic/dictionary/getdictlogic.go rename to internal/logic/dictionary/getdictlogic.go index cb230204..ae499b88 100644 --- a/api/internal/logic/dictionary/getdictlogic.go +++ b/internal/logic/dictionary/getdictlogic.go @@ -5,8 +5,8 @@ import ( "github.com/pkg/errors" tool "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/listdictitembycodelogic.go b/internal/logic/dictionary/listdictitembycodelogic.go similarity index 92% rename from api/internal/logic/dictionary/listdictitembycodelogic.go rename to internal/logic/dictionary/listdictitembycodelogic.go index aedb6d71..c764dd3f 100644 --- a/api/internal/logic/dictionary/listdictitembycodelogic.go +++ b/internal/logic/dictionary/listdictitembycodelogic.go @@ -5,8 +5,8 @@ import ( "github.com/pkg/errors" "sort" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/dictionary/listdictitemlogic.go b/internal/logic/dictionary/listdictitemlogic.go similarity index 94% rename from api/internal/logic/dictionary/listdictitemlogic.go rename to internal/logic/dictionary/listdictitemlogic.go index 047a8296..d83b5be8 100644 --- a/api/internal/logic/dictionary/listdictitemlogic.go +++ b/internal/logic/dictionary/listdictitemlogic.go @@ -2,8 +2,8 @@ package dictionary import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "sort" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/dictionary/listdictlogic.go b/internal/logic/dictionary/listdictlogic.go similarity index 90% rename from api/internal/logic/dictionary/listdictlogic.go rename to internal/logic/dictionary/listdictlogic.go index 35122a3e..21995ed0 100644 --- a/api/internal/logic/dictionary/listdictlogic.go +++ b/internal/logic/dictionary/listdictlogic.go @@ -2,8 +2,8 @@ package dictionary import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/hpc/adaptersummarylogic.go b/internal/logic/hpc/adaptersummarylogic.go similarity index 89% rename from api/internal/logic/hpc/adaptersummarylogic.go rename to internal/logic/hpc/adaptersummarylogic.go index 2bdbe614..f71c6e6c 100644 --- a/api/internal/logic/hpc/adaptersummarylogic.go +++ b/internal/logic/hpc/adaptersummarylogic.go @@ -3,8 +3,8 @@ package hpc import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/hpc/commithpctasklogic.go b/internal/logic/hpc/commithpctasklogic.go similarity index 94% rename from api/internal/logic/hpc/commithpctasklogic.go rename to internal/logic/hpc/commithpctasklogic.go index 00f7e3e1..7ce450a1 100644 --- a/api/internal/logic/hpc/commithpctasklogic.go +++ b/internal/logic/hpc/commithpctasklogic.go @@ -3,15 +3,15 @@ package hpc import ( "context" "errors" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "k8s.io/apimachinery/pkg/util/json" "math/rand" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/hpc/joblogic.go b/internal/logic/hpc/joblogic.go similarity index 87% rename from api/internal/logic/hpc/joblogic.go rename to internal/logic/hpc/joblogic.go index 29ac6ea9..2463cc7f 100644 --- a/api/internal/logic/hpc/joblogic.go +++ b/internal/logic/hpc/joblogic.go @@ -3,8 +3,8 @@ package hpc import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/hpc/overviewlogic.go b/internal/logic/hpc/overviewlogic.go similarity index 87% rename from api/internal/logic/hpc/overviewlogic.go rename to internal/logic/hpc/overviewlogic.go index b3a447ab..be88bf1a 100644 --- a/api/internal/logic/hpc/overviewlogic.go +++ b/internal/logic/hpc/overviewlogic.go @@ -2,8 +2,8 @@ package hpc import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/hpc/queueassetslogic.go b/internal/logic/hpc/queueassetslogic.go similarity index 92% rename from api/internal/logic/hpc/queueassetslogic.go rename to internal/logic/hpc/queueassetslogic.go index aa434574..af1ef97f 100644 --- a/api/internal/logic/hpc/queueassetslogic.go +++ b/internal/logic/hpc/queueassetslogic.go @@ -16,8 +16,8 @@ package hpc import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/hpc/resourcelogic.go b/internal/logic/hpc/resourcelogic.go similarity index 93% rename from api/internal/logic/hpc/resourcelogic.go rename to internal/logic/hpc/resourcelogic.go index 1556c265..eb09da64 100644 --- a/api/internal/logic/hpc/resourcelogic.go +++ b/internal/logic/hpc/resourcelogic.go @@ -2,8 +2,8 @@ package hpc import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/inference/imageinferencelogic.go b/internal/logic/inference/imageinferencelogic.go similarity index 90% rename from api/internal/logic/inference/imageinferencelogic.go rename to internal/logic/inference/imageinferencelogic.go index cbef1eb5..1673aed1 100644 --- a/api/internal/logic/inference/imageinferencelogic.go +++ b/internal/logic/inference/imageinferencelogic.go @@ -4,11 +4,11 @@ import ( "context" "errors" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/inference" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/inference" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "net/http" ) diff --git a/api/internal/logic/inference/inferencetaskdetaillogic.go b/internal/logic/inference/inferencetaskdetaillogic.go similarity index 91% rename from api/internal/logic/inference/inferencetaskdetaillogic.go rename to internal/logic/inference/inferencetaskdetaillogic.go index 0638742a..02e6b3e4 100644 --- a/api/internal/logic/inference/inferencetaskdetaillogic.go +++ b/internal/logic/inference/inferencetaskdetaillogic.go @@ -4,8 +4,8 @@ import ( "context" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/inference/modelnamesbytypelogic.go b/internal/logic/inference/modelnamesbytypelogic.go similarity index 79% rename from api/internal/logic/inference/modelnamesbytypelogic.go rename to internal/logic/inference/modelnamesbytypelogic.go index 02e127ae..b36b4405 100644 --- a/api/internal/logic/inference/modelnamesbytypelogic.go +++ b/internal/logic/inference/modelnamesbytypelogic.go @@ -2,10 +2,10 @@ package inference import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/inference/modeltypeslogic.go b/internal/logic/inference/modeltypeslogic.go similarity index 74% rename from api/internal/logic/inference/modeltypeslogic.go rename to internal/logic/inference/modeltypeslogic.go index 430aae8f..807915cf 100644 --- a/api/internal/logic/inference/modeltypeslogic.go +++ b/internal/logic/inference/modeltypeslogic.go @@ -2,10 +2,10 @@ package inference import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/inference/texttotextinferencelogic.go b/internal/logic/inference/texttotextinferencelogic.go similarity index 91% rename from api/internal/logic/inference/texttotextinferencelogic.go rename to internal/logic/inference/texttotextinferencelogic.go index 58b3edc1..8bf9fcfd 100644 --- a/api/internal/logic/inference/texttotextinferencelogic.go +++ b/internal/logic/inference/texttotextinferencelogic.go @@ -4,11 +4,11 @@ import ( "context" "errors" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "strconv" diff --git a/api/internal/logic/monitoring/adapterinfologic.go b/internal/logic/monitoring/adapterinfologic.go similarity index 85% rename from api/internal/logic/monitoring/adapterinfologic.go rename to internal/logic/monitoring/adapterinfologic.go index 1afc91e4..d1016be1 100644 --- a/api/internal/logic/monitoring/adapterinfologic.go +++ b/internal/logic/monitoring/adapterinfologic.go @@ -3,8 +3,8 @@ package monitoring import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/monitoring/alertlistlogic.go b/internal/logic/monitoring/alertlistlogic.go similarity index 93% rename from api/internal/logic/monitoring/alertlistlogic.go rename to internal/logic/monitoring/alertlistlogic.go index 099e72d7..099f9b82 100644 --- a/api/internal/logic/monitoring/alertlistlogic.go +++ b/internal/logic/monitoring/alertlistlogic.go @@ -4,8 +4,8 @@ import ( "context" "fmt" v1 "github.com/prometheus/client_golang/api/prometheus/v1" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "k8s.io/apimachinery/pkg/util/json" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/monitoring/alertruleslogic.go b/internal/logic/monitoring/alertruleslogic.go similarity index 92% rename from api/internal/logic/monitoring/alertruleslogic.go rename to internal/logic/monitoring/alertruleslogic.go index 7c63dcff..15c42046 100644 --- a/api/internal/logic/monitoring/alertruleslogic.go +++ b/internal/logic/monitoring/alertruleslogic.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/monitoring/clustersloadlogic.go b/internal/logic/monitoring/clustersloadlogic.go similarity index 89% rename from api/internal/logic/monitoring/clustersloadlogic.go rename to internal/logic/monitoring/clustersloadlogic.go index 184cd5ed..5a26d998 100644 --- a/api/internal/logic/monitoring/clustersloadlogic.go +++ b/internal/logic/monitoring/clustersloadlogic.go @@ -5,8 +5,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" "time" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/monitoring/createalertrulelogic.go b/internal/logic/monitoring/createalertrulelogic.go similarity index 96% rename from api/internal/logic/monitoring/createalertrulelogic.go rename to internal/logic/monitoring/createalertrulelogic.go index fb19d23f..9ee3a6f1 100644 --- a/api/internal/logic/monitoring/createalertrulelogic.go +++ b/internal/logic/monitoring/createalertrulelogic.go @@ -4,8 +4,8 @@ import ( "context" v1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" tool "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" v12 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/api/internal/logic/monitoring/deletealertrulelogic.go b/internal/logic/monitoring/deletealertrulelogic.go similarity index 92% rename from api/internal/logic/monitoring/deletealertrulelogic.go rename to internal/logic/monitoring/deletealertrulelogic.go index aa718829..e8da52d4 100644 --- a/api/internal/logic/monitoring/deletealertrulelogic.go +++ b/internal/logic/monitoring/deletealertrulelogic.go @@ -3,8 +3,8 @@ package monitoring import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/monitoring/nodesloadtoplogic.go b/internal/logic/monitoring/nodesloadtoplogic.go similarity index 89% rename from api/internal/logic/monitoring/nodesloadtoplogic.go rename to internal/logic/monitoring/nodesloadtoplogic.go index 5a1fd7e2..2c44ca3c 100644 --- a/api/internal/logic/monitoring/nodesloadtoplogic.go +++ b/internal/logic/monitoring/nodesloadtoplogic.go @@ -3,8 +3,8 @@ package monitoring import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/monitoring/schedulesituationlogic.go b/internal/logic/monitoring/schedulesituationlogic.go similarity index 95% rename from api/internal/logic/monitoring/schedulesituationlogic.go rename to internal/logic/monitoring/schedulesituationlogic.go index d2b41697..7efa663f 100644 --- a/api/internal/logic/monitoring/schedulesituationlogic.go +++ b/internal/logic/monitoring/schedulesituationlogic.go @@ -2,8 +2,8 @@ package monitoring import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "strings" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/monitoring/syncclusteralertlogic.go b/internal/logic/monitoring/syncclusteralertlogic.go similarity index 86% rename from api/internal/logic/monitoring/syncclusteralertlogic.go rename to internal/logic/monitoring/syncclusteralertlogic.go index 11e8eef3..7725d8ae 100644 --- a/api/internal/logic/monitoring/syncclusteralertlogic.go +++ b/internal/logic/monitoring/syncclusteralertlogic.go @@ -2,8 +2,8 @@ package monitoring import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "k8s.io/apimachinery/pkg/util/json" "time" diff --git a/api/internal/logic/monitoring/tasknumlogic.go b/internal/logic/monitoring/tasknumlogic.go similarity index 89% rename from api/internal/logic/monitoring/tasknumlogic.go rename to internal/logic/monitoring/tasknumlogic.go index 0b7f1659..e7cb75e9 100644 --- a/api/internal/logic/monitoring/tasknumlogic.go +++ b/internal/logic/monitoring/tasknumlogic.go @@ -3,8 +3,8 @@ package monitoring import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/downloadalgothmcodelogic.go b/internal/logic/schedule/downloadalgothmcodelogic.go similarity index 87% rename from api/internal/logic/schedule/downloadalgothmcodelogic.go rename to internal/logic/schedule/downloadalgothmcodelogic.go index 03800fe7..3c97ac0b 100644 --- a/api/internal/logic/schedule/downloadalgothmcodelogic.go +++ b/internal/logic/schedule/downloadalgothmcodelogic.go @@ -4,8 +4,8 @@ import ( "context" "strings" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/getclusterbalancebyidlogic.go b/internal/logic/schedule/getclusterbalancebyidlogic.go similarity index 86% rename from api/internal/logic/schedule/getclusterbalancebyidlogic.go rename to internal/logic/schedule/getclusterbalancebyidlogic.go index 09f70b2c..300c8741 100644 --- a/api/internal/logic/schedule/getclusterbalancebyidlogic.go +++ b/internal/logic/schedule/getclusterbalancebyidlogic.go @@ -3,8 +3,8 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/getcomputecardsbyclusterlogic.go b/internal/logic/schedule/getcomputecardsbyclusterlogic.go similarity index 86% rename from api/internal/logic/schedule/getcomputecardsbyclusterlogic.go rename to internal/logic/schedule/getcomputecardsbyclusterlogic.go index 4cb94f91..5c087e7c 100644 --- a/api/internal/logic/schedule/getcomputecardsbyclusterlogic.go +++ b/internal/logic/schedule/getcomputecardsbyclusterlogic.go @@ -3,8 +3,8 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulegetaijoblogloglogic.go b/internal/logic/schedule/schedulegetaijoblogloglogic.go similarity index 88% rename from api/internal/logic/schedule/schedulegetaijoblogloglogic.go rename to internal/logic/schedule/schedulegetaijoblogloglogic.go index e0f304de..a8529b1c 100644 --- a/api/internal/logic/schedule/schedulegetaijoblogloglogic.go +++ b/internal/logic/schedule/schedulegetaijoblogloglogic.go @@ -3,8 +3,8 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulegetairesourcetypeslogic.go b/internal/logic/schedule/schedulegetairesourcetypeslogic.go similarity index 78% rename from api/internal/logic/schedule/schedulegetairesourcetypeslogic.go rename to internal/logic/schedule/schedulegetairesourcetypeslogic.go index 0b0ff2d2..a757fc1d 100644 --- a/api/internal/logic/schedule/schedulegetairesourcetypeslogic.go +++ b/internal/logic/schedule/schedulegetairesourcetypeslogic.go @@ -2,10 +2,10 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulegetaitasktypeslogic.go b/internal/logic/schedule/schedulegetaitasktypeslogic.go similarity index 76% rename from api/internal/logic/schedule/schedulegetaitasktypeslogic.go rename to internal/logic/schedule/schedulegetaitasktypeslogic.go index 4f34944b..40a64dbc 100644 --- a/api/internal/logic/schedule/schedulegetaitasktypeslogic.go +++ b/internal/logic/schedule/schedulegetaitasktypeslogic.go @@ -2,10 +2,10 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulegetalgorithmslogic.go b/internal/logic/schedule/schedulegetalgorithmslogic.go similarity index 81% rename from api/internal/logic/schedule/schedulegetalgorithmslogic.go rename to internal/logic/schedule/schedulegetalgorithmslogic.go index 009c44e0..34febcd4 100644 --- a/api/internal/logic/schedule/schedulegetalgorithmslogic.go +++ b/internal/logic/schedule/schedulegetalgorithmslogic.go @@ -2,10 +2,10 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulegetdatasetslogic.go b/internal/logic/schedule/schedulegetdatasetslogic.go similarity index 81% rename from api/internal/logic/schedule/schedulegetdatasetslogic.go rename to internal/logic/schedule/schedulegetdatasetslogic.go index af3a0857..3cde31bc 100644 --- a/api/internal/logic/schedule/schedulegetdatasetslogic.go +++ b/internal/logic/schedule/schedulegetdatasetslogic.go @@ -3,10 +3,10 @@ package schedule import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulegetoverviewlogic.go b/internal/logic/schedule/schedulegetoverviewlogic.go similarity index 82% rename from api/internal/logic/schedule/schedulegetoverviewlogic.go rename to internal/logic/schedule/schedulegetoverviewlogic.go index f3ab02af..ad3de8ce 100644 --- a/api/internal/logic/schedule/schedulegetoverviewlogic.go +++ b/internal/logic/schedule/schedulegetoverviewlogic.go @@ -3,8 +3,8 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulegetstrategylogic.go b/internal/logic/schedule/schedulegetstrategylogic.go similarity index 75% rename from api/internal/logic/schedule/schedulegetstrategylogic.go rename to internal/logic/schedule/schedulegetstrategylogic.go index d9d2c950..29f7ef57 100644 --- a/api/internal/logic/schedule/schedulegetstrategylogic.go +++ b/internal/logic/schedule/schedulegetstrategylogic.go @@ -2,9 +2,9 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/schedule/schedulesubmitlogic.go b/internal/logic/schedule/schedulesubmitlogic.go similarity index 91% rename from api/internal/logic/schedule/schedulesubmitlogic.go rename to internal/logic/schedule/schedulesubmitlogic.go index fdcd4f2f..7f0c06be 100644 --- a/api/internal/logic/schedule/schedulesubmitlogic.go +++ b/internal/logic/schedule/schedulesubmitlogic.go @@ -2,10 +2,10 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "strconv" "strings" diff --git a/api/internal/logic/schedule/uploadalgothmcodelogic.go b/internal/logic/schedule/uploadalgothmcodelogic.go similarity index 86% rename from api/internal/logic/schedule/uploadalgothmcodelogic.go rename to internal/logic/schedule/uploadalgothmcodelogic.go index 052412c4..6b87fda1 100644 --- a/api/internal/logic/schedule/uploadalgothmcodelogic.go +++ b/internal/logic/schedule/uploadalgothmcodelogic.go @@ -3,8 +3,8 @@ package schedule import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/storage/dailypowerscreenlogic.go b/internal/logic/storage/dailypowerscreenlogic.go similarity index 88% rename from api/internal/logic/storage/dailypowerscreenlogic.go rename to internal/logic/storage/dailypowerscreenlogic.go index 804b6b21..c4cb0a6f 100644 --- a/api/internal/logic/storage/dailypowerscreenlogic.go +++ b/internal/logic/storage/dailypowerscreenlogic.go @@ -6,8 +6,8 @@ import ( "k8s.io/apimachinery/pkg/util/json" "strings" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/storage/percentercomputerpowerslogic.go b/internal/logic/storage/percentercomputerpowerslogic.go similarity index 89% rename from api/internal/logic/storage/percentercomputerpowerslogic.go rename to internal/logic/storage/percentercomputerpowerslogic.go index 4813fbb1..56c5b73f 100644 --- a/api/internal/logic/storage/percentercomputerpowerslogic.go +++ b/internal/logic/storage/percentercomputerpowerslogic.go @@ -2,8 +2,8 @@ package storage import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils/httputils" "k8s.io/apimachinery/pkg/util/json" "strings" diff --git a/api/internal/logic/storage/screenstoragelogic.go b/internal/logic/storage/screenstoragelogic.go similarity index 94% rename from api/internal/logic/storage/screenstoragelogic.go rename to internal/logic/storage/screenstoragelogic.go index 468a6369..34c2cd60 100644 --- a/api/internal/logic/storage/screenstoragelogic.go +++ b/internal/logic/storage/screenstoragelogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/storelink/deletelinkimagelogic.go b/internal/logic/storelink/deletelinkimagelogic.go similarity index 91% rename from api/internal/logic/storelink/deletelinkimagelogic.go rename to internal/logic/storelink/deletelinkimagelogic.go index 6b2f91e5..e94e916d 100644 --- a/api/internal/logic/storelink/deletelinkimagelogic.go +++ b/internal/logic/storelink/deletelinkimagelogic.go @@ -16,9 +16,9 @@ package storelink import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/storelink/deletelinktasklogic.go b/internal/logic/storelink/deletelinktasklogic.go similarity index 90% rename from api/internal/logic/storelink/deletelinktasklogic.go rename to internal/logic/storelink/deletelinktasklogic.go index 1321f983..7fd6d7a4 100644 --- a/api/internal/logic/storelink/deletelinktasklogic.go +++ b/internal/logic/storelink/deletelinktasklogic.go @@ -16,9 +16,9 @@ package storelink import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/storelink/getaispecslogic.go b/internal/logic/storelink/getaispecslogic.go similarity index 91% rename from api/internal/logic/storelink/getaispecslogic.go rename to internal/logic/storelink/getaispecslogic.go index 2ba8ee38..f7307836 100644 --- a/api/internal/logic/storelink/getaispecslogic.go +++ b/internal/logic/storelink/getaispecslogic.go @@ -17,9 +17,9 @@ package storelink import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" ) diff --git a/api/internal/logic/storelink/getlinkimagelistlogic.go b/internal/logic/storelink/getlinkimagelistlogic.go similarity index 91% rename from api/internal/logic/storelink/getlinkimagelistlogic.go rename to internal/logic/storelink/getlinkimagelistlogic.go index 9e811da8..883a9dd7 100644 --- a/api/internal/logic/storelink/getlinkimagelistlogic.go +++ b/internal/logic/storelink/getlinkimagelistlogic.go @@ -17,9 +17,9 @@ package storelink import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" ) diff --git a/api/internal/logic/storelink/getlinktasklogic.go b/internal/logic/storelink/getlinktasklogic.go similarity index 90% rename from api/internal/logic/storelink/getlinktasklogic.go rename to internal/logic/storelink/getlinktasklogic.go index 97aab7af..0e230840 100644 --- a/api/internal/logic/storelink/getlinktasklogic.go +++ b/internal/logic/storelink/getlinktasklogic.go @@ -16,9 +16,9 @@ package storelink import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/storelink/getparticipantslogic.go b/internal/logic/storelink/getparticipantslogic.go similarity index 88% rename from api/internal/logic/storelink/getparticipantslogic.go rename to internal/logic/storelink/getparticipantslogic.go index b71f7bee..ee791756 100644 --- a/api/internal/logic/storelink/getparticipantslogic.go +++ b/internal/logic/storelink/getparticipantslogic.go @@ -17,9 +17,9 @@ package storelink import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) type GetParticipantsLogic struct { diff --git a/api/internal/logic/storelink/submitlinktasklogic.go b/internal/logic/storelink/submitlinktasklogic.go similarity index 92% rename from api/internal/logic/storelink/submitlinktasklogic.go rename to internal/logic/storelink/submitlinktasklogic.go index 5e8f9d14..555922b5 100644 --- a/api/internal/logic/storelink/submitlinktasklogic.go +++ b/internal/logic/storelink/submitlinktasklogic.go @@ -16,9 +16,9 @@ package storelink import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/storelink/uploadlinkimagelogic.go b/internal/logic/storelink/uploadlinkimagelogic.go similarity index 91% rename from api/internal/logic/storelink/uploadlinkimagelogic.go rename to internal/logic/storelink/uploadlinkimagelogic.go index 60beade5..5d8c6b81 100644 --- a/api/internal/logic/storelink/uploadlinkimagelogic.go +++ b/internal/logic/storelink/uploadlinkimagelogic.go @@ -16,9 +16,9 @@ package storelink import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "github.com/zeromicro/go-zero/core/logx" diff --git a/api/internal/logic/vm/addsecuritygrouptoserverlogic.go b/internal/logic/vm/addsecuritygrouptoserverlogic.go similarity index 93% rename from api/internal/logic/vm/addsecuritygrouptoserverlogic.go rename to internal/logic/vm/addsecuritygrouptoserverlogic.go index 6723703f..fad0c359 100644 --- a/api/internal/logic/vm/addsecuritygrouptoserverlogic.go +++ b/internal/logic/vm/addsecuritygrouptoserverlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/bulkcreatenetworkslogic.go b/internal/logic/vm/bulkcreatenetworkslogic.go similarity index 94% rename from api/internal/logic/vm/bulkcreatenetworkslogic.go rename to internal/logic/vm/bulkcreatenetworkslogic.go index a23c55e7..073fdb54 100644 --- a/api/internal/logic/vm/bulkcreatenetworkslogic.go +++ b/internal/logic/vm/bulkcreatenetworkslogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" tool "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/changeadministrativepasswordlogic.go b/internal/logic/vm/changeadministrativepasswordlogic.go similarity index 93% rename from api/internal/logic/vm/changeadministrativepasswordlogic.go rename to internal/logic/vm/changeadministrativepasswordlogic.go index a87dba17..ee42cc56 100644 --- a/api/internal/logic/vm/changeadministrativepasswordlogic.go +++ b/internal/logic/vm/changeadministrativepasswordlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createfirewallgrouplogic.go b/internal/logic/vm/createfirewallgrouplogic.go similarity index 92% rename from api/internal/logic/vm/createfirewallgrouplogic.go rename to internal/logic/vm/createfirewallgrouplogic.go index 1a4fafa0..ef93bd80 100644 --- a/api/internal/logic/vm/createfirewallgrouplogic.go +++ b/internal/logic/vm/createfirewallgrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createfirewallpolicylogic.go b/internal/logic/vm/createfirewallpolicylogic.go similarity index 92% rename from api/internal/logic/vm/createfirewallpolicylogic.go rename to internal/logic/vm/createfirewallpolicylogic.go index ea58bfdd..4c8c2ed8 100644 --- a/api/internal/logic/vm/createfirewallpolicylogic.go +++ b/internal/logic/vm/createfirewallpolicylogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createfirewallrulelogic.go b/internal/logic/vm/createfirewallrulelogic.go similarity index 92% rename from api/internal/logic/vm/createfirewallrulelogic.go rename to internal/logic/vm/createfirewallrulelogic.go index 2ecf318a..ccc0ad9a 100644 --- a/api/internal/logic/vm/createfirewallrulelogic.go +++ b/internal/logic/vm/createfirewallrulelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createflavorlogic.go b/internal/logic/vm/createflavorlogic.go similarity index 92% rename from api/internal/logic/vm/createflavorlogic.go rename to internal/logic/vm/createflavorlogic.go index 3d414ed0..52429e6d 100644 --- a/api/internal/logic/vm/createflavorlogic.go +++ b/internal/logic/vm/createflavorlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createfloatingiplogic.go b/internal/logic/vm/createfloatingiplogic.go similarity index 92% rename from api/internal/logic/vm/createfloatingiplogic.go rename to internal/logic/vm/createfloatingiplogic.go index de300dc8..da015c6a 100644 --- a/api/internal/logic/vm/createfloatingiplogic.go +++ b/internal/logic/vm/createfloatingiplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createimagelogic.go b/internal/logic/vm/createimagelogic.go similarity index 94% rename from api/internal/logic/vm/createimagelogic.go rename to internal/logic/vm/createimagelogic.go index 264e9341..38e25cda 100644 --- a/api/internal/logic/vm/createimagelogic.go +++ b/internal/logic/vm/createimagelogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/createmulserverlogic.go b/internal/logic/vm/createmulserverlogic.go similarity index 95% rename from api/internal/logic/vm/createmulserverlogic.go rename to internal/logic/vm/createmulserverlogic.go index b59f575c..1f5836c0 100644 --- a/api/internal/logic/vm/createmulserverlogic.go +++ b/internal/logic/vm/createmulserverlogic.go @@ -11,8 +11,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createnetworklogic.go b/internal/logic/vm/createnetworklogic.go similarity index 94% rename from api/internal/logic/vm/createnetworklogic.go rename to internal/logic/vm/createnetworklogic.go index 8c2a26b2..bc3df417 100644 --- a/api/internal/logic/vm/createnetworklogic.go +++ b/internal/logic/vm/createnetworklogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/createnetworksegmentrangelogic.go b/internal/logic/vm/createnetworksegmentrangelogic.go similarity index 93% rename from api/internal/logic/vm/createnetworksegmentrangelogic.go rename to internal/logic/vm/createnetworksegmentrangelogic.go index b9ae3b57..ca9e59a5 100644 --- a/api/internal/logic/vm/createnetworksegmentrangelogic.go +++ b/internal/logic/vm/createnetworksegmentrangelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createnodelogic.go b/internal/logic/vm/createnodelogic.go similarity index 94% rename from api/internal/logic/vm/createnodelogic.go rename to internal/logic/vm/createnodelogic.go index ee34c790..9c2c8ddb 100644 --- a/api/internal/logic/vm/createnodelogic.go +++ b/internal/logic/vm/createnodelogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createportlogic.go b/internal/logic/vm/createportlogic.go similarity index 92% rename from api/internal/logic/vm/createportlogic.go rename to internal/logic/vm/createportlogic.go index c305da4e..633c8ab0 100644 --- a/api/internal/logic/vm/createportlogic.go +++ b/internal/logic/vm/createportlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createrouterlogic.go b/internal/logic/vm/createrouterlogic.go similarity index 92% rename from api/internal/logic/vm/createrouterlogic.go rename to internal/logic/vm/createrouterlogic.go index aa325a63..69a4b024 100644 --- a/api/internal/logic/vm/createrouterlogic.go +++ b/internal/logic/vm/createrouterlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createsecuritygrouplogic.go b/internal/logic/vm/createsecuritygrouplogic.go similarity index 92% rename from api/internal/logic/vm/createsecuritygrouplogic.go rename to internal/logic/vm/createsecuritygrouplogic.go index ae512392..ae1455a1 100644 --- a/api/internal/logic/vm/createsecuritygrouplogic.go +++ b/internal/logic/vm/createsecuritygrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createsecuritygrouprulelogic.go b/internal/logic/vm/createsecuritygrouprulelogic.go similarity index 92% rename from api/internal/logic/vm/createsecuritygrouprulelogic.go rename to internal/logic/vm/createsecuritygrouprulelogic.go index 00b18cf0..0c7d9357 100644 --- a/api/internal/logic/vm/createsecuritygrouprulelogic.go +++ b/internal/logic/vm/createsecuritygrouprulelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/createserverlogic.go b/internal/logic/vm/createserverlogic.go similarity index 94% rename from api/internal/logic/vm/createserverlogic.go rename to internal/logic/vm/createserverlogic.go index fec78356..c6aee1d4 100644 --- a/api/internal/logic/vm/createserverlogic.go +++ b/internal/logic/vm/createserverlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/createsubnetlogic.go b/internal/logic/vm/createsubnetlogic.go similarity index 94% rename from api/internal/logic/vm/createsubnetlogic.go rename to internal/logic/vm/createsubnetlogic.go index 23767979..73b85119 100644 --- a/api/internal/logic/vm/createsubnetlogic.go +++ b/internal/logic/vm/createsubnetlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/createvolumelogic.go b/internal/logic/vm/createvolumelogic.go similarity index 94% rename from api/internal/logic/vm/createvolumelogic.go rename to internal/logic/vm/createvolumelogic.go index ce5710ee..3f4ffeec 100644 --- a/api/internal/logic/vm/createvolumelogic.go +++ b/internal/logic/vm/createvolumelogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/createvolumetypeslogic.go b/internal/logic/vm/createvolumetypeslogic.go similarity index 94% rename from api/internal/logic/vm/createvolumetypeslogic.go rename to internal/logic/vm/createvolumetypeslogic.go index 763e11c7..5b922fea 100644 --- a/api/internal/logic/vm/createvolumetypeslogic.go +++ b/internal/logic/vm/createvolumetypeslogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletefirewallgrouplogic.go b/internal/logic/vm/deletefirewallgrouplogic.go similarity index 92% rename from api/internal/logic/vm/deletefirewallgrouplogic.go rename to internal/logic/vm/deletefirewallgrouplogic.go index ca0d6637..44925f2a 100644 --- a/api/internal/logic/vm/deletefirewallgrouplogic.go +++ b/internal/logic/vm/deletefirewallgrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletefirewallpolicylogic.go b/internal/logic/vm/deletefirewallpolicylogic.go similarity index 92% rename from api/internal/logic/vm/deletefirewallpolicylogic.go rename to internal/logic/vm/deletefirewallpolicylogic.go index 4fd40561..3d5604b2 100644 --- a/api/internal/logic/vm/deletefirewallpolicylogic.go +++ b/internal/logic/vm/deletefirewallpolicylogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletefirewallrulelogic.go b/internal/logic/vm/deletefirewallrulelogic.go similarity index 92% rename from api/internal/logic/vm/deletefirewallrulelogic.go rename to internal/logic/vm/deletefirewallrulelogic.go index 5fd81587..777831da 100644 --- a/api/internal/logic/vm/deletefirewallrulelogic.go +++ b/internal/logic/vm/deletefirewallrulelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deleteflavorlogic.go b/internal/logic/vm/deleteflavorlogic.go similarity index 92% rename from api/internal/logic/vm/deleteflavorlogic.go rename to internal/logic/vm/deleteflavorlogic.go index c4e66fa8..24be5341 100644 --- a/api/internal/logic/vm/deleteflavorlogic.go +++ b/internal/logic/vm/deleteflavorlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletefloatingiplogic.go b/internal/logic/vm/deletefloatingiplogic.go similarity index 92% rename from api/internal/logic/vm/deletefloatingiplogic.go rename to internal/logic/vm/deletefloatingiplogic.go index e0355b66..5db6df01 100644 --- a/api/internal/logic/vm/deletefloatingiplogic.go +++ b/internal/logic/vm/deletefloatingiplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deleteimagelogic.go b/internal/logic/vm/deleteimagelogic.go similarity index 94% rename from api/internal/logic/vm/deleteimagelogic.go rename to internal/logic/vm/deleteimagelogic.go index ead0a488..909d1d5a 100644 --- a/api/internal/logic/vm/deleteimagelogic.go +++ b/internal/logic/vm/deleteimagelogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/deletenetworklogic.go b/internal/logic/vm/deletenetworklogic.go similarity index 94% rename from api/internal/logic/vm/deletenetworklogic.go rename to internal/logic/vm/deletenetworklogic.go index e3a36fe0..39c713c4 100644 --- a/api/internal/logic/vm/deletenetworklogic.go +++ b/internal/logic/vm/deletenetworklogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/deletenetworksegmentrangeslogic.go b/internal/logic/vm/deletenetworksegmentrangeslogic.go similarity index 93% rename from api/internal/logic/vm/deletenetworksegmentrangeslogic.go rename to internal/logic/vm/deletenetworksegmentrangeslogic.go index 2a533b07..aa1d7667 100644 --- a/api/internal/logic/vm/deletenetworksegmentrangeslogic.go +++ b/internal/logic/vm/deletenetworksegmentrangeslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletenodelogic.go b/internal/logic/vm/deletenodelogic.go similarity index 94% rename from api/internal/logic/vm/deletenodelogic.go rename to internal/logic/vm/deletenodelogic.go index c23cd5c6..a0ba89bd 100644 --- a/api/internal/logic/vm/deletenodelogic.go +++ b/internal/logic/vm/deletenodelogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deleteportlogic.go b/internal/logic/vm/deleteportlogic.go similarity index 92% rename from api/internal/logic/vm/deleteportlogic.go rename to internal/logic/vm/deleteportlogic.go index 892440f1..218703ee 100644 --- a/api/internal/logic/vm/deleteportlogic.go +++ b/internal/logic/vm/deleteportlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deleterouterlogic.go b/internal/logic/vm/deleterouterlogic.go similarity index 92% rename from api/internal/logic/vm/deleterouterlogic.go rename to internal/logic/vm/deleterouterlogic.go index 7e39dfdb..f83096cf 100644 --- a/api/internal/logic/vm/deleterouterlogic.go +++ b/internal/logic/vm/deleterouterlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletesecuritygrouplogic.go b/internal/logic/vm/deletesecuritygrouplogic.go similarity index 92% rename from api/internal/logic/vm/deletesecuritygrouplogic.go rename to internal/logic/vm/deletesecuritygrouplogic.go index a5f72343..f866b1cd 100644 --- a/api/internal/logic/vm/deletesecuritygrouplogic.go +++ b/internal/logic/vm/deletesecuritygrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletesecuritygrouprulelogic.go b/internal/logic/vm/deletesecuritygrouprulelogic.go similarity index 92% rename from api/internal/logic/vm/deletesecuritygrouprulelogic.go rename to internal/logic/vm/deletesecuritygrouprulelogic.go index 369be8d1..dc84d958 100644 --- a/api/internal/logic/vm/deletesecuritygrouprulelogic.go +++ b/internal/logic/vm/deletesecuritygrouprulelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deleteserverlogic.go b/internal/logic/vm/deleteserverlogic.go similarity index 94% rename from api/internal/logic/vm/deleteserverlogic.go rename to internal/logic/vm/deleteserverlogic.go index a953e6f1..af21d511 100644 --- a/api/internal/logic/vm/deleteserverlogic.go +++ b/internal/logic/vm/deleteserverlogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/deletesubnetlogic.go b/internal/logic/vm/deletesubnetlogic.go similarity index 92% rename from api/internal/logic/vm/deletesubnetlogic.go rename to internal/logic/vm/deletesubnetlogic.go index 794537cb..38e49f6f 100644 --- a/api/internal/logic/vm/deletesubnetlogic.go +++ b/internal/logic/vm/deletesubnetlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/deletevolumelogic.go b/internal/logic/vm/deletevolumelogic.go similarity index 94% rename from api/internal/logic/vm/deletevolumelogic.go rename to internal/logic/vm/deletevolumelogic.go index c4b0aab7..a4b0fd04 100644 --- a/api/internal/logic/vm/deletevolumelogic.go +++ b/internal/logic/vm/deletevolumelogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/deletevolumetypelogic.go b/internal/logic/vm/deletevolumetypelogic.go similarity index 94% rename from api/internal/logic/vm/deletevolumetypelogic.go rename to internal/logic/vm/deletevolumetypelogic.go index f6b60dd4..d2c6b525 100644 --- a/api/internal/logic/vm/deletevolumetypelogic.go +++ b/internal/logic/vm/deletevolumetypelogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/getcomputelimitslogic.go b/internal/logic/vm/getcomputelimitslogic.go similarity index 94% rename from api/internal/logic/vm/getcomputelimitslogic.go rename to internal/logic/vm/getcomputelimitslogic.go index 8da14faa..4ed2b572 100644 --- a/api/internal/logic/vm/getcomputelimitslogic.go +++ b/internal/logic/vm/getcomputelimitslogic.go @@ -19,8 +19,8 @@ import ( "encoding/json" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/getimagenumlogic.go b/internal/logic/vm/getimagenumlogic.go similarity index 91% rename from api/internal/logic/vm/getimagenumlogic.go rename to internal/logic/vm/getimagenumlogic.go index 24f763d2..f9f0aaa5 100644 --- a/api/internal/logic/vm/getimagenumlogic.go +++ b/internal/logic/vm/getimagenumlogic.go @@ -8,8 +8,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-openstack/openstack" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/getnetworknumlogic.go b/internal/logic/vm/getnetworknumlogic.go similarity index 91% rename from api/internal/logic/vm/getnetworknumlogic.go rename to internal/logic/vm/getnetworknumlogic.go index 0d785b1c..04275863 100644 --- a/api/internal/logic/vm/getnetworknumlogic.go +++ b/internal/logic/vm/getnetworknumlogic.go @@ -9,8 +9,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-openstack/openstack" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/getopenstackoverviewlogic.go b/internal/logic/vm/getopenstackoverviewlogic.go similarity index 88% rename from api/internal/logic/vm/getopenstackoverviewlogic.go rename to internal/logic/vm/getopenstackoverviewlogic.go index 39155fc8..69b43169 100644 --- a/api/internal/logic/vm/getopenstackoverviewlogic.go +++ b/internal/logic/vm/getopenstackoverviewlogic.go @@ -3,8 +3,8 @@ package vm import ( "context" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" ) type GetOpenstackOverviewLogic struct { diff --git a/api/internal/logic/vm/getserversdetailedbyidlogic.go b/internal/logic/vm/getserversdetailedbyidlogic.go similarity index 94% rename from api/internal/logic/vm/getserversdetailedbyidlogic.go rename to internal/logic/vm/getserversdetailedbyidlogic.go index 22bec7c1..5d576e3c 100644 --- a/api/internal/logic/vm/getserversdetailedbyidlogic.go +++ b/internal/logic/vm/getserversdetailedbyidlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/getvolumedetailedbyidlogic.go b/internal/logic/vm/getvolumedetailedbyidlogic.go similarity index 94% rename from api/internal/logic/vm/getvolumedetailedbyidlogic.go rename to internal/logic/vm/getvolumedetailedbyidlogic.go index 0729728b..e3195f74 100644 --- a/api/internal/logic/vm/getvolumedetailedbyidlogic.go +++ b/internal/logic/vm/getvolumedetailedbyidlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/getvolumelimitslogic.go b/internal/logic/vm/getvolumelimitslogic.go similarity index 94% rename from api/internal/logic/vm/getvolumelimitslogic.go rename to internal/logic/vm/getvolumelimitslogic.go index 4f267f23..16ee45f7 100644 --- a/api/internal/logic/vm/getvolumelimitslogic.go +++ b/internal/logic/vm/getvolumelimitslogic.go @@ -19,8 +19,8 @@ import ( "encoding/json" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/listfirewallgroupslogic.go b/internal/logic/vm/listfirewallgroupslogic.go similarity index 92% rename from api/internal/logic/vm/listfirewallgroupslogic.go rename to internal/logic/vm/listfirewallgroupslogic.go index ae8676e7..8111421d 100644 --- a/api/internal/logic/vm/listfirewallgroupslogic.go +++ b/internal/logic/vm/listfirewallgroupslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listfirewallpolicieslogic.go b/internal/logic/vm/listfirewallpolicieslogic.go similarity index 92% rename from api/internal/logic/vm/listfirewallpolicieslogic.go rename to internal/logic/vm/listfirewallpolicieslogic.go index 9a716b56..e5ce2e0e 100644 --- a/api/internal/logic/vm/listfirewallpolicieslogic.go +++ b/internal/logic/vm/listfirewallpolicieslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listfirewallruleslogic.go b/internal/logic/vm/listfirewallruleslogic.go similarity index 92% rename from api/internal/logic/vm/listfirewallruleslogic.go rename to internal/logic/vm/listfirewallruleslogic.go index de2c5fd1..b042005a 100644 --- a/api/internal/logic/vm/listfirewallruleslogic.go +++ b/internal/logic/vm/listfirewallruleslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listflavorsdetaillogic.go b/internal/logic/vm/listflavorsdetaillogic.go similarity index 94% rename from api/internal/logic/vm/listflavorsdetaillogic.go rename to internal/logic/vm/listflavorsdetaillogic.go index 1f0d842c..63b10961 100644 --- a/api/internal/logic/vm/listflavorsdetaillogic.go +++ b/internal/logic/vm/listflavorsdetaillogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/listfloatingipslogic.go b/internal/logic/vm/listfloatingipslogic.go similarity index 92% rename from api/internal/logic/vm/listfloatingipslogic.go rename to internal/logic/vm/listfloatingipslogic.go index c3dea113..c1ba592a 100644 --- a/api/internal/logic/vm/listfloatingipslogic.go +++ b/internal/logic/vm/listfloatingipslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listimageslogic.go b/internal/logic/vm/listimageslogic.go similarity index 94% rename from api/internal/logic/vm/listimageslogic.go rename to internal/logic/vm/listimageslogic.go index 9665a2d1..24332f3a 100644 --- a/api/internal/logic/vm/listimageslogic.go +++ b/internal/logic/vm/listimageslogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/listnetworksegmentrangesrangelogic.go b/internal/logic/vm/listnetworksegmentrangesrangelogic.go similarity index 93% rename from api/internal/logic/vm/listnetworksegmentrangesrangelogic.go rename to internal/logic/vm/listnetworksegmentrangesrangelogic.go index 263659a4..70554ceb 100644 --- a/api/internal/logic/vm/listnetworksegmentrangesrangelogic.go +++ b/internal/logic/vm/listnetworksegmentrangesrangelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listnetworkslogic.go b/internal/logic/vm/listnetworkslogic.go similarity index 94% rename from api/internal/logic/vm/listnetworkslogic.go rename to internal/logic/vm/listnetworkslogic.go index 2433324d..df195272 100644 --- a/api/internal/logic/vm/listnetworkslogic.go +++ b/internal/logic/vm/listnetworkslogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/listnodeslogic.go b/internal/logic/vm/listnodeslogic.go similarity index 94% rename from api/internal/logic/vm/listnodeslogic.go rename to internal/logic/vm/listnodeslogic.go index 01fcfa65..76e35245 100644 --- a/api/internal/logic/vm/listnodeslogic.go +++ b/internal/logic/vm/listnodeslogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listportslogic.go b/internal/logic/vm/listportslogic.go similarity index 91% rename from api/internal/logic/vm/listportslogic.go rename to internal/logic/vm/listportslogic.go index 91f28123..1883e6a0 100644 --- a/api/internal/logic/vm/listportslogic.go +++ b/internal/logic/vm/listportslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listrouterslogic.go b/internal/logic/vm/listrouterslogic.go similarity index 92% rename from api/internal/logic/vm/listrouterslogic.go rename to internal/logic/vm/listrouterslogic.go index 66a74a40..6a5ad5da 100644 --- a/api/internal/logic/vm/listrouterslogic.go +++ b/internal/logic/vm/listrouterslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listsecuritygroupruleslogic.go b/internal/logic/vm/listsecuritygroupruleslogic.go similarity index 92% rename from api/internal/logic/vm/listsecuritygroupruleslogic.go rename to internal/logic/vm/listsecuritygroupruleslogic.go index aeffcd26..f9da2f2f 100644 --- a/api/internal/logic/vm/listsecuritygroupruleslogic.go +++ b/internal/logic/vm/listsecuritygroupruleslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listsecuritygroupslogic.go b/internal/logic/vm/listsecuritygroupslogic.go similarity index 92% rename from api/internal/logic/vm/listsecuritygroupslogic.go rename to internal/logic/vm/listsecuritygroupslogic.go index f4f713a5..87dc4435 100644 --- a/api/internal/logic/vm/listsecuritygroupslogic.go +++ b/internal/logic/vm/listsecuritygroupslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listserverlogic.go b/internal/logic/vm/listserverlogic.go similarity index 94% rename from api/internal/logic/vm/listserverlogic.go rename to internal/logic/vm/listserverlogic.go index 5fb8a4fb..42a1e1b2 100644 --- a/api/internal/logic/vm/listserverlogic.go +++ b/internal/logic/vm/listserverlogic.go @@ -19,8 +19,8 @@ import ( "github.com/jinzhu/copier" "github.com/pkg/errors" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/listserversdetailedlogic.go b/internal/logic/vm/listserversdetailedlogic.go similarity index 93% rename from api/internal/logic/vm/listserversdetailedlogic.go rename to internal/logic/vm/listserversdetailedlogic.go index 79b217e5..5f01f1fa 100644 --- a/api/internal/logic/vm/listserversdetailedlogic.go +++ b/internal/logic/vm/listserversdetailedlogic.go @@ -19,8 +19,8 @@ import ( "github.com/jinzhu/copier" "github.com/pkg/errors" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-openstack/openstack" diff --git a/api/internal/logic/vm/listsubnetslogic.go b/internal/logic/vm/listsubnetslogic.go similarity index 92% rename from api/internal/logic/vm/listsubnetslogic.go rename to internal/logic/vm/listsubnetslogic.go index 2497089e..34f6ecaf 100644 --- a/api/internal/logic/vm/listsubnetslogic.go +++ b/internal/logic/vm/listsubnetslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listvolumesdetaillogic.go b/internal/logic/vm/listvolumesdetaillogic.go similarity index 94% rename from api/internal/logic/vm/listvolumesdetaillogic.go rename to internal/logic/vm/listvolumesdetaillogic.go index aca25a5c..72470405 100644 --- a/api/internal/logic/vm/listvolumesdetaillogic.go +++ b/internal/logic/vm/listvolumesdetaillogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/listvolumeslogic.go b/internal/logic/vm/listvolumeslogic.go similarity index 94% rename from api/internal/logic/vm/listvolumeslogic.go rename to internal/logic/vm/listvolumeslogic.go index 92dd2ae1..3647fc46 100644 --- a/api/internal/logic/vm/listvolumeslogic.go +++ b/internal/logic/vm/listvolumeslogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/listvolumetypeslogic.go b/internal/logic/vm/listvolumetypeslogic.go similarity index 94% rename from api/internal/logic/vm/listvolumetypeslogic.go rename to internal/logic/vm/listvolumetypeslogic.go index 9af04764..af308cbe 100644 --- a/api/internal/logic/vm/listvolumetypeslogic.go +++ b/internal/logic/vm/listvolumetypeslogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/logic/vm/migrateserverlogic.go b/internal/logic/vm/migrateserverlogic.go similarity index 92% rename from api/internal/logic/vm/migrateserverlogic.go rename to internal/logic/vm/migrateserverlogic.go index 69169bb4..1b093ec8 100644 --- a/api/internal/logic/vm/migrateserverlogic.go +++ b/internal/logic/vm/migrateserverlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/pauseserverlogic.go b/internal/logic/vm/pauseserverlogic.go similarity index 94% rename from api/internal/logic/vm/pauseserverlogic.go rename to internal/logic/vm/pauseserverlogic.go index 4675dfc0..63ce8204 100644 --- a/api/internal/logic/vm/pauseserverlogic.go +++ b/internal/logic/vm/pauseserverlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/rebootserverlogic.go b/internal/logic/vm/rebootserverlogic.go similarity index 94% rename from api/internal/logic/vm/rebootserverlogic.go rename to internal/logic/vm/rebootserverlogic.go index 7f41a3ff..6e0a2e61 100644 --- a/api/internal/logic/vm/rebootserverlogic.go +++ b/internal/logic/vm/rebootserverlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/removesecuritygrouplogic.go b/internal/logic/vm/removesecuritygrouplogic.go similarity index 92% rename from api/internal/logic/vm/removesecuritygrouplogic.go rename to internal/logic/vm/removesecuritygrouplogic.go index 71ea50b2..7d999cfc 100644 --- a/api/internal/logic/vm/removesecuritygrouplogic.go +++ b/internal/logic/vm/removesecuritygrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/rescueserverlogic.go b/internal/logic/vm/rescueserverlogic.go similarity index 92% rename from api/internal/logic/vm/rescueserverlogic.go rename to internal/logic/vm/rescueserverlogic.go index 49931fad..89ad5a41 100644 --- a/api/internal/logic/vm/rescueserverlogic.go +++ b/internal/logic/vm/rescueserverlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/resizeserverlogic.go b/internal/logic/vm/resizeserverlogic.go similarity index 92% rename from api/internal/logic/vm/resizeserverlogic.go rename to internal/logic/vm/resizeserverlogic.go index 87c6c430..9f4b0c82 100644 --- a/api/internal/logic/vm/resizeserverlogic.go +++ b/internal/logic/vm/resizeserverlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/shelveserverlogic.go b/internal/logic/vm/shelveserverlogic.go similarity index 92% rename from api/internal/logic/vm/shelveserverlogic.go rename to internal/logic/vm/shelveserverlogic.go index 0fd6c10f..054f647b 100644 --- a/api/internal/logic/vm/shelveserverlogic.go +++ b/internal/logic/vm/shelveserverlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showfirewallgroupdetailslogic.go b/internal/logic/vm/showfirewallgroupdetailslogic.go similarity index 93% rename from api/internal/logic/vm/showfirewallgroupdetailslogic.go rename to internal/logic/vm/showfirewallgroupdetailslogic.go index 89813126..bac6da25 100644 --- a/api/internal/logic/vm/showfirewallgroupdetailslogic.go +++ b/internal/logic/vm/showfirewallgroupdetailslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showfirewallpolicydetailslogic.go b/internal/logic/vm/showfirewallpolicydetailslogic.go similarity index 93% rename from api/internal/logic/vm/showfirewallpolicydetailslogic.go rename to internal/logic/vm/showfirewallpolicydetailslogic.go index dce3b065..9ce4913d 100644 --- a/api/internal/logic/vm/showfirewallpolicydetailslogic.go +++ b/internal/logic/vm/showfirewallpolicydetailslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showfirewallruledetailslogic.go b/internal/logic/vm/showfirewallruledetailslogic.go similarity index 92% rename from api/internal/logic/vm/showfirewallruledetailslogic.go rename to internal/logic/vm/showfirewallruledetailslogic.go index 1b60c02a..c34a5586 100644 --- a/api/internal/logic/vm/showfirewallruledetailslogic.go +++ b/internal/logic/vm/showfirewallruledetailslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showfloatingipdetailslogic.go b/internal/logic/vm/showfloatingipdetailslogic.go similarity index 92% rename from api/internal/logic/vm/showfloatingipdetailslogic.go rename to internal/logic/vm/showfloatingipdetailslogic.go index 38ee82c8..56785314 100644 --- a/api/internal/logic/vm/showfloatingipdetailslogic.go +++ b/internal/logic/vm/showfloatingipdetailslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/shownetworkdetailslogic.go b/internal/logic/vm/shownetworkdetailslogic.go similarity index 94% rename from api/internal/logic/vm/shownetworkdetailslogic.go rename to internal/logic/vm/shownetworkdetailslogic.go index 60e563fa..c47ec38d 100644 --- a/api/internal/logic/vm/shownetworkdetailslogic.go +++ b/internal/logic/vm/shownetworkdetailslogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/shownetworksegmentrangedetailslogic.go b/internal/logic/vm/shownetworksegmentrangedetailslogic.go similarity index 93% rename from api/internal/logic/vm/shownetworksegmentrangedetailslogic.go rename to internal/logic/vm/shownetworksegmentrangedetailslogic.go index 68e69c39..4450fdb0 100644 --- a/api/internal/logic/vm/shownetworksegmentrangedetailslogic.go +++ b/internal/logic/vm/shownetworksegmentrangedetailslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/shownodedetailslogic.go b/internal/logic/vm/shownodedetailslogic.go similarity index 94% rename from api/internal/logic/vm/shownodedetailslogic.go rename to internal/logic/vm/shownodedetailslogic.go index 6b29d9e1..76dc87ce 100644 --- a/api/internal/logic/vm/shownodedetailslogic.go +++ b/internal/logic/vm/shownodedetailslogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showportdetailslogic.go b/internal/logic/vm/showportdetailslogic.go similarity index 92% rename from api/internal/logic/vm/showportdetailslogic.go rename to internal/logic/vm/showportdetailslogic.go index 6e7ae8c9..9710b22c 100644 --- a/api/internal/logic/vm/showportdetailslogic.go +++ b/internal/logic/vm/showportdetailslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showrouterdetailslogic.go b/internal/logic/vm/showrouterdetailslogic.go similarity index 92% rename from api/internal/logic/vm/showrouterdetailslogic.go rename to internal/logic/vm/showrouterdetailslogic.go index ebc53ad1..a36cfb9d 100644 --- a/api/internal/logic/vm/showrouterdetailslogic.go +++ b/internal/logic/vm/showrouterdetailslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showsecuritygrouplogic.go b/internal/logic/vm/showsecuritygrouplogic.go similarity index 92% rename from api/internal/logic/vm/showsecuritygrouplogic.go rename to internal/logic/vm/showsecuritygrouplogic.go index 4eb4aa16..060b4da6 100644 --- a/api/internal/logic/vm/showsecuritygrouplogic.go +++ b/internal/logic/vm/showsecuritygrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/showsecuritygrouprulelogic.go b/internal/logic/vm/showsecuritygrouprulelogic.go similarity index 92% rename from api/internal/logic/vm/showsecuritygrouprulelogic.go rename to internal/logic/vm/showsecuritygrouprulelogic.go index 3edf3a4c..07cd8977 100644 --- a/api/internal/logic/vm/showsecuritygrouprulelogic.go +++ b/internal/logic/vm/showsecuritygrouprulelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/startserverlogic.go b/internal/logic/vm/startserverlogic.go similarity index 94% rename from api/internal/logic/vm/startserverlogic.go rename to internal/logic/vm/startserverlogic.go index 846944f0..3e88edc9 100644 --- a/api/internal/logic/vm/startserverlogic.go +++ b/internal/logic/vm/startserverlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/stopserverlogic.go b/internal/logic/vm/stopserverlogic.go similarity index 94% rename from api/internal/logic/vm/stopserverlogic.go rename to internal/logic/vm/stopserverlogic.go index 530fd165..54e1a042 100644 --- a/api/internal/logic/vm/stopserverlogic.go +++ b/internal/logic/vm/stopserverlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/suspendserverlogic.go b/internal/logic/vm/suspendserverlogic.go similarity index 92% rename from api/internal/logic/vm/suspendserverlogic.go rename to internal/logic/vm/suspendserverlogic.go index 5e246920..e741af49 100644 --- a/api/internal/logic/vm/suspendserverlogic.go +++ b/internal/logic/vm/suspendserverlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/unpauseserverlogic.go b/internal/logic/vm/unpauseserverlogic.go similarity index 92% rename from api/internal/logic/vm/unpauseserverlogic.go rename to internal/logic/vm/unpauseserverlogic.go index f01651ca..78ad2a4e 100644 --- a/api/internal/logic/vm/unpauseserverlogic.go +++ b/internal/logic/vm/unpauseserverlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/unrescuelogic.go b/internal/logic/vm/unrescuelogic.go similarity index 92% rename from api/internal/logic/vm/unrescuelogic.go rename to internal/logic/vm/unrescuelogic.go index 9cde0bc7..84acca8c 100644 --- a/api/internal/logic/vm/unrescuelogic.go +++ b/internal/logic/vm/unrescuelogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updatefirewallgrouplogic.go b/internal/logic/vm/updatefirewallgrouplogic.go similarity index 92% rename from api/internal/logic/vm/updatefirewallgrouplogic.go rename to internal/logic/vm/updatefirewallgrouplogic.go index c7ea460c..e7ebad10 100644 --- a/api/internal/logic/vm/updatefirewallgrouplogic.go +++ b/internal/logic/vm/updatefirewallgrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updatefloatingiplogic.go b/internal/logic/vm/updatefloatingiplogic.go similarity index 92% rename from api/internal/logic/vm/updatefloatingiplogic.go rename to internal/logic/vm/updatefloatingiplogic.go index 7af49686..c787c469 100644 --- a/api/internal/logic/vm/updatefloatingiplogic.go +++ b/internal/logic/vm/updatefloatingiplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updatenetworklogic.go b/internal/logic/vm/updatenetworklogic.go similarity index 94% rename from api/internal/logic/vm/updatenetworklogic.go rename to internal/logic/vm/updatenetworklogic.go index 48edfef1..9a1b2bb0 100644 --- a/api/internal/logic/vm/updatenetworklogic.go +++ b/internal/logic/vm/updatenetworklogic.go @@ -25,8 +25,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updatenetworksegmentrangeslogic.go b/internal/logic/vm/updatenetworksegmentrangeslogic.go similarity index 93% rename from api/internal/logic/vm/updatenetworksegmentrangeslogic.go rename to internal/logic/vm/updatenetworksegmentrangeslogic.go index 5d8cfbe8..72db0928 100644 --- a/api/internal/logic/vm/updatenetworksegmentrangeslogic.go +++ b/internal/logic/vm/updatenetworksegmentrangeslogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updateportlogic.go b/internal/logic/vm/updateportlogic.go similarity index 92% rename from api/internal/logic/vm/updateportlogic.go rename to internal/logic/vm/updateportlogic.go index fae09088..21428d66 100644 --- a/api/internal/logic/vm/updateportlogic.go +++ b/internal/logic/vm/updateportlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updaterouterlogic.go b/internal/logic/vm/updaterouterlogic.go similarity index 92% rename from api/internal/logic/vm/updaterouterlogic.go rename to internal/logic/vm/updaterouterlogic.go index 17b4c03c..243d4800 100644 --- a/api/internal/logic/vm/updaterouterlogic.go +++ b/internal/logic/vm/updaterouterlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updatesecuritygrouplogic.go b/internal/logic/vm/updatesecuritygrouplogic.go similarity index 92% rename from api/internal/logic/vm/updatesecuritygrouplogic.go rename to internal/logic/vm/updatesecuritygrouplogic.go index 79713476..da694ec6 100644 --- a/api/internal/logic/vm/updatesecuritygrouplogic.go +++ b/internal/logic/vm/updatesecuritygrouplogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updateserverlogic.go b/internal/logic/vm/updateserverlogic.go similarity index 94% rename from api/internal/logic/vm/updateserverlogic.go rename to internal/logic/vm/updateserverlogic.go index 2750e31f..1a571c96 100644 --- a/api/internal/logic/vm/updateserverlogic.go +++ b/internal/logic/vm/updateserverlogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updatesubnetlogic.go b/internal/logic/vm/updatesubnetlogic.go similarity index 92% rename from api/internal/logic/vm/updatesubnetlogic.go rename to internal/logic/vm/updatesubnetlogic.go index af757571..e95f7d88 100644 --- a/api/internal/logic/vm/updatesubnetlogic.go +++ b/internal/logic/vm/updatesubnetlogic.go @@ -10,8 +10,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/updatevolumelogic.go b/internal/logic/vm/updatevolumelogic.go similarity index 94% rename from api/internal/logic/vm/updatevolumelogic.go rename to internal/logic/vm/updatevolumelogic.go index 67c0c9c6..6f745ad6 100644 --- a/api/internal/logic/vm/updatevolumelogic.go +++ b/internal/logic/vm/updatevolumelogic.go @@ -24,8 +24,8 @@ import ( "gitlink.org.cn/JointCloud/pcm-openstack/openstack" "k8s.io/apimachinery/pkg/util/json" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/api/internal/logic/vm/uploadimagelogic.go b/internal/logic/vm/uploadimagelogic.go similarity index 94% rename from api/internal/logic/vm/uploadimagelogic.go rename to internal/logic/vm/uploadimagelogic.go index 7bf881d7..5117f3b5 100644 --- a/api/internal/logic/vm/uploadimagelogic.go +++ b/internal/logic/vm/uploadimagelogic.go @@ -18,8 +18,8 @@ import ( "context" "github.com/jinzhu/copier" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr" error2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/error" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/mqs/ScheduleAi.go b/internal/mqs/ScheduleAi.go similarity index 88% rename from api/internal/mqs/ScheduleAi.go rename to internal/mqs/ScheduleAi.go index 2e47695a..748c6421 100644 --- a/api/internal/mqs/ScheduleAi.go +++ b/internal/mqs/ScheduleAi.go @@ -16,8 +16,8 @@ package mqs import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) /* diff --git a/api/internal/mqs/ScheduleCloud.go b/internal/mqs/ScheduleCloud.go similarity index 95% rename from api/internal/mqs/ScheduleCloud.go rename to internal/mqs/ScheduleCloud.go index a74056ff..67a20b82 100644 --- a/api/internal/mqs/ScheduleCloud.go +++ b/internal/mqs/ScheduleCloud.go @@ -16,7 +16,7 @@ package mqs import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) /* diff --git a/api/internal/mqs/ScheduleHpc.go b/internal/mqs/ScheduleHpc.go similarity index 93% rename from api/internal/mqs/ScheduleHpc.go rename to internal/mqs/ScheduleHpc.go index 5132c56e..78e54976 100644 --- a/api/internal/mqs/ScheduleHpc.go +++ b/internal/mqs/ScheduleHpc.go @@ -16,7 +16,7 @@ package mqs import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) /* diff --git a/api/internal/mqs/ScheduleVm.go b/internal/mqs/ScheduleVm.go similarity index 93% rename from api/internal/mqs/ScheduleVm.go rename to internal/mqs/ScheduleVm.go index 6c362807..5c0af637 100644 --- a/api/internal/mqs/ScheduleVm.go +++ b/internal/mqs/ScheduleVm.go @@ -2,7 +2,7 @@ package mqs import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) /* diff --git a/api/internal/mqs/queue.go b/internal/mqs/queue.go similarity index 100% rename from api/internal/mqs/queue.go rename to internal/mqs/queue.go diff --git a/api/internal/scheduler/algorithm/providerPricing/pricing.go b/internal/scheduler/algorithm/providerPricing/pricing.go similarity index 100% rename from api/internal/scheduler/algorithm/providerPricing/pricing.go rename to internal/scheduler/algorithm/providerPricing/pricing.go diff --git a/api/internal/scheduler/algorithm/providerPricing/provider.go b/internal/scheduler/algorithm/providerPricing/provider.go similarity index 100% rename from api/internal/scheduler/algorithm/providerPricing/provider.go rename to internal/scheduler/algorithm/providerPricing/provider.go diff --git a/api/internal/scheduler/algorithm/providerPricing/strategy.go b/internal/scheduler/algorithm/providerPricing/strategy.go similarity index 100% rename from api/internal/scheduler/algorithm/providerPricing/strategy.go rename to internal/scheduler/algorithm/providerPricing/strategy.go diff --git a/api/internal/scheduler/algorithm/providerPricing/task.go b/internal/scheduler/algorithm/providerPricing/task.go similarity index 100% rename from api/internal/scheduler/algorithm/providerPricing/task.go rename to internal/scheduler/algorithm/providerPricing/task.go diff --git a/api/internal/scheduler/algorithm/weightDistributing/weightDistributing.go b/internal/scheduler/algorithm/weightDistributing/weightDistributing.go similarity index 100% rename from api/internal/scheduler/algorithm/weightDistributing/weightDistributing.go rename to internal/scheduler/algorithm/weightDistributing/weightDistributing.go diff --git a/api/internal/scheduler/common/common.go b/internal/scheduler/common/common.go similarity index 100% rename from api/internal/scheduler/common/common.go rename to internal/scheduler/common/common.go diff --git a/api/internal/scheduler/database/aiStorage.go b/internal/scheduler/database/aiStorage.go similarity index 98% rename from api/internal/scheduler/database/aiStorage.go rename to internal/scheduler/database/aiStorage.go index 6db3cdac..a482e5a7 100644 --- a/api/internal/scheduler/database/aiStorage.go +++ b/internal/scheduler/database/aiStorage.go @@ -2,9 +2,9 @@ package database import ( "github.com/zeromicro/go-zero/core/logx" - clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/api/client" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" diff --git a/api/internal/scheduler/database/cloudStorage.go b/internal/scheduler/database/cloudStorage.go similarity index 93% rename from api/internal/scheduler/database/cloudStorage.go rename to internal/scheduler/database/cloudStorage.go index f9c3a341..f27b9f3a 100644 --- a/api/internal/scheduler/database/cloudStorage.go +++ b/internal/scheduler/database/cloudStorage.go @@ -1,7 +1,7 @@ package database import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/entity" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/entity" "gorm.io/gorm" ) diff --git a/api/internal/scheduler/database/storage.go b/internal/scheduler/database/storage.go similarity index 72% rename from api/internal/scheduler/database/storage.go rename to internal/scheduler/database/storage.go index 3202b22a..25ce0ab1 100644 --- a/api/internal/scheduler/database/storage.go +++ b/internal/scheduler/database/storage.go @@ -1,6 +1,6 @@ package database -import "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/entity" +import "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/entity" type Storage interface { GetProviderParams() ([]entity.ProviderParams, error) diff --git a/api/internal/scheduler/entity/entity.go b/internal/scheduler/entity/entity.go similarity index 100% rename from api/internal/scheduler/entity/entity.go rename to internal/scheduler/entity/entity.go diff --git a/api/internal/scheduler/scheduler.go b/internal/scheduler/scheduler.go similarity index 87% rename from api/internal/scheduler/scheduler.go rename to internal/scheduler/scheduler.go index bbdb1f23..23111bc0 100644 --- a/api/internal/scheduler/scheduler.go +++ b/internal/scheduler/scheduler.go @@ -18,12 +18,11 @@ import ( "encoding/json" "github.com/pkg/errors" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/common" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/database" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/pkg/response" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/client/participantservice" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/common" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/database" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/response" "gorm.io/gorm" "sigs.k8s.io/yaml" "strings" @@ -36,7 +35,6 @@ type Scheduler struct { subSchedule SubSchedule dbEngin *gorm.DB result []string //pID:子任务yamlstring 键值对 - participantRpc participantservice.ParticipantService AiStorages *database.AiStorage AiService *service.AiService mu sync.RWMutex @@ -48,13 +46,13 @@ type SubSchedule interface { AssignTask(clusters []*strategy.AssignedCluster) (interface{}, error) } -func NewScheduler(subSchedule SubSchedule, val string, dbEngin *gorm.DB, participantRpc participantservice.ParticipantService) (*Scheduler, error) { +func NewScheduler(subSchedule SubSchedule, val string, dbEngin *gorm.DB) (*Scheduler, error) { var task *response.TaskInfo err := json.Unmarshal([]byte(val), &task) if err != nil { return nil, errors.New("create scheduler failed : " + err.Error()) } - return &Scheduler{task: task, subSchedule: subSchedule, dbEngin: dbEngin, participantRpc: participantRpc}, nil + return &Scheduler{task: task, subSchedule: subSchedule, dbEngin: dbEngin}, nil } func NewSchdlr(aiService *service.AiService, storages *database.AiStorage) *Scheduler { diff --git a/api/internal/scheduler/schedulers/aiScheduler.go b/internal/scheduler/schedulers/aiScheduler.go similarity index 94% rename from api/internal/scheduler/schedulers/aiScheduler.go rename to internal/scheduler/schedulers/aiScheduler.go index 8be805d6..64f2f550 100644 --- a/api/internal/scheduler/schedulers/aiScheduler.go +++ b/internal/scheduler/schedulers/aiScheduler.go @@ -21,15 +21,15 @@ import ( "fmt" "github.com/zeromicro/go-zero/core/logx" "gitlink.org.cn/JointCloud/pcm-ac/hpcAC" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/common" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy/param" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/pkg/response" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/common" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy/param" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" + "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/response" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-modelarts/client/modelartsservice" "gitlink.org.cn/JointCloud/pcm-octopus/octopus" diff --git a/api/internal/scheduler/schedulers/cloudScheduler.go b/internal/scheduler/schedulers/cloudScheduler.go similarity index 91% rename from api/internal/scheduler/schedulers/cloudScheduler.go rename to internal/scheduler/schedulers/cloudScheduler.go index f14db395..cbd862b2 100644 --- a/api/internal/scheduler/schedulers/cloudScheduler.go +++ b/internal/scheduler/schedulers/cloudScheduler.go @@ -17,15 +17,15 @@ package schedulers import ( "context" "errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy/param" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/pkg/response" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy/param" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models/cloud" + "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/response" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" diff --git a/api/internal/scheduler/schedulers/hpcScheduler.go b/internal/scheduler/schedulers/hpcScheduler.go similarity index 87% rename from api/internal/scheduler/schedulers/hpcScheduler.go rename to internal/scheduler/schedulers/hpcScheduler.go index 6d84eaef..4ca0e04a 100644 --- a/api/internal/scheduler/schedulers/hpcScheduler.go +++ b/internal/scheduler/schedulers/hpcScheduler.go @@ -15,11 +15,11 @@ package schedulers import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/algorithm/providerPricing" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/pkg/response" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/algorithm/providerPricing" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" + "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/response" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" ) diff --git a/api/internal/scheduler/schedulers/option/aiOption.go b/internal/scheduler/schedulers/option/aiOption.go similarity index 100% rename from api/internal/scheduler/schedulers/option/aiOption.go rename to internal/scheduler/schedulers/option/aiOption.go diff --git a/api/internal/scheduler/schedulers/option/cloudOption.go b/internal/scheduler/schedulers/option/cloudOption.go similarity index 100% rename from api/internal/scheduler/schedulers/option/cloudOption.go rename to internal/scheduler/schedulers/option/cloudOption.go diff --git a/api/internal/scheduler/schedulers/option/inferOption.go b/internal/scheduler/schedulers/option/inferOption.go similarity index 100% rename from api/internal/scheduler/schedulers/option/inferOption.go rename to internal/scheduler/schedulers/option/inferOption.go diff --git a/api/internal/scheduler/schedulers/option/option.go b/internal/scheduler/schedulers/option/option.go similarity index 100% rename from api/internal/scheduler/schedulers/option/option.go rename to internal/scheduler/schedulers/option/option.go diff --git a/api/internal/scheduler/schedulers/option/vmOption.go b/internal/scheduler/schedulers/option/vmOption.go similarity index 100% rename from api/internal/scheduler/schedulers/option/vmOption.go rename to internal/scheduler/schedulers/option/vmOption.go diff --git a/api/internal/scheduler/schedulers/vmScheduler.go b/internal/scheduler/schedulers/vmScheduler.go similarity index 89% rename from api/internal/scheduler/schedulers/vmScheduler.go rename to internal/scheduler/schedulers/vmScheduler.go index 3d8e4750..0163d693 100644 --- a/api/internal/scheduler/schedulers/vmScheduler.go +++ b/internal/scheduler/schedulers/vmScheduler.go @@ -3,15 +3,15 @@ package schedulers import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/algorithm/providerPricing" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/database" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/pkg/response" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/algorithm/providerPricing" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/database" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" + "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/response" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gorm.io/gorm" diff --git a/api/internal/scheduler/service/aiService.go b/internal/scheduler/service/aiService.go similarity index 82% rename from api/internal/scheduler/service/aiService.go rename to internal/scheduler/service/aiService.go index 6d07a8e7..d282ee04 100644 --- a/api/internal/scheduler/service/aiService.go +++ b/internal/scheduler/service/aiService.go @@ -4,15 +4,15 @@ import ( "github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/zrpc" hpcacclient "gitlink.org.cn/JointCloud/pcm-ac/hpcacclient" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/config" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/database" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/executor" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/inference" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/config" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/database" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/executor" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/inference" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-modelarts/client/imagesservice" "gitlink.org.cn/JointCloud/pcm-modelarts/client/modelartsservice" "gitlink.org.cn/JointCloud/pcm-octopus/octopusclient" diff --git a/api/internal/scheduler/service/collector/collector.go b/internal/scheduler/service/collector/collector.go similarity index 94% rename from api/internal/scheduler/service/collector/collector.go rename to internal/scheduler/service/collector/collector.go index 4c978628..e1d1e6d8 100644 --- a/api/internal/scheduler/service/collector/collector.go +++ b/internal/scheduler/service/collector/collector.go @@ -2,7 +2,7 @@ package collector import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" ) type AiCollector interface { diff --git a/api/internal/scheduler/service/executor/aiExecutor.go b/internal/scheduler/service/executor/aiExecutor.go similarity index 63% rename from api/internal/scheduler/service/executor/aiExecutor.go rename to internal/scheduler/service/executor/aiExecutor.go index de3e49da..5cdf65a9 100644 --- a/api/internal/scheduler/service/executor/aiExecutor.go +++ b/internal/scheduler/service/executor/aiExecutor.go @@ -2,7 +2,7 @@ package executor import ( "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" ) type AiExecutor interface { diff --git a/api/internal/scheduler/service/inference/imageInfer.go b/internal/scheduler/service/inference/imageInfer.go similarity index 95% rename from api/internal/scheduler/service/inference/imageInfer.go rename to internal/scheduler/service/inference/imageInfer.go index 1085f919..a1480549 100644 --- a/api/internal/scheduler/service/inference/imageInfer.go +++ b/internal/scheduler/service/inference/imageInfer.go @@ -6,12 +6,12 @@ import ( "errors" "github.com/go-resty/resty/v2" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/database" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/database" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/storeLink" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" diff --git a/api/internal/scheduler/service/status/taskStatusSync.go b/internal/scheduler/service/status/taskStatusSync.go similarity index 98% rename from api/internal/scheduler/service/status/taskStatusSync.go rename to internal/scheduler/service/status/taskStatusSync.go index 52bfe922..7a48d9f9 100644 --- a/api/internal/scheduler/service/status/taskStatusSync.go +++ b/internal/scheduler/service/status/taskStatusSync.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/api/internal/scheduler/strategy/dynamicResources.go b/internal/scheduler/strategy/dynamicResources.go similarity index 88% rename from api/internal/scheduler/strategy/dynamicResources.go rename to internal/scheduler/strategy/dynamicResources.go index 913ea0b8..ff7f4109 100644 --- a/api/internal/scheduler/strategy/dynamicResources.go +++ b/internal/scheduler/strategy/dynamicResources.go @@ -2,9 +2,9 @@ package strategy import ( "errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/common" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/common" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" ) type DynamicResourcesStrategy struct { diff --git a/api/internal/scheduler/strategy/param/params.go b/internal/scheduler/strategy/param/params.go similarity index 50% rename from api/internal/scheduler/strategy/param/params.go rename to internal/scheduler/strategy/param/params.go index 558cfef1..69c7e2c4 100644 --- a/api/internal/scheduler/strategy/param/params.go +++ b/internal/scheduler/strategy/param/params.go @@ -1,7 +1,7 @@ package param import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" ) type Params struct { diff --git a/api/internal/scheduler/strategy/param/resourcePricing.go b/internal/scheduler/strategy/param/resourcePricing.go similarity index 88% rename from api/internal/scheduler/strategy/param/resourcePricing.go rename to internal/scheduler/strategy/param/resourcePricing.go index 4c47e7cc..b6e1aa1b 100644 --- a/api/internal/scheduler/strategy/param/resourcePricing.go +++ b/internal/scheduler/strategy/param/resourcePricing.go @@ -1,7 +1,7 @@ package param import ( - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/algorithm/providerPricing" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/algorithm/providerPricing" "strconv" ) diff --git a/api/internal/scheduler/strategy/random.go b/internal/scheduler/strategy/random.go similarity index 100% rename from api/internal/scheduler/strategy/random.go rename to internal/scheduler/strategy/random.go diff --git a/api/internal/scheduler/strategy/replication.go b/internal/scheduler/strategy/replication.go similarity index 100% rename from api/internal/scheduler/strategy/replication.go rename to internal/scheduler/strategy/replication.go diff --git a/api/internal/scheduler/strategy/resourcePricing.go b/internal/scheduler/strategy/resourcePricing.go similarity index 96% rename from api/internal/scheduler/strategy/resourcePricing.go rename to internal/scheduler/strategy/resourcePricing.go index 32d3de6b..d24bf2b1 100644 --- a/api/internal/scheduler/strategy/resourcePricing.go +++ b/internal/scheduler/strategy/resourcePricing.go @@ -16,8 +16,8 @@ package strategy import ( "errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/algorithm/providerPricing" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy/param" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/algorithm/providerPricing" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy/param" "strconv" ) diff --git a/api/internal/scheduler/strategy/singleAssignment.go b/internal/scheduler/strategy/singleAssignment.go similarity index 100% rename from api/internal/scheduler/strategy/singleAssignment.go rename to internal/scheduler/strategy/singleAssignment.go diff --git a/api/internal/scheduler/strategy/staticWeight.go b/internal/scheduler/strategy/staticWeight.go similarity index 92% rename from api/internal/scheduler/strategy/staticWeight.go rename to internal/scheduler/strategy/staticWeight.go index f106b608..da5ab621 100644 --- a/api/internal/scheduler/strategy/staticWeight.go +++ b/internal/scheduler/strategy/staticWeight.go @@ -2,7 +2,7 @@ package strategy import ( "errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/algorithm/weightDistributing" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/algorithm/weightDistributing" ) type StaticWeightStrategy struct { diff --git a/api/internal/scheduler/strategy/strategy.go b/internal/scheduler/strategy/strategy.go similarity index 100% rename from api/internal/scheduler/strategy/strategy.go rename to internal/scheduler/strategy/strategy.go diff --git a/api/internal/scheduler/strategy/test/strategy_test.go b/internal/scheduler/strategy/test/strategy_test.go similarity index 96% rename from api/internal/scheduler/strategy/test/strategy_test.go rename to internal/scheduler/strategy/test/strategy_test.go index de36b7be..0850cd07 100644 --- a/api/internal/scheduler/strategy/test/strategy_test.go +++ b/internal/scheduler/strategy/test/strategy_test.go @@ -2,9 +2,9 @@ package test import ( "fmt" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/entity" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/strategy" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/entity" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/strategy" "math/rand" "testing" "time" diff --git a/api/internal/storeLink/modelarts.go b/internal/storeLink/modelarts.go similarity index 98% rename from api/internal/storeLink/modelarts.go rename to internal/storeLink/modelarts.go index 331becb1..caa8ec24 100644 --- a/api/internal/storeLink/modelarts.go +++ b/internal/storeLink/modelarts.go @@ -17,8 +17,8 @@ package storeLink import ( "context" "github.com/pkg/errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils/timeutils" diff --git a/api/internal/storeLink/octopus.go b/internal/storeLink/octopus.go similarity index 99% rename from api/internal/storeLink/octopus.go rename to internal/storeLink/octopus.go index ed706c0a..2813d048 100644 --- a/api/internal/storeLink/octopus.go +++ b/internal/storeLink/octopus.go @@ -17,8 +17,8 @@ package storeLink import ( "context" "errors" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "gitlink.org.cn/JointCloud/pcm-octopus/octopus" diff --git a/api/internal/storeLink/shuguangHpc.go b/internal/storeLink/shuguangHpc.go similarity index 99% rename from api/internal/storeLink/shuguangHpc.go rename to internal/storeLink/shuguangHpc.go index afb1fdd5..52e4823e 100644 --- a/api/internal/storeLink/shuguangHpc.go +++ b/internal/storeLink/shuguangHpc.go @@ -6,7 +6,7 @@ import ( "fmt" "gitlink.org.cn/JointCloud/pcm-ac/hpcAC" hpcacclient "gitlink.org.cn/JointCloud/pcm-ac/hpcacclient" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "strconv" "strings" diff --git a/api/internal/storeLink/shuguangai.go b/internal/storeLink/shuguangai.go similarity index 98% rename from api/internal/storeLink/shuguangai.go rename to internal/storeLink/shuguangai.go index 2a634a4c..b44a0c1b 100644 --- a/api/internal/storeLink/shuguangai.go +++ b/internal/storeLink/shuguangai.go @@ -19,10 +19,10 @@ import ( "errors" "gitlink.org.cn/JointCloud/pcm-ac/hpcAC" hpcacclient "gitlink.org.cn/JointCloud/pcm-ac/hpcacclient" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/common" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/schedulers/option" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/common" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" "strconv" "strings" diff --git a/api/internal/storeLink/storeLink.go b/internal/storeLink/storeLink.go similarity index 99% rename from api/internal/storeLink/storeLink.go rename to internal/storeLink/storeLink.go index 69cfc02d..9dcf782a 100644 --- a/api/internal/storeLink/storeLink.go +++ b/internal/storeLink/storeLink.go @@ -20,9 +20,9 @@ import ( "github.com/pkg/errors" "gitlink.org.cn/JointCloud/pcm-ac/hpcAC" hpcacclient "gitlink.org.cn/JointCloud/pcm-ac/hpcacclient" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/common" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service/collector" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/types" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/common" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils/timeutils" "gitlink.org.cn/JointCloud/pcm-modelarts/client/imagesservice" diff --git a/api/internal/svc/servicecontext.go b/internal/svc/servicecontext.go similarity index 89% rename from api/internal/svc/servicecontext.go rename to internal/svc/servicecontext.go index a2ee4aed..1fa35295 100644 --- a/api/internal/svc/servicecontext.go +++ b/internal/svc/servicecontext.go @@ -22,13 +22,12 @@ import ( "github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/zrpc" hpcacclient "gitlink.org.cn/JointCloud/pcm-ac/hpcacclient" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/config" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/database" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/scheduler/service" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/config" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/database" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/tracker" "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/client/participantservice" "gitlink.org.cn/JointCloud/pcm-modelarts/client/imagesservice" "gitlink.org.cn/JointCloud/pcm-modelarts/client/modelartsservice" "gitlink.org.cn/JointCloud/pcm-octopus/octopusclient" @@ -55,7 +54,6 @@ type ServiceContext struct { CephRpc cephclient.Ceph OpenstackRpc openstackclient.Openstack MonitorClient map[int64]tracker.Prometheus - ParticipantRpc participantservice.ParticipantService PromClient tracker.Prometheus AlertClient *alert.AlertmanagerAPI HttpClient *resty.Client @@ -135,7 +133,6 @@ func NewServiceContext(c config.Config) *ServiceContext { OctopusRpc: octopusclient.NewOctopus(zrpc.MustNewClient(c.OctopusRpcConf)), OpenstackRpc: openstackclient.NewOpenstack(zrpc.MustNewClient(c.OpenstackRpcConf)), MonitorClient: make(map[int64]tracker.Prometheus), - ParticipantRpc: participantservice.NewParticipantService(zrpc.MustNewClient(c.PcmCoreRpcConf)), PromClient: promClient, AlertClient: alertClient, HttpClient: httpClient, diff --git a/api/internal/types/types.go b/internal/types/types.go similarity index 100% rename from api/internal/types/types.go rename to internal/types/types.go diff --git a/api/pcm.go b/pcm.go similarity index 79% rename from api/pcm.go rename to pcm.go index dc46d1ba..95215948 100644 --- a/api/pcm.go +++ b/pcm.go @@ -21,14 +21,14 @@ import ( "github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/service" "github.com/zeromicro/go-zero/rest" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/config" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/cron" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/handler" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/mqs" - "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/config" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/cron" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/handler" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/mqs" + "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc" ) -var configFile = flag.String("f", "api/etc/pcm.yaml", "the config file") +var configFile = flag.String("f", "etc/pcm.yaml", "the config file") func main() { flag.Parse() diff --git a/api/pkg/response/TaskInfo.go b/pkg/response/TaskInfo.go similarity index 100% rename from api/pkg/response/TaskInfo.go rename to pkg/response/TaskInfo.go diff --git a/rpc/Dockerfile b/rpc/Dockerfile deleted file mode 100644 index fb0fb43a..00000000 --- a/rpc/Dockerfile +++ /dev/null @@ -1,30 +0,0 @@ -FROM golang:1.21.2-alpine3.18 AS builder - -WORKDIR /app - -COPY . . - -RUN go env -w GO111MODULE=on \ -&& go env -w GOPROXY=https://goproxy.cn,direct \ -&& go env -w CGO_ENABLED=0 \ -&& go mod download -RUN go build -o pcm-coordinator-rpc /app/rpc/pcmcore.go - - -FROM alpine:3.18 - -WORKDIR /app - -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.sjtug.sjtu.edu.cn/g' /etc/apk/repositories && \ - apk add --no-cache ca-certificates tzdata && \ - update-ca-certificates && \ - rm -rf /var/cache/apk/* - -COPY --from=builder /app/pcm-coordinator-api /app/ -COPY --from=builder /app/api/etc/pcm.yaml /app/ - -ENV TZ=Asia/Shanghai - -EXPOSE 2004 - -ENTRYPOINT ./pcm-coordinator-rpc -f pcmcore.yaml \ No newline at end of file diff --git a/rpc/Makefile b/rpc/Makefile deleted file mode 100644 index 7f152f2f..00000000 --- a/rpc/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -Generate-AMD64: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-coordinator-rpc pcmcore.go - -Generate-ARM64: - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -o pcm-coordinator-rpc pcmcore.go - -rpc-gen: - goctl rpc protoc pb/*.proto --go_out=. --go-grpc_out=. --zrpc_out=. -m - protoc-go-inject-tag -input="pcmCore/*.pb.go" -remove_tag_comment \ No newline at end of file diff --git a/rpc/client/participantservice/participantservice.go b/rpc/client/participantservice/participantservice.go deleted file mode 100644 index 564c3d19..00000000 --- a/rpc/client/participantservice/participantservice.go +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by goctl. DO NOT EDIT. -// Source: pcmCore.proto - -package participantservice - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/zrpc" - "google.golang.org/grpc" -) - -type ( - AiInfo = pcmCore.AiInfo - ApplyInfo = pcmCore.ApplyInfo - ApplyListReq = pcmCore.ApplyListReq - ApplyListResp = pcmCore.ApplyListResp - ClientInfo = pcmCore.ClientInfo - CloudInfo = pcmCore.CloudInfo - HealthCheckResp = pcmCore.HealthCheckResp - HpcInfo = pcmCore.HpcInfo - InfoListReq = pcmCore.InfoListReq - InfoListResp = pcmCore.InfoListResp - ListParticipantAvailResp = pcmCore.ListParticipantAvailResp - ListParticipantPhyResp = pcmCore.ListParticipantPhyResp - ListTenantResp = pcmCore.ListTenantResp - NodeAvailInfo = pcmCore.NodeAvailInfo - NodePhyInfo = pcmCore.NodePhyInfo - ParticipantAvailReq = pcmCore.ParticipantAvailReq - ParticipantHeartbeatReq = pcmCore.ParticipantHeartbeatReq - ParticipantLabel = pcmCore.ParticipantLabel - ParticipantPhyReq = pcmCore.ParticipantPhyReq - ParticipantPhyResp = pcmCore.ParticipantPhyResp - ParticipantResp = pcmCore.ParticipantResp - ParticipantServiceResp = pcmCore.ParticipantServiceResp - ParticipantTenant = pcmCore.ParticipantTenant - QueuePhyInfo = pcmCore.QueuePhyInfo - SyncInfoReq = pcmCore.SyncInfoReq - SyncInfoResp = pcmCore.SyncInfoResp - TenantInfo = pcmCore.TenantInfo - TenantResp = pcmCore.TenantResp - VmInfo = pcmCore.VmInfo - - ParticipantService interface { - // registerParticipant Participant注册接口 - RegisterParticipant(ctx context.Context, in *ParticipantPhyReq, opts ...grpc.CallOption) (*ParticipantPhyResp, error) - // reportHeartbeat 心跳请求 - ReportHeartbeat(ctx context.Context, in *ParticipantHeartbeatReq, opts ...grpc.CallOption) (*HealthCheckResp, error) - // reportAvailable 监控数据上报 - ReportAvailable(ctx context.Context, in *ParticipantAvailReq, opts ...grpc.CallOption) (*ParticipantResp, error) - // listParticipant 服务列表 - ListParticipant(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ParticipantServiceResp, error) - // listAvailable 集群动态信息列表 - ListPhyAvailable(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantAvailResp, error) - // listPhyInformation 集群静态信息列表 - ListPhyInformation(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantPhyResp, error) - // registerTenant 注册租户信息 - RegisterTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*TenantResp, error) - // listTenant 租户列表信息 - ListTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*ListTenantResp, error) - // applyList 执行任务列表 - ApplyList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // DeleteList 删除任务列表 - DeleteList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // RestartList 重启任务列表 - RestartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // PauseList 暂停任务列表 - PauseList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // StartList 启动任务列表 - StartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - } - - defaultParticipantService struct { - cli zrpc.Client - } -) - -func NewParticipantService(cli zrpc.Client) ParticipantService { - return &defaultParticipantService{ - cli: cli, - } -} - -// registerParticipant Participant注册接口 -func (m *defaultParticipantService) RegisterParticipant(ctx context.Context, in *ParticipantPhyReq, opts ...grpc.CallOption) (*ParticipantPhyResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.RegisterParticipant(ctx, in, opts...) -} - -// reportHeartbeat 心跳请求 -func (m *defaultParticipantService) ReportHeartbeat(ctx context.Context, in *ParticipantHeartbeatReq, opts ...grpc.CallOption) (*HealthCheckResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.ReportHeartbeat(ctx, in, opts...) -} - -// reportAvailable 监控数据上报 -func (m *defaultParticipantService) ReportAvailable(ctx context.Context, in *ParticipantAvailReq, opts ...grpc.CallOption) (*ParticipantResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.ReportAvailable(ctx, in, opts...) -} - -// listParticipant 服务列表 -func (m *defaultParticipantService) ListParticipant(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ParticipantServiceResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.ListParticipant(ctx, in, opts...) -} - -// listAvailable 集群动态信息列表 -func (m *defaultParticipantService) ListPhyAvailable(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantAvailResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.ListPhyAvailable(ctx, in, opts...) -} - -// listPhyInformation 集群静态信息列表 -func (m *defaultParticipantService) ListPhyInformation(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantPhyResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.ListPhyInformation(ctx, in, opts...) -} - -// registerTenant 注册租户信息 -func (m *defaultParticipantService) RegisterTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*TenantResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.RegisterTenant(ctx, in, opts...) -} - -// listTenant 租户列表信息 -func (m *defaultParticipantService) ListTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*ListTenantResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.ListTenant(ctx, in, opts...) -} - -// applyList 执行任务列表 -func (m *defaultParticipantService) ApplyList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.ApplyList(ctx, in, opts...) -} - -// DeleteList 删除任务列表 -func (m *defaultParticipantService) DeleteList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.DeleteList(ctx, in, opts...) -} - -// RestartList 重启任务列表 -func (m *defaultParticipantService) RestartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.RestartList(ctx, in, opts...) -} - -// PauseList 暂停任务列表 -func (m *defaultParticipantService) PauseList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.PauseList(ctx, in, opts...) -} - -// StartList 启动任务列表 -func (m *defaultParticipantService) StartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - client := pcmCore.NewParticipantServiceClient(m.cli.Conn()) - return client.StartList(ctx, in, opts...) -} diff --git a/rpc/client/pcmcore/pcmcore.go b/rpc/client/pcmcore/pcmcore.go deleted file mode 100644 index bdb5083f..00000000 --- a/rpc/client/pcmcore/pcmcore.go +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by goctl. DO NOT EDIT. -// Source: pcmCore.proto - -package pcmcore - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/zrpc" - "google.golang.org/grpc" -) - -type ( - AiInfo = pcmCore.AiInfo - ApplyInfo = pcmCore.ApplyInfo - ApplyListReq = pcmCore.ApplyListReq - ApplyListResp = pcmCore.ApplyListResp - ClientInfo = pcmCore.ClientInfo - CloudInfo = pcmCore.CloudInfo - HealthCheckResp = pcmCore.HealthCheckResp - HpcInfo = pcmCore.HpcInfo - InfoListReq = pcmCore.InfoListReq - InfoListResp = pcmCore.InfoListResp - ListParticipantAvailResp = pcmCore.ListParticipantAvailResp - ListParticipantPhyResp = pcmCore.ListParticipantPhyResp - ListTenantResp = pcmCore.ListTenantResp - NodeAvailInfo = pcmCore.NodeAvailInfo - NodePhyInfo = pcmCore.NodePhyInfo - ParticipantAvailReq = pcmCore.ParticipantAvailReq - ParticipantHeartbeatReq = pcmCore.ParticipantHeartbeatReq - ParticipantLabel = pcmCore.ParticipantLabel - ParticipantPhyReq = pcmCore.ParticipantPhyReq - ParticipantPhyResp = pcmCore.ParticipantPhyResp - ParticipantResp = pcmCore.ParticipantResp - ParticipantServiceResp = pcmCore.ParticipantServiceResp - ParticipantTenant = pcmCore.ParticipantTenant - QueuePhyInfo = pcmCore.QueuePhyInfo - SyncInfoReq = pcmCore.SyncInfoReq - SyncInfoResp = pcmCore.SyncInfoResp - TenantInfo = pcmCore.TenantInfo - TenantResp = pcmCore.TenantResp - VmInfo = pcmCore.VmInfo - - PcmCore interface { - // SyncInfo Synchronous data information - SyncInfo(ctx context.Context, in *SyncInfoReq, opts ...grpc.CallOption) (*SyncInfoResp, error) - // InfoList - InfoList(ctx context.Context, in *InfoListReq, opts ...grpc.CallOption) (*InfoListResp, error) - } - - defaultPcmCore struct { - cli zrpc.Client - } -) - -func NewPcmCore(cli zrpc.Client) PcmCore { - return &defaultPcmCore{ - cli: cli, - } -} - -// SyncInfo Synchronous data information -func (m *defaultPcmCore) SyncInfo(ctx context.Context, in *SyncInfoReq, opts ...grpc.CallOption) (*SyncInfoResp, error) { - client := pcmCore.NewPcmCoreClient(m.cli.Conn()) - return client.SyncInfo(ctx, in, opts...) -} - -// InfoList -func (m *defaultPcmCore) InfoList(ctx context.Context, in *InfoListReq, opts ...grpc.CallOption) (*InfoListResp, error) { - client := pcmCore.NewPcmCoreClient(m.cli.Conn()) - return client.InfoList(ctx, in, opts...) -} diff --git a/rpc/etc/pcmcore.yaml b/rpc/etc/pcmcore.yaml deleted file mode 100644 index 70902acf..00000000 --- a/rpc/etc/pcmcore.yaml +++ /dev/null @@ -1,24 +0,0 @@ -Name: pcm.core.rpc -ListenOn: 0.0.0.0:2004 - -Timeout: 15000 # 15s,设置rpc服务的响应的超时时间,若超过15s还未返回则结束请求 - -DB: - # DataSource: root:uJpLd6u-J?HC1@(10.206.0.12:3306)/pcm?parseTime=true - DataSource: root:uJpLd6u-J?HC1@(47.92.88.143:3306)/pcm?parseTime=true - -#链路追踪 -# Telemetry: -# Name: pcm-core-rpc -# Endpoint: http://jaeger-collector.observability:14268/api/traces -# Sampler: 1.0 -# Batcher: jaeger - -SnowflakeConf: - MachineId: 1 - -RedisConf: - Host: 10.206.0.7:6379 - Pass: redisPW123 - Type: node - Tls: false \ No newline at end of file diff --git a/rpc/internal/config/config.go b/rpc/internal/config/config.go deleted file mode 100644 index 56cf8fdf..00000000 --- a/rpc/internal/config/config.go +++ /dev/null @@ -1,36 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package config - -import ( - "github.com/zeromicro/go-zero/core/logx" - "github.com/zeromicro/go-zero/core/stores/redis" - "github.com/zeromicro/go-zero/zrpc" -) - -type Config struct { - zrpc.RpcServerConf - DB struct { - DataSource string - } - LogConf logx.LogConf - SnowflakeConf SnowflakeConf - RedisConf redis.RedisConf -} - -// SnowflakeConf 雪花算法机器id配置 -type SnowflakeConf struct { - MachineId int64 `json:"machineId"` -} diff --git a/rpc/internal/logic/participantservice/applylistlogic.go b/rpc/internal/logic/participantservice/applylistlogic.go deleted file mode 100644 index 606c9d80..00000000 --- a/rpc/internal/logic/participantservice/applylistlogic.go +++ /dev/null @@ -1,35 +0,0 @@ -package participantservicelogic - -import ( - "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type ApplyListLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewApplyListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApplyListLogic { - return &ApplyListLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// applyList 执行任务列表 -func (l *ApplyListLogic) ApplyList(in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - result := pcmCore.ApplyListResp{ - InfoList: make([]*pcmCore.ApplyInfo, 0), - } - l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName,c.yaml_string as YamlString FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'Saved' and sppi.id = c.participant_id").Scan(&result.InfoList) - if len(result.InfoList) != 0 { - l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Issued", "Saved") - } - return &result, nil -} diff --git a/rpc/internal/logic/participantservice/deletelistlogic.go b/rpc/internal/logic/participantservice/deletelistlogic.go deleted file mode 100644 index 774ed8e5..00000000 --- a/rpc/internal/logic/participantservice/deletelistlogic.go +++ /dev/null @@ -1,36 +0,0 @@ -package participantservicelogic - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type DeleteListLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewDeleteListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteListLogic { - return &DeleteListLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// DeleteList 删除任务列表 -func (l *DeleteListLogic) DeleteList(in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - result := pcmCore.ApplyListResp{ - InfoList: make([]*pcmCore.ApplyInfo, 0), - } - l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName,c.yaml_string as YamlString FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'WaitDelete' and sppi.id = c.participant_id").Scan(&result.InfoList) - if len(result.InfoList) != 0 { - l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Deleted", "WaitDelete") - } - return &result, nil -} diff --git a/rpc/internal/logic/participantservice/listparticipantlogic.go b/rpc/internal/logic/participantservice/listparticipantlogic.go deleted file mode 100644 index f67d1c6f..00000000 --- a/rpc/internal/logic/participantservice/listparticipantlogic.go +++ /dev/null @@ -1,73 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "fmt" - "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - "time" -) - -type ListParticipantLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewListParticipantLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListParticipantLogic { - return &ListParticipantLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// listParticipant 服务列表 -func (l *ListParticipantLogic) ListParticipant(in *pcmCore.ParticipantTenant) (*pcmCore.ParticipantServiceResp, error) { - // todo: add your logic here and delete this line - rdb := l.svcCtx.RedisClient - resp := pcmCore.ParticipantServiceResp{} - clientInfo := pcmCore.ClientInfo{} - //获取所有Participant的key值 - keys, err := l.svcCtx.RedisClient.Keys(context.Background(), "ps_*").Result() - if err != nil { - logx.Errorf("Error getting keys from Redis err: %v", err) - return &pcmCore.ParticipantServiceResp{ - Code: 500, - Msg: fmt.Sprintf("get service list error %s", err), - }, nil - } - for _, key := range keys { - if err := rdb.HGetAll(l.ctx, key).Scan(&clientInfo); err != nil { - logx.Errorf("get service err:", err) - return &pcmCore.ParticipantServiceResp{ - Code: 500, - Msg: fmt.Sprintf("get service list error %s", err), - }, nil - } - - //最后心跳时间差值大于15s则标记服务为不健康 - if time.Now().Unix()-clientInfo.LastHeartbeat > 15 { - clientInfo.ClientState = "UNKNOWN" - } - resp.Data = append(resp.Data, &clientInfo) - } - resp.Code = 200 - resp.Msg = "ok" - return &resp, nil -} diff --git a/rpc/internal/logic/participantservice/listphyavailablelogic.go b/rpc/internal/logic/participantservice/listphyavailablelogic.go deleted file mode 100644 index 9dbe8f40..00000000 --- a/rpc/internal/logic/participantservice/listphyavailablelogic.go +++ /dev/null @@ -1,49 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" -) - -type ListPhyAvailableLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewListPhyAvailableLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListPhyAvailableLogic { - return &ListPhyAvailableLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// listAvailable 集群动态信息列表 -func (l *ListPhyAvailableLogic) ListPhyAvailable(in *pcmCore.ParticipantTenant) (*pcmCore.ListParticipantAvailResp, error) { - // todo: add your logic here and delete this line - resp := &pcmCore.ListParticipantAvailResp{} - var scParticipantPhyInfoS []models.ScParticipantAvailInfo - //查询集群静态信息列表 - l.svcCtx.DbEngin.Find(&scParticipantPhyInfoS) - utils.Convert(scParticipantPhyInfoS, &resp.ParticipantAvails) - return resp, nil -} diff --git a/rpc/internal/logic/participantservice/listphyinformationlogic.go b/rpc/internal/logic/participantservice/listphyinformationlogic.go deleted file mode 100644 index 02a45591..00000000 --- a/rpc/internal/logic/participantservice/listphyinformationlogic.go +++ /dev/null @@ -1,50 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type ListPhyInformationLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewListPhyInformationLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListPhyInformationLogic { - return &ListPhyInformationLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// listPhyInformation 集群静态信息列表 -func (l *ListPhyInformationLogic) ListPhyInformation(in *pcmCore.ParticipantTenant) (*pcmCore.ListParticipantPhyResp, error) { - // todo: add your logic here and delete this line - resp := &pcmCore.ListParticipantPhyResp{} - var scParticipantPhyInfoS []models.ScParticipantPhyInfo - //查询集群静态信息列表 - l.svcCtx.DbEngin.Find(&scParticipantPhyInfoS) - utils.Convert(scParticipantPhyInfoS, &resp.ParticipantPhys) - return resp, nil -} diff --git a/rpc/internal/logic/participantservice/listtenantlogic.go b/rpc/internal/logic/participantservice/listtenantlogic.go deleted file mode 100644 index d2bd2b71..00000000 --- a/rpc/internal/logic/participantservice/listtenantlogic.go +++ /dev/null @@ -1,51 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type ListTenantLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewListTenantLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListTenantLogic { - return &ListTenantLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// listTenant 租户列表信息 -func (l *ListTenantLogic) ListTenant(in *pcmCore.TenantInfo) (*pcmCore.ListTenantResp, error) { - resp := &pcmCore.ListTenantResp{} - var scTenantInfos []models.ScTenantInfo - //查询集群静态信息列表 - l.svcCtx.DbEngin.Find(&scTenantInfos) - utils.Convert(scTenantInfos, &resp.TenantInfos) - resp.Code = 200 - resp.Msg = "success" - return resp, nil -} diff --git a/rpc/internal/logic/participantservice/pauselistlogic.go b/rpc/internal/logic/participantservice/pauselistlogic.go deleted file mode 100644 index ee7a4656..00000000 --- a/rpc/internal/logic/participantservice/pauselistlogic.go +++ /dev/null @@ -1,36 +0,0 @@ -package participantservicelogic - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type PauseListLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewPauseListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PauseListLogic { - return &PauseListLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// PauseList 暂停任务列表 -func (l *PauseListLogic) PauseList(in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - result := pcmCore.ApplyListResp{ - InfoList: make([]*pcmCore.ApplyInfo, 0), - } - l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName, c.ns_id as namespace,c.name as name , c.kind as kind FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'WaitPause' and sppi.id = c.participant_id and deleted_at is null").Scan(&result.InfoList) - if len(result.InfoList) != 0 { - l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Paused", "WaitPause") - } - return &result, nil -} diff --git a/rpc/internal/logic/participantservice/registerparticipantlogic.go b/rpc/internal/logic/participantservice/registerparticipantlogic.go deleted file mode 100644 index 87f15483..00000000 --- a/rpc/internal/logic/participantservice/registerparticipantlogic.go +++ /dev/null @@ -1,125 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "github.com/pkg/errors" - models2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gorm.io/gorm" - "time" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type RegisterParticipantLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewRegisterParticipantLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegisterParticipantLogic { - return &RegisterParticipantLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// RegisterParticipant Participant注册接口 -func (l *RegisterParticipantLogic) RegisterParticipant(in *pcmCore.ParticipantPhyReq) (*pcmCore.ParticipantPhyResp, error) { - //判断ParticipantId是否存在 - db := l.svcCtx.DbEngin.Begin() - // 执行回滚或者提交操作 - defer func() { - if p := recover(); p != nil { - db.Rollback() - logx.Error(p) - } else if db.Error != nil { - logx.Info("rollback") - db.Rollback() - } else { - db = db.Commit() - logx.Info("commit success") - } - }() - participantInfo := &models2.ScParticipantPhyInfo{} - utils.Convert(in, participantInfo) - if in.ParticipantId == 0 { - participantInfo.Id = utils.GenSnowflakeID() - } else { - participantInfo.Id = in.ParticipantId - } - //保存participant静态信息 - result := db.Save(&participantInfo) - //保存节点信息 - nodeList := make([]*models2.ScNodePhyInfo, 0) - for _, info := range in.NodeInfo { - nodeInfo := &models2.ScNodePhyInfo{} - utils.Convert(info, nodeInfo) - nodeInfo.CreatedTime = time.Now() - nodeInfo.ParticipantId = participantInfo.Id - //查询节点name与ParticipantId是否存在 - nodeErr := db.Where(&models2.ScNodePhyInfo{NodeName: nodeInfo.NodeName, ParticipantId: in.ParticipantId}).Take(nodeInfo) - if errors.Is(nodeErr.Error, gorm.ErrRecordNotFound) { - nodeInfo.Id = utils.GenSnowflakeID() - } - nodeList = append(nodeList, nodeInfo) - } - result = db.Save(&nodeList) - //保存队列信息 - queueList := make([]*models2.ScQueuePhyInfo, 0) - for _, info := range in.QueueInfo { - queueInfo := &models2.ScQueuePhyInfo{} - utils.Convert(info, queueInfo) - queueInfo.CreatedTime = time.Now() - queueInfo.ParticipantId = participantInfo.Id - //查询队列name与ParticipantId是否存在 - queueErr := db.Where(&models2.ScQueuePhyInfo{QueueName: queueInfo.QueueName, ParticipantId: in.ParticipantId}).Take(queueInfo) - if errors.Is(queueErr.Error, gorm.ErrRecordNotFound) { - queueInfo.Id = utils.GenSnowflakeID() - } - queueList = append(queueList, queueInfo) - } - result = db.Save(&queueList) - //保存标签信息 - labelList := make([]*models2.ScParticipantLabelInfo, 0) - for _, label := range in.LabelInfo { - labelInfo := &models2.ScParticipantLabelInfo{} - utils.Convert(label, labelInfo) - labelInfo.CreatedTime = time.Now() - labelInfo.ParticipantId = participantInfo.Id - //查询标签key value与ParticipantId是否存在 - labelErr := db.Where(&models2.ScParticipantLabelInfo{Key: labelInfo.Key, Value: labelInfo.Value, ParticipantId: in.ParticipantId}).Take(labelInfo) - if errors.Is(labelErr.Error, gorm.ErrRecordNotFound) { - labelInfo.Id = utils.GenSnowflakeID() - } - labelList = append(labelList, labelInfo) - } - result = db.Save(&labelList) - if result.Error != nil { - logx.Errorf("orm err:", result.Error) - return &pcmCore.ParticipantPhyResp{}, nil - } - return &pcmCore.ParticipantPhyResp{ - Code: 200, - Msg: "ok", - ParticipantId: participantInfo.Id, - }, nil -} diff --git a/rpc/internal/logic/participantservice/registertenantlogic.go b/rpc/internal/logic/participantservice/registertenantlogic.go deleted file mode 100644 index c9e03d36..00000000 --- a/rpc/internal/logic/participantservice/registertenantlogic.go +++ /dev/null @@ -1,58 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" -) - -type RegisterTenantLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewRegisterTenantLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegisterTenantLogic { - return &RegisterTenantLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// registerTenant 注册租户信息 -func (l *RegisterTenantLogic) RegisterTenant(in *pcmCore.TenantInfo) (*pcmCore.TenantResp, error) { - // todo: add your logic here and delete this line - tenantInfo := &models.ScTenantInfo{} - utils.Convert(in, tenantInfo) - tenantInfo.Id = utils.GenSnowflakeID() - tx := l.svcCtx.DbEngin.Save(&tenantInfo) - if tx.Error != nil { - logx.Errorf("orm err:", tx.Error) - return &pcmCore.TenantResp{ - Code: 500, - Msg: "save Tenant error " + tx.Error.Error(), - }, nil - } - return &pcmCore.TenantResp{ - Code: 200, - Msg: "success", - }, nil -} diff --git a/rpc/internal/logic/participantservice/reportavailablelogic.go b/rpc/internal/logic/participantservice/reportavailablelogic.go deleted file mode 100644 index a43443e6..00000000 --- a/rpc/internal/logic/participantservice/reportavailablelogic.go +++ /dev/null @@ -1,110 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "fmt" - "github.com/pkg/errors" - models2 "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - "gorm.io/gorm" - "time" - - "github.com/zeromicro/go-zero/core/logx" -) - -type ReportAvailableLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewReportAvailableLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReportAvailableLogic { - return &ReportAvailableLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// ReportAvailable 监控数据上报 -func (l *ReportAvailableLogic) ReportAvailable(in *pcmCore.ParticipantAvailReq) (*pcmCore.ParticipantResp, error) { - db := l.svcCtx.DbEngin.Begin() - // 执行回滚或者提交操作 - defer func() { - if p := recover(); p != nil { - db.Rollback() - logx.Error(p) - } else if db.Error != nil { - logx.Info("rollback") - db.Rollback() - } else { - db = db.Commit() - logx.Info("commit success") - } - }() - //判断Participant静态信息是否存在 - participantPhyInfo := &models2.ScParticipantPhyInfo{} - participantPhyInfo.Id = in.ParticipantId - if in.ParticipantId == 0 { - return &pcmCore.ParticipantResp{ - Code: 500, - Msg: fmt.Sprintf("ParticipantInfo Does not exist, please check participantPhyId: %d", in.ParticipantId), - }, nil - } - if errors.Is(db.Take(&participantPhyInfo).Error, gorm.ErrRecordNotFound) { - return &pcmCore.ParticipantResp{ - Code: 500, - Msg: fmt.Sprintf("ParticipantInfo Does not exist, please check participantPhyId: %d", in.ParticipantId), - }, nil - } - - participantAvailInfo := &models2.ScParticipantAvailInfo{} - utils.Convert(in, participantAvailInfo) - if in.Id == 0 { - participantAvailInfo.Id = utils.GenSnowflakeID() - } - participantAvailInfo.CreatedTime = time.Now() - //保存participant动态信息 - result := db.Save(&participantAvailInfo) - //保存节点信息 - nodeList := make([]*models2.ScNodeAvailInfo, 0) - for _, info := range in.NodeAvailInfo { - nodeInfo := &models2.ScNodeAvailInfo{} - utils.Convert(info, nodeInfo) - nodeInfo.CreatedTime = time.Now() - nodeInfo.ParticipantId = participantAvailInfo.ParticipantId - if nodeInfo.Id == 0 { - nodeInfo.Id = utils.GenSnowflakeID() - } - nodeList = append(nodeList, nodeInfo) - } - result = db.Save(&nodeList) - if result.Error != nil { - logx.Errorf("orm err:", result.Error) - return &pcmCore.ParticipantResp{ - Code: 500, - Msg: fmt.Sprintf("Save participantAvailInfo error %s", result.Error), - }, nil - } - - return &pcmCore.ParticipantResp{ - Code: 200, - Msg: "ok", - }, nil -} diff --git a/rpc/internal/logic/participantservice/reportheartbeatlogic.go b/rpc/internal/logic/participantservice/reportheartbeatlogic.go deleted file mode 100644 index 9e17c384..00000000 --- a/rpc/internal/logic/participantservice/reportheartbeatlogic.go +++ /dev/null @@ -1,64 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package participantservicelogic - -import ( - "context" - "fmt" - "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - "sync" - "time" -) - -var clientsMutex sync.Mutex - -type ReportHeartbeatLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewReportHeartbeatLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReportHeartbeatLogic { - return &ReportHeartbeatLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// ReportHeartbeat 心跳请求 -func (l *ReportHeartbeatLogic) ReportHeartbeat(in *pcmCore.ParticipantHeartbeatReq) (*pcmCore.HealthCheckResp, error) { - //Participant服务key值以ps_开头 - key := fmt.Sprintf("ps_%s-%d", in.Address, in.ParticipantId) - clientsMutex.Lock() - defer clientsMutex.Unlock() - setResult := l.svcCtx.RedisClient.HSet(context.Background(), key, - map[string]interface{}{ - "address": in.Address, - "participantId": in.ParticipantId, - "lastHeartbeat": time.Now().Unix(), - "clientState": "TRUE", - }) - if setResult.Err() != nil { - return nil, setResult.Err() - } - l.svcCtx.RedisClient.Expire(context.Background(), key, 30*time.Second) - return &pcmCore.HealthCheckResp{ - Code: 200, - Msg: "ok", - }, nil -} diff --git a/rpc/internal/logic/participantservice/restartlistlogic.go b/rpc/internal/logic/participantservice/restartlistlogic.go deleted file mode 100644 index b741cea1..00000000 --- a/rpc/internal/logic/participantservice/restartlistlogic.go +++ /dev/null @@ -1,36 +0,0 @@ -package participantservicelogic - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type RestartListLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewRestartListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RestartListLogic { - return &RestartListLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// RestartList 重启任务列表 -func (l *RestartListLogic) RestartList(in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - result := pcmCore.ApplyListResp{ - InfoList: make([]*pcmCore.ApplyInfo, 0), - } - l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName, c.ns_id as namespace,c.name as name , c.kind as kind FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'WaitRestart' and sppi.id = c.participant_id and deleted_at is null").Scan(&result.InfoList) - if len(result.InfoList) != 0 { - l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Issued", "WaitRestart") - } - return &result, nil -} diff --git a/rpc/internal/logic/participantservice/startlistlogic.go b/rpc/internal/logic/participantservice/startlistlogic.go deleted file mode 100644 index dfab90af..00000000 --- a/rpc/internal/logic/participantservice/startlistlogic.go +++ /dev/null @@ -1,36 +0,0 @@ -package participantservicelogic - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - - "github.com/zeromicro/go-zero/core/logx" -) - -type StartListLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewStartListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StartListLogic { - return &StartListLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// StartList 启动任务列表 -func (l *StartListLogic) StartList(in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - result := pcmCore.ApplyListResp{ - InfoList: make([]*pcmCore.ApplyInfo, 0), - } - l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName, c.ns_id as namespace,c.name as name , c.kind as kind FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'WaitStart' and sppi.id = c.participant_id and deleted_at is null").Scan(&result.InfoList) - if len(result.InfoList) != 0 { - l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Issued", "WaitStart") - } - return &result, nil -} diff --git a/rpc/internal/logic/pcmcore/infolistlogic.go b/rpc/internal/logic/pcmcore/infolistlogic.go deleted file mode 100644 index d2ef8768..00000000 --- a/rpc/internal/logic/pcmcore/infolistlogic.go +++ /dev/null @@ -1,72 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package pcmcorelogic - -import ( - "context" - "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - "gorm.io/gorm" -) - -type InfoListLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewInfoListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InfoListLogic { - return &InfoListLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// InfoList p端根据id查询任务列表 -func (l *InfoListLogic) InfoList(in *pcmCore.InfoListReq) (*pcmCore.InfoListResp, error) { - result := pcmCore.InfoListResp{} - // 查询p端类型 - var kind string - l.svcCtx.DbEngin.Raw("select type as kind from sc_participant_phy_info where id = ?", in.ParticipantId).Scan(&kind) - // 查询云智超中的数据列表 - switch kind { - case constants.HPC: - var hpcModelList []models.Hpc - findModelList(in.ParticipantId, l.svcCtx.DbEngin, &hpcModelList) - utils.Convert(hpcModelList, &result.HpcInfoList) - case constants.CLOUD, constants.SEALOS: - var cloudModelList []models.Cloud - findModelList(in.ParticipantId, l.svcCtx.DbEngin, &cloudModelList) - utils.Convert(cloudModelList, &result.CloudInfoList) - case constants.AI: - var aiModelList []models.Ai - findModelList(in.ParticipantId, l.svcCtx.DbEngin, &aiModelList) - utils.Convert(aiModelList, &result.AiInfoList) - } - return &result, nil -} - -func findModelList(participantId int64, dbEngin *gorm.DB, data interface{}) error { - tx := dbEngin.Where("participant_id = ? AND status NOT IN ?", participantId, []string{"Deleted", "Succeeded", "Completed", "Failed"}).Find(data) - if tx.Error != nil { - return tx.Error - } - return nil -} diff --git a/rpc/internal/logic/pcmcore/syncinfologic.go b/rpc/internal/logic/pcmcore/syncinfologic.go deleted file mode 100644 index 1567259d..00000000 --- a/rpc/internal/logic/pcmcore/syncinfologic.go +++ /dev/null @@ -1,129 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package pcmcorelogic - -import ( - "context" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - "gorm.io/gorm" - "strings" - "time" - - "github.com/zeromicro/go-zero/core/logx" -) - -type ExternalInfo struct { - TaskId int64 - ExternalField string - Name string - Status string - StartTime time.Time - RunningTime int64 -} -type SyncInfoLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewSyncInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SyncInfoLogic { - return &SyncInfoLogic{ - ctx: ctx, - svcCtx: svcCtx, - Logger: logx.WithContext(ctx), - } -} - -// SyncInfo Synchronous data information -func (l *SyncInfoLogic) SyncInfo(in *pcmCore.SyncInfoReq) (*pcmCore.SyncInfoResp, error) { - // 查询p端类型 - var kind string - l.svcCtx.DbEngin.Raw("select type as kind from sc_participant_phy_info where id = ?", in.ParticipantId).Scan(&kind) - switch kind { - case constants.CLOUD, constants.SEALOS: - for _, cloudInfo := range in.CloudInfoList { - l.svcCtx.DbEngin.Exec("update cloud set status = ?,start_time = ?,result = ? where participant_id = ? and id = ?", - cloudInfo.Status, cloudInfo.StartTime, cloudInfo.Result, in.ParticipantId, cloudInfo.Id) - syncTask(l.svcCtx.DbEngin, cloudInfo.TaskId) - } - case constants.HPC: - for _, hpcInfo := range in.HpcInfoList { - l.svcCtx.DbEngin.Exec("update hpc set status = ?,start_time = ?,job_id = ? where participant_id = ? and task_id = ? and name = ?", - hpcInfo.Status, hpcInfo.StartTime, hpcInfo.RunningTime, hpcInfo.JobId, in.ParticipantId, hpcInfo.TaskId, hpcInfo.Name) - syncTask(l.svcCtx.DbEngin, hpcInfo.TaskId) - } - case constants.AI: - for _, aiInfo := range in.AiInfoList { - l.svcCtx.DbEngin.Exec("update ai set status = ?,start_time = ?,project_id = ?,job_id = ? where participant_id = ? and task_id = ? and name = ?", - aiInfo.Status, aiInfo.StartTime, aiInfo.ProjectId, aiInfo.JobId, in.ParticipantId, aiInfo.TaskId, aiInfo.Name) - syncTask(l.svcCtx.DbEngin, aiInfo.TaskId) - } - } - - return &pcmCore.SyncInfoResp{}, nil -} - -func syncTask(gorm *gorm.DB, taskId int64) { - - var allStatus string - tx := gorm.Raw("SELECT CONCAT_WS(',',GROUP_CONCAT(DISTINCT h.status) ,GROUP_CONCAT(DISTINCT a.status) ,GROUP_CONCAT(DISTINCT c.status))as status from task t left join hpc h on t.id = h.task_id left join cloud c on t.id = c.task_id left join ai a on t.id = a.task_id where t.id = ?", taskId).Scan(&allStatus) - if tx.Error != nil { - logx.Error(tx.Error) - } - // 子状态统一则修改主任务状态 - statusArray := strings.Split(allStatus, ",") - if len(removeRepeatedElement(statusArray)) == 1 { - updateTask(gorm, taskId, statusArray[0]) - - } - // 子任务包含失败状态 主任务则失败 - if strings.Contains(allStatus, constants.Failed) { - updateTask(gorm, taskId, constants.Failed) - - } - if strings.Contains(allStatus, constants.Running) { - updateTask(gorm, taskId, constants.Running) - } - -} - -func updateTask(gorm *gorm.DB, taskId int64, status string) { - var task models.Task - gorm.Where("id = ? ", taskId).Find(&task) - if task.Status != status { - task.Status = status - gorm.Updates(&task) - } -} - -func removeRepeatedElement(arr []string) (newArr []string) { - newArr = make([]string, 0) - for i := 0; i < len(arr); i++ { - repeat := false - for j := i + 1; j < len(arr); j++ { - if arr[i] == arr[j] { - repeat = true - break - } - } - if !repeat { - newArr = append(newArr, arr[i]) - } - } - return -} diff --git a/rpc/internal/server/participantservice/participantserviceserver.go b/rpc/internal/server/participantservice/participantserviceserver.go deleted file mode 100644 index d6f61eda..00000000 --- a/rpc/internal/server/participantservice/participantserviceserver.go +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by goctl. DO NOT EDIT. -// Source: pcmCore.proto - -package server - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/logic/participantservice" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" -) - -type ParticipantServiceServer struct { - svcCtx *svc.ServiceContext - pcmCore.UnimplementedParticipantServiceServer -} - -func NewParticipantServiceServer(svcCtx *svc.ServiceContext) *ParticipantServiceServer { - return &ParticipantServiceServer{ - svcCtx: svcCtx, - } -} - -// registerParticipant Participant注册接口 -func (s *ParticipantServiceServer) RegisterParticipant(ctx context.Context, in *pcmCore.ParticipantPhyReq) (*pcmCore.ParticipantPhyResp, error) { - l := participantservicelogic.NewRegisterParticipantLogic(ctx, s.svcCtx) - return l.RegisterParticipant(in) -} - -// reportHeartbeat 心跳请求 -func (s *ParticipantServiceServer) ReportHeartbeat(ctx context.Context, in *pcmCore.ParticipantHeartbeatReq) (*pcmCore.HealthCheckResp, error) { - l := participantservicelogic.NewReportHeartbeatLogic(ctx, s.svcCtx) - return l.ReportHeartbeat(in) -} - -// reportAvailable 监控数据上报 -func (s *ParticipantServiceServer) ReportAvailable(ctx context.Context, in *pcmCore.ParticipantAvailReq) (*pcmCore.ParticipantResp, error) { - l := participantservicelogic.NewReportAvailableLogic(ctx, s.svcCtx) - return l.ReportAvailable(in) -} - -// listParticipant 服务列表 -func (s *ParticipantServiceServer) ListParticipant(ctx context.Context, in *pcmCore.ParticipantTenant) (*pcmCore.ParticipantServiceResp, error) { - l := participantservicelogic.NewListParticipantLogic(ctx, s.svcCtx) - return l.ListParticipant(in) -} - -// listAvailable 集群动态信息列表 -func (s *ParticipantServiceServer) ListPhyAvailable(ctx context.Context, in *pcmCore.ParticipantTenant) (*pcmCore.ListParticipantAvailResp, error) { - l := participantservicelogic.NewListPhyAvailableLogic(ctx, s.svcCtx) - return l.ListPhyAvailable(in) -} - -// listPhyInformation 集群静态信息列表 -func (s *ParticipantServiceServer) ListPhyInformation(ctx context.Context, in *pcmCore.ParticipantTenant) (*pcmCore.ListParticipantPhyResp, error) { - l := participantservicelogic.NewListPhyInformationLogic(ctx, s.svcCtx) - return l.ListPhyInformation(in) -} - -// registerTenant 注册租户信息 -func (s *ParticipantServiceServer) RegisterTenant(ctx context.Context, in *pcmCore.TenantInfo) (*pcmCore.TenantResp, error) { - l := participantservicelogic.NewRegisterTenantLogic(ctx, s.svcCtx) - return l.RegisterTenant(in) -} - -// listTenant 租户列表信息 -func (s *ParticipantServiceServer) ListTenant(ctx context.Context, in *pcmCore.TenantInfo) (*pcmCore.ListTenantResp, error) { - l := participantservicelogic.NewListTenantLogic(ctx, s.svcCtx) - return l.ListTenant(in) -} - -// applyList 执行任务列表 -func (s *ParticipantServiceServer) ApplyList(ctx context.Context, in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - l := participantservicelogic.NewApplyListLogic(ctx, s.svcCtx) - return l.ApplyList(in) -} - -// DeleteList 删除任务列表 -func (s *ParticipantServiceServer) DeleteList(ctx context.Context, in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - l := participantservicelogic.NewDeleteListLogic(ctx, s.svcCtx) - return l.DeleteList(in) -} - -// RestartList 重启任务列表 -func (s *ParticipantServiceServer) RestartList(ctx context.Context, in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - l := participantservicelogic.NewRestartListLogic(ctx, s.svcCtx) - return l.RestartList(in) -} - -// PauseList 暂停任务列表 -func (s *ParticipantServiceServer) PauseList(ctx context.Context, in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - l := participantservicelogic.NewPauseListLogic(ctx, s.svcCtx) - return l.PauseList(in) -} - -// StartList 启动任务列表 -func (s *ParticipantServiceServer) StartList(ctx context.Context, in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) { - l := participantservicelogic.NewStartListLogic(ctx, s.svcCtx) - return l.StartList(in) -} diff --git a/rpc/internal/server/pcmcore/pcmcoreserver.go b/rpc/internal/server/pcmcore/pcmcoreserver.go deleted file mode 100644 index eb5c2d0f..00000000 --- a/rpc/internal/server/pcmcore/pcmcoreserver.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by goctl. DO NOT EDIT. -// Source: pcmCore.proto - -package server - -import ( - "context" - - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/logic/pcmcore" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" -) - -type PcmCoreServer struct { - svcCtx *svc.ServiceContext - pcmCore.UnimplementedPcmCoreServer -} - -func NewPcmCoreServer(svcCtx *svc.ServiceContext) *PcmCoreServer { - return &PcmCoreServer{ - svcCtx: svcCtx, - } -} - -// SyncInfo Synchronous data information -func (s *PcmCoreServer) SyncInfo(ctx context.Context, in *pcmCore.SyncInfoReq) (*pcmCore.SyncInfoResp, error) { - l := pcmcorelogic.NewSyncInfoLogic(ctx, s.svcCtx) - return l.SyncInfo(in) -} - -// InfoList -func (s *PcmCoreServer) InfoList(ctx context.Context, in *pcmCore.InfoListReq) (*pcmCore.InfoListResp, error) { - l := pcmcorelogic.NewInfoListLogic(ctx, s.svcCtx) - return l.InfoList(in) -} diff --git a/rpc/internal/svc/servicecontext.go b/rpc/internal/svc/servicecontext.go deleted file mode 100644 index 34775b92..00000000 --- a/rpc/internal/svc/servicecontext.go +++ /dev/null @@ -1,68 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package svc - -import ( - "github.com/go-redis/redis/v8" - _ "github.com/go-sql-driver/mysql" - "github.com/zeromicro/go-zero/core/logx" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/config" - "gorm.io/driver/mysql" - "gorm.io/gorm" - "gorm.io/gorm/logger" - "gorm.io/gorm/schema" - "time" -) - -type ServiceContext struct { - Config config.Config - DbEngin *gorm.DB - RedisClient *redis.Client -} - -func NewServiceContext(c config.Config) *ServiceContext { - //启动Gorm支持 - dbEngin, _ := gorm.Open(mysql.Open(c.DB.DataSource), &gorm.Config{ - NamingStrategy: schema.NamingStrategy{ - SingularTable: true, // 使用单数表名,启用该选项,此时,`User` 的表名应该是 `t_user` - }, - Logger: logger.Default.LogMode(logger.Warn), - }) - sqlDB, err := dbEngin.DB() - // SetMaxIdleConns 设置空闲连接池中连接的最大数量 - sqlDB.SetMaxIdleConns(10) - - // SetMaxOpenConns 设置打开数据库连接的最大数量。 - sqlDB.SetMaxOpenConns(50) - - // SetConnMaxLifetime 设置了连接可复用的最大时间。 - sqlDB.SetConnMaxLifetime(time.Hour) - //添加snowflake支持 - err = utils.InitSnowflake(c.SnowflakeConf.MachineId) - if err != nil { - logx.Errorf("InitSnowflake err: ", err) - panic("InitSnowflake err") - } - return &ServiceContext{ - Config: c, - DbEngin: dbEngin, - RedisClient: redis.NewClient(&redis.Options{ - Addr: c.RedisConf.Host, - Password: c.RedisConf.Pass, - DB: 0, // use default DB - }), - } -} diff --git a/rpc/pb/pcmCore.proto b/rpc/pb/pcmCore.proto deleted file mode 100644 index cf781833..00000000 --- a/rpc/pb/pcmCore.proto +++ /dev/null @@ -1,345 +0,0 @@ -syntax = "proto3"; - -package pcmCore; -option go_package = "/pcmCore"; - -message SyncInfoReq { - int64 participantId = 1; - repeated HpcInfo HpcInfoList = 2; - repeated CloudInfo CloudInfoList = 3; - repeated AiInfo AiInfoList = 4; - repeated VmInfo VmInfoList = 5; -} - -message AiInfo { - int64 participantId = 1; - int64 taskId = 2; - string project_id = 3; - string name = 4; - string status = 5; - string startTime = 6; - int64 runningTime = 7; - string result = 8; - string jobId = 9; - string createTime = 10; - string imageUrl = 11; - string command = 12; - string flavorId = 13; - string subscriptionId = 14; - string itemVersionId = 15; - -} - -message CloudInfo { - int64 participant = 1; - int64 id = 2; - int64 taskId = 3; - string apiVersion = 4; - string kind = 5; - string namespace = 6; - string name = 7; - string status = 11; - string startTime = 8; - int64 runningTime = 9; - string result = 10; - string yamlString = 12; -} - -message VmInfo { - int64 participantId = 1; - int64 taskId = 2; - string name = 3; - string flavor_ref = 4; - string image_ref = 5; - string network_uuid = 6; - string block_uuid = 7; - string source_type = 8; - bool delete_on_termination = 9; - string state = 10; -} - -message HpcInfo { - int64 participantId = 1; - int64 taskId = 2; - string jobId = 3; - string name = 4; - string status = 5; - string startTime = 6; - int64 runningTime = 7; - string result = 8; - string workDir = 9; - string wallTime = 10; - string cmdScript = 11; - string derivedEs = 12; - string cluster = 13; - string blockId = 14; - uint32 allocNodes = 15; - uint32 allocCpu = 16; - string version = 17; - string account = 18; - uint32 exitCode = 19; - uint32 assocId = 20; - string appType = 21; - string appName = 22; - string queue = 23; - string submitType = 24; - string nNode = 25; - string stdOutFile = 26; - string stdErrFile = 27; - string stdInput = 28; - string environment = 29; -} - -message SyncInfoResp { - int64 code = 1; - string msg = 2; -} - -message InfoListReq { - int64 participantId = 1; -} - -message InfoListResp { - repeated HpcInfo HpcInfoList = 1; - repeated CloudInfo CloudInfoList = 2; - repeated AiInfo AiInfoList = 3; - repeated VmInfo VmInfoList = 4; -} - -// pcm core services -service pcmCore { - - // SyncInfo Synchronous data information - rpc SyncInfo(SyncInfoReq) returns (SyncInfoResp); - - // InfoList - rpc InfoList(InfoListReq) returns (InfoListResp); -} - -// participantTenant 租户信息 -message ParticipantTenant { - string tenantName = 1; // 租户名称 -} - -// 集群标签 -message ParticipantLabel { - int64 id = 1; // id - string key = 2; // 标签名 - string value = 3; // 标签值 -} - -enum MessageStatus { - FAIL = 0; - SUCCESS = 1; - UNKNOWN = 2; -} - -message HealthCheckResp { - MessageStatus messageStatus = 1; - int64 code = 2; - string msg = 3; -} - -message ParticipantPhyResp { - int64 code = 1; - string msg = 2; - int64 participantId = 3; // participant 唯一标识 -} - -// 集群静态信息返回 -message ListParticipantPhyResp { - int64 code = 1; - string msg = 2; - repeated ParticipantPhyReq ParticipantPhys = 3; -} - -// participantPhy 静态信息 -message ParticipantPhyReq { - string name = 1; // 名称 - string address = 2; // 地址 - string networkType = 4; // 集群网络类型 - string networkBandwidth = 5; // 集群网络带宽 - string storageType = 6; // 集群存储类型 - string storageSpace = 7; // 集群存储空间 - string storageAvailSpace = 8; // 集群存储可用空间 - string storageBandwidth = 9; // 集群存储带宽 - string type = 10; // 参与者类型:CLOUD-数算集群;AI-智算集群;HPC-超算集群 - int64 tenantId = 11; // 租户id - string tenantName = 12; // 租户名称 - repeated NodePhyInfo nodeInfo = 13; // 节点信息 - int64 participantId = 14; // participant id - repeated ParticipantLabel labelInfo = 15; // 标签信息 - repeated QueuePhyInfo queueInfo = 16; // 队列信息 - int64 id = 17; // id - string MetricsUrl = 18; //监控url - string RpcAddress = 19; - string Token = 20; //token -} - -// NodePhyInfo 节点信息 -message NodePhyInfo { - int64 id = 1; - string nodeName = 2; // 节点名称 - string osName = 3; // 系统名称 - string osVersion = 4; // 系统版本 - string archType = 5; // 架构类型 - string archName = 6; // 架构名称 - string archFreq = 7; // 架构频率 -} - -// QueuePhyInfo 队列信息 -message QueuePhyInfo { - int64 id = 1; // id - string aclHosts = 2; // 可用节点,多个节点用逗号隔开 - string queueId = 3; // 队列名称 - string text = 4 ; // 队列名称 - string queueName = 5; //队列名称 - string queNodes = 6; // 队列节点总数 - string queMinNodect = 7; // 队列最小节点数 - string queMaxNgpus = 8; // 队列最大GPU卡数 - string queMaxPpn = 9; // 使用该队列作业最大CPU核心数 - string queChargeRate = 10; // 费率 - string queMaxNcpus = 11; // 用户最大可用核心数 - string queMaxNdcus = 12; // 队列总DCU卡数 - string queMinNcpus = 13; // 队列最小CPU核数 - string queFreeNodes = 14; // 队列空闲节点数 - string queMaxNodect = 15; // 队列作业最大节点数 - string queMaxGpuPN = 16; // 队列单作业最大GPU卡数 - string queMaxWalltime = 17; // 队列最大运行时间 - string queMaxDcuPN = 18; // 队列单作业最大DCU卡数 - string queNcpus = 19; //队列cpu数 - string queFreeNcpus = 20; //队列空闲cpu数 -} - -// ParticipantHeartbeatReq 心跳请求 -message ParticipantHeartbeatReq { - int64 participantId = 1; // participantId - string address = 2; -} - -// ParticipantAvailInfo Participant可用信息 -message ParticipantAvailReq { - int64 id = 1; // id - int64 availStorageSpace = 2; // 集群存储可用空间 - int64 userNum = 3; // 用户数量 - int64 pendingJobNum = 4; // 待处理作业数量 - int64 runningJobNum = 5; // 运行作业数量 - int64 participantId = 6; // 集群静态信息id - repeated NodeAvailInfo nodeAvailInfo = 7; // 节点可用信息 -} - -// NodeAvailInfo 节点可用信息 -message NodeAvailInfo { - int64 id = 1; // id - string nodeName = 2; // 节点名称 - int64 cpuTotal = 3; // cpu核数 - double cpuUsable = 4; // cpu可用率 - int64 diskTotal = 5; // 磁盘空间 - int64 diskAvail = 6; // 磁盘可用空间 - int64 memTotal = 7; // 内存总数 - int64 memAvail = 8; // 内存可用数 - int64 gpuTotal = 9; // gpu总数 - int64 gpuAvail = 10; // gpu可用数 - int64 participantId = 11; // 集群动态信息id -} - -// 集群可用信息 -message ListParticipantAvailResp { - int64 code = 1; - string msg = 2; - repeated ParticipantAvailReq ParticipantAvails = 3; -} - -message ParticipantResp { - int64 code = 1; - string msg = 2; -} -message ParticipantServiceResp { - int64 code = 1; - string msg = 2; - repeated ClientInfo data = 3; -} - -message ClientInfo { - string address = 1; // @gotags: redis:"address" - int64 participantId = 2; // @gotags: redis:"participantId" - string clientState = 3; // @gotags: redis:"clientState" - int64 lastHeartbeat = 4; // @gotags: redis:"lastHeartbeat" -} - -message TenantInfo { - int64 id = 1; - string tenantName = 2; - string tenantDesc = 3; -} - -message TenantResp { - int64 code = 1; - string msg = 2; - int64 id = 3; -} - -message ListTenantResp { - int64 code = 1; - string msg = 2; - repeated TenantInfo tenantInfos = 3; -} - -message ApplyListReq{ - -} - -message ApplyListResp{ - repeated ApplyInfo infoList = 1; -} - -message ApplyInfo{ - string participantName = 1; - string yamlString = 2; - string namespace =3; - string name = 4; - string kind = 5; -} - -// participant 参与者 -service participantService { - - // registerParticipant Participant注册接口 - rpc registerParticipant(ParticipantPhyReq) returns (ParticipantPhyResp) {}; - - // reportHeartbeat 心跳请求 - rpc reportHeartbeat(ParticipantHeartbeatReq) returns (HealthCheckResp) {}; - - // reportAvailable 监控数据上报 - rpc reportAvailable(ParticipantAvailReq) returns (ParticipantResp) {} - - // listParticipant 服务列表 - rpc listParticipant(ParticipantTenant) returns (ParticipantServiceResp) {} - - // listAvailable 集群动态信息列表 - rpc listPhyAvailable(ParticipantTenant) returns (ListParticipantAvailResp) {} - - // listPhyInformation 集群静态信息列表 - rpc listPhyInformation(ParticipantTenant) returns (ListParticipantPhyResp) {}; - - // registerTenant 注册租户信息 - rpc registerTenant(TenantInfo) returns (TenantResp) {}; - - // listTenant 租户列表信息 - rpc listTenant(TenantInfo) returns (ListTenantResp) {}; - - // applyList 执行任务列表 - rpc applyList(ApplyListReq) returns (ApplyListResp) {}; - - // DeleteList 删除任务列表 - rpc deleteList(ApplyListReq) returns (ApplyListResp) {}; - - // RestartList 重启任务列表 - rpc restartList(ApplyListReq) returns (ApplyListResp) {}; - - // PauseList 暂停任务列表 - rpc pauseList(ApplyListReq) returns (ApplyListResp) {}; - - // StartList 启动任务列表 - rpc startList(ApplyListReq) returns (ApplyListResp) {}; -} \ No newline at end of file diff --git a/rpc/pcm-coordinator-rpc.yaml b/rpc/pcm-coordinator-rpc.yaml deleted file mode 100644 index 769467d3..00000000 --- a/rpc/pcm-coordinator-rpc.yaml +++ /dev/null @@ -1,64 +0,0 @@ -kind: Deployment -apiVersion: apps/v1 -metadata: - name: pcm-coordinator-rpc-deployment - namespace: jcce-system - labels: - k8s-app: pcm-coordinator-rpc -spec: - replicas: 1 - selector: - matchLabels: - k8s-app: pcm-coordinator-rpc - template: - metadata: - name: pcm-coordinator-rpc - labels: - k8s-app: pcm-coordinator-rpc - spec: - imagePullSecrets: - - name: secret_name - containers: - - name: pcm-coordinator-rpc - image: image_name - resources: {} - imagePullPolicy: Always - securityContext: - privileged: false - procMount: Default - ports: - - containerPort: 80 - volumeMounts: [] - volumes: [] - restartPolicy: Always - terminationGracePeriodSeconds: 30 - dnsPolicy: ClusterFirst - securityContext: {} - schedulerName: default-scheduler - strategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 25% - maxSurge: 25% - revisionHistoryLimit: 10 - progressDeadlineSeconds: 600 - ---- - -apiVersion: v1 -kind: Service -metadata: - namespace: jcce-system - name: pcm-coordinator-rpc-service - labels: - k8s-service: pcm-coordinator-rpc -spec: - selector: - k8s-app: pcm-coordinator-rpc - ports: - - name: web - protocol: TCP - port: 2004 - targetPort: 2004 - nodePort: 32456 - type: NodePort diff --git a/rpc/pcmCore/pcmCore.pb.go b/rpc/pcmCore/pcmCore.pb.go deleted file mode 100644 index 41a69fb1..00000000 --- a/rpc/pcmCore/pcmCore.pb.go +++ /dev/null @@ -1,3627 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.31.0 -// protoc v3.19.4 -// source: pcmCore.proto - -package pcmCore - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type MessageStatus int32 - -const ( - MessageStatus_FAIL MessageStatus = 0 - MessageStatus_SUCCESS MessageStatus = 1 - MessageStatus_UNKNOWN MessageStatus = 2 -) - -// Enum value maps for MessageStatus. -var ( - MessageStatus_name = map[int32]string{ - 0: "FAIL", - 1: "SUCCESS", - 2: "UNKNOWN", - } - MessageStatus_value = map[string]int32{ - "FAIL": 0, - "SUCCESS": 1, - "UNKNOWN": 2, - } -) - -func (x MessageStatus) Enum() *MessageStatus { - p := new(MessageStatus) - *p = x - return p -} - -func (x MessageStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MessageStatus) Descriptor() protoreflect.EnumDescriptor { - return file_pcmCore_proto_enumTypes[0].Descriptor() -} - -func (MessageStatus) Type() protoreflect.EnumType { - return &file_pcmCore_proto_enumTypes[0] -} - -func (x MessageStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MessageStatus.Descriptor instead. -func (MessageStatus) EnumDescriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{0} -} - -type SyncInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"` - HpcInfoList []*HpcInfo `protobuf:"bytes,2,rep,name=HpcInfoList,proto3" json:"HpcInfoList,omitempty"` - CloudInfoList []*CloudInfo `protobuf:"bytes,3,rep,name=CloudInfoList,proto3" json:"CloudInfoList,omitempty"` - AiInfoList []*AiInfo `protobuf:"bytes,4,rep,name=AiInfoList,proto3" json:"AiInfoList,omitempty"` - VmInfoList []*VmInfo `protobuf:"bytes,5,rep,name=VmInfoList,proto3" json:"VmInfoList,omitempty"` -} - -func (x *SyncInfoReq) Reset() { - *x = SyncInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncInfoReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncInfoReq) ProtoMessage() {} - -func (x *SyncInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncInfoReq.ProtoReflect.Descriptor instead. -func (*SyncInfoReq) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{0} -} - -func (x *SyncInfoReq) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *SyncInfoReq) GetHpcInfoList() []*HpcInfo { - if x != nil { - return x.HpcInfoList - } - return nil -} - -func (x *SyncInfoReq) GetCloudInfoList() []*CloudInfo { - if x != nil { - return x.CloudInfoList - } - return nil -} - -func (x *SyncInfoReq) GetAiInfoList() []*AiInfo { - if x != nil { - return x.AiInfoList - } - return nil -} - -func (x *SyncInfoReq) GetVmInfoList() []*VmInfo { - if x != nil { - return x.VmInfoList - } - return nil -} - -type AiInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"` - TaskId int64 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId,omitempty"` - ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` - StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"` - RunningTime int64 `protobuf:"varint,7,opt,name=runningTime,proto3" json:"runningTime,omitempty"` - Result string `protobuf:"bytes,8,opt,name=result,proto3" json:"result,omitempty"` - JobId string `protobuf:"bytes,9,opt,name=jobId,proto3" json:"jobId,omitempty"` - CreateTime string `protobuf:"bytes,10,opt,name=createTime,proto3" json:"createTime,omitempty"` - ImageUrl string `protobuf:"bytes,11,opt,name=imageUrl,proto3" json:"imageUrl,omitempty"` - Command string `protobuf:"bytes,12,opt,name=command,proto3" json:"command,omitempty"` - FlavorId string `protobuf:"bytes,13,opt,name=flavorId,proto3" json:"flavorId,omitempty"` - SubscriptionId string `protobuf:"bytes,14,opt,name=subscriptionId,proto3" json:"subscriptionId,omitempty"` - ItemVersionId string `protobuf:"bytes,15,opt,name=itemVersionId,proto3" json:"itemVersionId,omitempty"` -} - -func (x *AiInfo) Reset() { - *x = AiInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AiInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AiInfo) ProtoMessage() {} - -func (x *AiInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AiInfo.ProtoReflect.Descriptor instead. -func (*AiInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{1} -} - -func (x *AiInfo) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *AiInfo) GetTaskId() int64 { - if x != nil { - return x.TaskId - } - return 0 -} - -func (x *AiInfo) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *AiInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *AiInfo) GetStatus() string { - if x != nil { - return x.Status - } - return "" -} - -func (x *AiInfo) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *AiInfo) GetRunningTime() int64 { - if x != nil { - return x.RunningTime - } - return 0 -} - -func (x *AiInfo) GetResult() string { - if x != nil { - return x.Result - } - return "" -} - -func (x *AiInfo) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -func (x *AiInfo) GetCreateTime() string { - if x != nil { - return x.CreateTime - } - return "" -} - -func (x *AiInfo) GetImageUrl() string { - if x != nil { - return x.ImageUrl - } - return "" -} - -func (x *AiInfo) GetCommand() string { - if x != nil { - return x.Command - } - return "" -} - -func (x *AiInfo) GetFlavorId() string { - if x != nil { - return x.FlavorId - } - return "" -} - -func (x *AiInfo) GetSubscriptionId() string { - if x != nil { - return x.SubscriptionId - } - return "" -} - -func (x *AiInfo) GetItemVersionId() string { - if x != nil { - return x.ItemVersionId - } - return "" -} - -type CloudInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Participant int64 `protobuf:"varint,1,opt,name=participant,proto3" json:"participant,omitempty"` - Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - TaskId int64 `protobuf:"varint,3,opt,name=taskId,proto3" json:"taskId,omitempty"` - ApiVersion string `protobuf:"bytes,4,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` - Kind string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` - Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"` - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` - Status string `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` - StartTime string `protobuf:"bytes,8,opt,name=startTime,proto3" json:"startTime,omitempty"` - RunningTime int64 `protobuf:"varint,9,opt,name=runningTime,proto3" json:"runningTime,omitempty"` - Result string `protobuf:"bytes,10,opt,name=result,proto3" json:"result,omitempty"` - YamlString string `protobuf:"bytes,12,opt,name=yamlString,proto3" json:"yamlString,omitempty"` -} - -func (x *CloudInfo) Reset() { - *x = CloudInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloudInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloudInfo) ProtoMessage() {} - -func (x *CloudInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloudInfo.ProtoReflect.Descriptor instead. -func (*CloudInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{2} -} - -func (x *CloudInfo) GetParticipant() int64 { - if x != nil { - return x.Participant - } - return 0 -} - -func (x *CloudInfo) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *CloudInfo) GetTaskId() int64 { - if x != nil { - return x.TaskId - } - return 0 -} - -func (x *CloudInfo) GetApiVersion() string { - if x != nil { - return x.ApiVersion - } - return "" -} - -func (x *CloudInfo) GetKind() string { - if x != nil { - return x.Kind - } - return "" -} - -func (x *CloudInfo) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *CloudInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CloudInfo) GetStatus() string { - if x != nil { - return x.Status - } - return "" -} - -func (x *CloudInfo) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *CloudInfo) GetRunningTime() int64 { - if x != nil { - return x.RunningTime - } - return 0 -} - -func (x *CloudInfo) GetResult() string { - if x != nil { - return x.Result - } - return "" -} - -func (x *CloudInfo) GetYamlString() string { - if x != nil { - return x.YamlString - } - return "" -} - -type VmInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"` - TaskId int64 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - FlavorRef string `protobuf:"bytes,4,opt,name=flavor_ref,json=flavorRef,proto3" json:"flavor_ref,omitempty"` - ImageRef string `protobuf:"bytes,5,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"` - NetworkUuid string `protobuf:"bytes,6,opt,name=network_uuid,json=networkUuid,proto3" json:"network_uuid,omitempty"` - BlockUuid string `protobuf:"bytes,7,opt,name=block_uuid,json=blockUuid,proto3" json:"block_uuid,omitempty"` - SourceType string `protobuf:"bytes,8,opt,name=source_type,json=sourceType,proto3" json:"source_type,omitempty"` - DeleteOnTermination bool `protobuf:"varint,9,opt,name=delete_on_termination,json=deleteOnTermination,proto3" json:"delete_on_termination,omitempty"` - State string `protobuf:"bytes,10,opt,name=state,proto3" json:"state,omitempty"` -} - -func (x *VmInfo) Reset() { - *x = VmInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VmInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VmInfo) ProtoMessage() {} - -func (x *VmInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VmInfo.ProtoReflect.Descriptor instead. -func (*VmInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{3} -} - -func (x *VmInfo) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *VmInfo) GetTaskId() int64 { - if x != nil { - return x.TaskId - } - return 0 -} - -func (x *VmInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *VmInfo) GetFlavorRef() string { - if x != nil { - return x.FlavorRef - } - return "" -} - -func (x *VmInfo) GetImageRef() string { - if x != nil { - return x.ImageRef - } - return "" -} - -func (x *VmInfo) GetNetworkUuid() string { - if x != nil { - return x.NetworkUuid - } - return "" -} - -func (x *VmInfo) GetBlockUuid() string { - if x != nil { - return x.BlockUuid - } - return "" -} - -func (x *VmInfo) GetSourceType() string { - if x != nil { - return x.SourceType - } - return "" -} - -func (x *VmInfo) GetDeleteOnTermination() bool { - if x != nil { - return x.DeleteOnTermination - } - return false -} - -func (x *VmInfo) GetState() string { - if x != nil { - return x.State - } - return "" -} - -type HpcInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"` - TaskId int64 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId,omitempty"` - JobId string `protobuf:"bytes,3,opt,name=jobId,proto3" json:"jobId,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` - StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"` - RunningTime int64 `protobuf:"varint,7,opt,name=runningTime,proto3" json:"runningTime,omitempty"` - Result string `protobuf:"bytes,8,opt,name=result,proto3" json:"result,omitempty"` - WorkDir string `protobuf:"bytes,9,opt,name=workDir,proto3" json:"workDir,omitempty"` - WallTime string `protobuf:"bytes,10,opt,name=wallTime,proto3" json:"wallTime,omitempty"` - CmdScript string `protobuf:"bytes,11,opt,name=cmdScript,proto3" json:"cmdScript,omitempty"` - DerivedEs string `protobuf:"bytes,12,opt,name=derivedEs,proto3" json:"derivedEs,omitempty"` - Cluster string `protobuf:"bytes,13,opt,name=cluster,proto3" json:"cluster,omitempty"` - BlockId string `protobuf:"bytes,14,opt,name=blockId,proto3" json:"blockId,omitempty"` - AllocNodes uint32 `protobuf:"varint,15,opt,name=allocNodes,proto3" json:"allocNodes,omitempty"` - AllocCpu uint32 `protobuf:"varint,16,opt,name=allocCpu,proto3" json:"allocCpu,omitempty"` - Version string `protobuf:"bytes,17,opt,name=version,proto3" json:"version,omitempty"` - Account string `protobuf:"bytes,18,opt,name=account,proto3" json:"account,omitempty"` - ExitCode uint32 `protobuf:"varint,19,opt,name=exitCode,proto3" json:"exitCode,omitempty"` - AssocId uint32 `protobuf:"varint,20,opt,name=assocId,proto3" json:"assocId,omitempty"` - AppType string `protobuf:"bytes,21,opt,name=appType,proto3" json:"appType,omitempty"` - AppName string `protobuf:"bytes,22,opt,name=appName,proto3" json:"appName,omitempty"` - Queue string `protobuf:"bytes,23,opt,name=queue,proto3" json:"queue,omitempty"` - SubmitType string `protobuf:"bytes,24,opt,name=submitType,proto3" json:"submitType,omitempty"` - NNode string `protobuf:"bytes,25,opt,name=nNode,proto3" json:"nNode,omitempty"` - StdOutFile string `protobuf:"bytes,26,opt,name=stdOutFile,proto3" json:"stdOutFile,omitempty"` - StdErrFile string `protobuf:"bytes,27,opt,name=stdErrFile,proto3" json:"stdErrFile,omitempty"` - StdInput string `protobuf:"bytes,28,opt,name=stdInput,proto3" json:"stdInput,omitempty"` - Environment string `protobuf:"bytes,29,opt,name=environment,proto3" json:"environment,omitempty"` -} - -func (x *HpcInfo) Reset() { - *x = HpcInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HpcInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HpcInfo) ProtoMessage() {} - -func (x *HpcInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HpcInfo.ProtoReflect.Descriptor instead. -func (*HpcInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{4} -} - -func (x *HpcInfo) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *HpcInfo) GetTaskId() int64 { - if x != nil { - return x.TaskId - } - return 0 -} - -func (x *HpcInfo) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -func (x *HpcInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *HpcInfo) GetStatus() string { - if x != nil { - return x.Status - } - return "" -} - -func (x *HpcInfo) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *HpcInfo) GetRunningTime() int64 { - if x != nil { - return x.RunningTime - } - return 0 -} - -func (x *HpcInfo) GetResult() string { - if x != nil { - return x.Result - } - return "" -} - -func (x *HpcInfo) GetWorkDir() string { - if x != nil { - return x.WorkDir - } - return "" -} - -func (x *HpcInfo) GetWallTime() string { - if x != nil { - return x.WallTime - } - return "" -} - -func (x *HpcInfo) GetCmdScript() string { - if x != nil { - return x.CmdScript - } - return "" -} - -func (x *HpcInfo) GetDerivedEs() string { - if x != nil { - return x.DerivedEs - } - return "" -} - -func (x *HpcInfo) GetCluster() string { - if x != nil { - return x.Cluster - } - return "" -} - -func (x *HpcInfo) GetBlockId() string { - if x != nil { - return x.BlockId - } - return "" -} - -func (x *HpcInfo) GetAllocNodes() uint32 { - if x != nil { - return x.AllocNodes - } - return 0 -} - -func (x *HpcInfo) GetAllocCpu() uint32 { - if x != nil { - return x.AllocCpu - } - return 0 -} - -func (x *HpcInfo) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *HpcInfo) GetAccount() string { - if x != nil { - return x.Account - } - return "" -} - -func (x *HpcInfo) GetExitCode() uint32 { - if x != nil { - return x.ExitCode - } - return 0 -} - -func (x *HpcInfo) GetAssocId() uint32 { - if x != nil { - return x.AssocId - } - return 0 -} - -func (x *HpcInfo) GetAppType() string { - if x != nil { - return x.AppType - } - return "" -} - -func (x *HpcInfo) GetAppName() string { - if x != nil { - return x.AppName - } - return "" -} - -func (x *HpcInfo) GetQueue() string { - if x != nil { - return x.Queue - } - return "" -} - -func (x *HpcInfo) GetSubmitType() string { - if x != nil { - return x.SubmitType - } - return "" -} - -func (x *HpcInfo) GetNNode() string { - if x != nil { - return x.NNode - } - return "" -} - -func (x *HpcInfo) GetStdOutFile() string { - if x != nil { - return x.StdOutFile - } - return "" -} - -func (x *HpcInfo) GetStdErrFile() string { - if x != nil { - return x.StdErrFile - } - return "" -} - -func (x *HpcInfo) GetStdInput() string { - if x != nil { - return x.StdInput - } - return "" -} - -func (x *HpcInfo) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -type SyncInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` -} - -func (x *SyncInfoResp) Reset() { - *x = SyncInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncInfoResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncInfoResp) ProtoMessage() {} - -func (x *SyncInfoResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncInfoResp.ProtoReflect.Descriptor instead. -func (*SyncInfoResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{5} -} - -func (x *SyncInfoResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *SyncInfoResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -type InfoListReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"` -} - -func (x *InfoListReq) Reset() { - *x = InfoListReq{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InfoListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InfoListReq) ProtoMessage() {} - -func (x *InfoListReq) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InfoListReq.ProtoReflect.Descriptor instead. -func (*InfoListReq) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{6} -} - -func (x *InfoListReq) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -type InfoListResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - HpcInfoList []*HpcInfo `protobuf:"bytes,1,rep,name=HpcInfoList,proto3" json:"HpcInfoList,omitempty"` - CloudInfoList []*CloudInfo `protobuf:"bytes,2,rep,name=CloudInfoList,proto3" json:"CloudInfoList,omitempty"` - AiInfoList []*AiInfo `protobuf:"bytes,3,rep,name=AiInfoList,proto3" json:"AiInfoList,omitempty"` - VmInfoList []*VmInfo `protobuf:"bytes,4,rep,name=VmInfoList,proto3" json:"VmInfoList,omitempty"` -} - -func (x *InfoListResp) Reset() { - *x = InfoListResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InfoListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InfoListResp) ProtoMessage() {} - -func (x *InfoListResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InfoListResp.ProtoReflect.Descriptor instead. -func (*InfoListResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{7} -} - -func (x *InfoListResp) GetHpcInfoList() []*HpcInfo { - if x != nil { - return x.HpcInfoList - } - return nil -} - -func (x *InfoListResp) GetCloudInfoList() []*CloudInfo { - if x != nil { - return x.CloudInfoList - } - return nil -} - -func (x *InfoListResp) GetAiInfoList() []*AiInfo { - if x != nil { - return x.AiInfoList - } - return nil -} - -func (x *InfoListResp) GetVmInfoList() []*VmInfo { - if x != nil { - return x.VmInfoList - } - return nil -} - -// participantTenant 租户信息 -type ParticipantTenant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TenantName string `protobuf:"bytes,1,opt,name=tenantName,proto3" json:"tenantName,omitempty"` // 租户名称 -} - -func (x *ParticipantTenant) Reset() { - *x = ParticipantTenant{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantTenant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantTenant) ProtoMessage() {} - -func (x *ParticipantTenant) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantTenant.ProtoReflect.Descriptor instead. -func (*ParticipantTenant) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{8} -} - -func (x *ParticipantTenant) GetTenantName() string { - if x != nil { - return x.TenantName - } - return "" -} - -// 集群标签 -type ParticipantLabel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // 标签名 - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // 标签值 -} - -func (x *ParticipantLabel) Reset() { - *x = ParticipantLabel{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantLabel) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantLabel) ProtoMessage() {} - -func (x *ParticipantLabel) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantLabel.ProtoReflect.Descriptor instead. -func (*ParticipantLabel) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{9} -} - -func (x *ParticipantLabel) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *ParticipantLabel) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ParticipantLabel) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type HealthCheckResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageStatus MessageStatus `protobuf:"varint,1,opt,name=messageStatus,proto3,enum=pcmCore.MessageStatus" json:"messageStatus,omitempty"` - Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` -} - -func (x *HealthCheckResp) Reset() { - *x = HealthCheckResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HealthCheckResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HealthCheckResp) ProtoMessage() {} - -func (x *HealthCheckResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HealthCheckResp.ProtoReflect.Descriptor instead. -func (*HealthCheckResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{10} -} - -func (x *HealthCheckResp) GetMessageStatus() MessageStatus { - if x != nil { - return x.MessageStatus - } - return MessageStatus_FAIL -} - -func (x *HealthCheckResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *HealthCheckResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -type ParticipantPhyResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - ParticipantId int64 `protobuf:"varint,3,opt,name=participantId,proto3" json:"participantId,omitempty"` // participant 唯一标识 -} - -func (x *ParticipantPhyResp) Reset() { - *x = ParticipantPhyResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantPhyResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantPhyResp) ProtoMessage() {} - -func (x *ParticipantPhyResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantPhyResp.ProtoReflect.Descriptor instead. -func (*ParticipantPhyResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{11} -} - -func (x *ParticipantPhyResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *ParticipantPhyResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -func (x *ParticipantPhyResp) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -// 集群静态信息返回 -type ListParticipantPhyResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - ParticipantPhys []*ParticipantPhyReq `protobuf:"bytes,3,rep,name=ParticipantPhys,proto3" json:"ParticipantPhys,omitempty"` -} - -func (x *ListParticipantPhyResp) Reset() { - *x = ListParticipantPhyResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListParticipantPhyResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListParticipantPhyResp) ProtoMessage() {} - -func (x *ListParticipantPhyResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListParticipantPhyResp.ProtoReflect.Descriptor instead. -func (*ListParticipantPhyResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{12} -} - -func (x *ListParticipantPhyResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *ListParticipantPhyResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -func (x *ListParticipantPhyResp) GetParticipantPhys() []*ParticipantPhyReq { - if x != nil { - return x.ParticipantPhys - } - return nil -} - -// participantPhy 静态信息 -type ParticipantPhyReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 名称 - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // 地址 - NetworkType string `protobuf:"bytes,4,opt,name=networkType,proto3" json:"networkType,omitempty"` // 集群网络类型 - NetworkBandwidth string `protobuf:"bytes,5,opt,name=networkBandwidth,proto3" json:"networkBandwidth,omitempty"` // 集群网络带宽 - StorageType string `protobuf:"bytes,6,opt,name=storageType,proto3" json:"storageType,omitempty"` // 集群存储类型 - StorageSpace string `protobuf:"bytes,7,opt,name=storageSpace,proto3" json:"storageSpace,omitempty"` // 集群存储空间 - StorageAvailSpace string `protobuf:"bytes,8,opt,name=storageAvailSpace,proto3" json:"storageAvailSpace,omitempty"` // 集群存储可用空间 - StorageBandwidth string `protobuf:"bytes,9,opt,name=storageBandwidth,proto3" json:"storageBandwidth,omitempty"` // 集群存储带宽 - Type string `protobuf:"bytes,10,opt,name=type,proto3" json:"type,omitempty"` // 参与者类型:CLOUD-数算集群;AI-智算集群;HPC-超算集群 - TenantId int64 `protobuf:"varint,11,opt,name=tenantId,proto3" json:"tenantId,omitempty"` // 租户id - TenantName string `protobuf:"bytes,12,opt,name=tenantName,proto3" json:"tenantName,omitempty"` // 租户名称 - NodeInfo []*NodePhyInfo `protobuf:"bytes,13,rep,name=nodeInfo,proto3" json:"nodeInfo,omitempty"` // 节点信息 - ParticipantId int64 `protobuf:"varint,14,opt,name=participantId,proto3" json:"participantId,omitempty"` // participant id - LabelInfo []*ParticipantLabel `protobuf:"bytes,15,rep,name=labelInfo,proto3" json:"labelInfo,omitempty"` // 标签信息 - QueueInfo []*QueuePhyInfo `protobuf:"bytes,16,rep,name=queueInfo,proto3" json:"queueInfo,omitempty"` // 队列信息 - Id int64 `protobuf:"varint,17,opt,name=id,proto3" json:"id,omitempty"` // id - MetricsUrl string `protobuf:"bytes,18,opt,name=MetricsUrl,proto3" json:"MetricsUrl,omitempty"` //监控url - RpcAddress string `protobuf:"bytes,19,opt,name=RpcAddress,proto3" json:"RpcAddress,omitempty"` - Token string `protobuf:"bytes,20,opt,name=Token,proto3" json:"Token,omitempty"` //token -} - -func (x *ParticipantPhyReq) Reset() { - *x = ParticipantPhyReq{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantPhyReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantPhyReq) ProtoMessage() {} - -func (x *ParticipantPhyReq) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantPhyReq.ProtoReflect.Descriptor instead. -func (*ParticipantPhyReq) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{13} -} - -func (x *ParticipantPhyReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ParticipantPhyReq) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *ParticipantPhyReq) GetNetworkType() string { - if x != nil { - return x.NetworkType - } - return "" -} - -func (x *ParticipantPhyReq) GetNetworkBandwidth() string { - if x != nil { - return x.NetworkBandwidth - } - return "" -} - -func (x *ParticipantPhyReq) GetStorageType() string { - if x != nil { - return x.StorageType - } - return "" -} - -func (x *ParticipantPhyReq) GetStorageSpace() string { - if x != nil { - return x.StorageSpace - } - return "" -} - -func (x *ParticipantPhyReq) GetStorageAvailSpace() string { - if x != nil { - return x.StorageAvailSpace - } - return "" -} - -func (x *ParticipantPhyReq) GetStorageBandwidth() string { - if x != nil { - return x.StorageBandwidth - } - return "" -} - -func (x *ParticipantPhyReq) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *ParticipantPhyReq) GetTenantId() int64 { - if x != nil { - return x.TenantId - } - return 0 -} - -func (x *ParticipantPhyReq) GetTenantName() string { - if x != nil { - return x.TenantName - } - return "" -} - -func (x *ParticipantPhyReq) GetNodeInfo() []*NodePhyInfo { - if x != nil { - return x.NodeInfo - } - return nil -} - -func (x *ParticipantPhyReq) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *ParticipantPhyReq) GetLabelInfo() []*ParticipantLabel { - if x != nil { - return x.LabelInfo - } - return nil -} - -func (x *ParticipantPhyReq) GetQueueInfo() []*QueuePhyInfo { - if x != nil { - return x.QueueInfo - } - return nil -} - -func (x *ParticipantPhyReq) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *ParticipantPhyReq) GetMetricsUrl() string { - if x != nil { - return x.MetricsUrl - } - return "" -} - -func (x *ParticipantPhyReq) GetRpcAddress() string { - if x != nil { - return x.RpcAddress - } - return "" -} - -func (x *ParticipantPhyReq) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// NodePhyInfo 节点信息 -type NodePhyInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - NodeName string `protobuf:"bytes,2,opt,name=nodeName,proto3" json:"nodeName,omitempty"` // 节点名称 - OsName string `protobuf:"bytes,3,opt,name=osName,proto3" json:"osName,omitempty"` // 系统名称 - OsVersion string `protobuf:"bytes,4,opt,name=osVersion,proto3" json:"osVersion,omitempty"` // 系统版本 - ArchType string `protobuf:"bytes,5,opt,name=archType,proto3" json:"archType,omitempty"` // 架构类型 - ArchName string `protobuf:"bytes,6,opt,name=archName,proto3" json:"archName,omitempty"` // 架构名称 - ArchFreq string `protobuf:"bytes,7,opt,name=archFreq,proto3" json:"archFreq,omitempty"` // 架构频率 -} - -func (x *NodePhyInfo) Reset() { - *x = NodePhyInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodePhyInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodePhyInfo) ProtoMessage() {} - -func (x *NodePhyInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodePhyInfo.ProtoReflect.Descriptor instead. -func (*NodePhyInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{14} -} - -func (x *NodePhyInfo) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *NodePhyInfo) GetNodeName() string { - if x != nil { - return x.NodeName - } - return "" -} - -func (x *NodePhyInfo) GetOsName() string { - if x != nil { - return x.OsName - } - return "" -} - -func (x *NodePhyInfo) GetOsVersion() string { - if x != nil { - return x.OsVersion - } - return "" -} - -func (x *NodePhyInfo) GetArchType() string { - if x != nil { - return x.ArchType - } - return "" -} - -func (x *NodePhyInfo) GetArchName() string { - if x != nil { - return x.ArchName - } - return "" -} - -func (x *NodePhyInfo) GetArchFreq() string { - if x != nil { - return x.ArchFreq - } - return "" -} - -// QueuePhyInfo 队列信息 -type QueuePhyInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id - AclHosts string `protobuf:"bytes,2,opt,name=aclHosts,proto3" json:"aclHosts,omitempty"` // 可用节点,多个节点用逗号隔开 - QueueId string `protobuf:"bytes,3,opt,name=queueId,proto3" json:"queueId,omitempty"` // 队列名称 - Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` // 队列名称 - QueueName string `protobuf:"bytes,5,opt,name=queueName,proto3" json:"queueName,omitempty"` //队列名称 - QueNodes string `protobuf:"bytes,6,opt,name=queNodes,proto3" json:"queNodes,omitempty"` // 队列节点总数 - QueMinNodect string `protobuf:"bytes,7,opt,name=queMinNodect,proto3" json:"queMinNodect,omitempty"` // 队列最小节点数 - QueMaxNgpus string `protobuf:"bytes,8,opt,name=queMaxNgpus,proto3" json:"queMaxNgpus,omitempty"` // 队列最大GPU卡数 - QueMaxPpn string `protobuf:"bytes,9,opt,name=queMaxPpn,proto3" json:"queMaxPpn,omitempty"` // 使用该队列作业最大CPU核心数 - QueChargeRate string `protobuf:"bytes,10,opt,name=queChargeRate,proto3" json:"queChargeRate,omitempty"` // 费率 - QueMaxNcpus string `protobuf:"bytes,11,opt,name=queMaxNcpus,proto3" json:"queMaxNcpus,omitempty"` // 用户最大可用核心数 - QueMaxNdcus string `protobuf:"bytes,12,opt,name=queMaxNdcus,proto3" json:"queMaxNdcus,omitempty"` // 队列总DCU卡数 - QueMinNcpus string `protobuf:"bytes,13,opt,name=queMinNcpus,proto3" json:"queMinNcpus,omitempty"` // 队列最小CPU核数 - QueFreeNodes string `protobuf:"bytes,14,opt,name=queFreeNodes,proto3" json:"queFreeNodes,omitempty"` // 队列空闲节点数 - QueMaxNodect string `protobuf:"bytes,15,opt,name=queMaxNodect,proto3" json:"queMaxNodect,omitempty"` // 队列作业最大节点数 - QueMaxGpuPN string `protobuf:"bytes,16,opt,name=queMaxGpuPN,proto3" json:"queMaxGpuPN,omitempty"` // 队列单作业最大GPU卡数 - QueMaxWalltime string `protobuf:"bytes,17,opt,name=queMaxWalltime,proto3" json:"queMaxWalltime,omitempty"` // 队列最大运行时间 - QueMaxDcuPN string `protobuf:"bytes,18,opt,name=queMaxDcuPN,proto3" json:"queMaxDcuPN,omitempty"` // 队列单作业最大DCU卡数 - QueNcpus string `protobuf:"bytes,19,opt,name=queNcpus,proto3" json:"queNcpus,omitempty"` //队列cpu数 - QueFreeNcpus string `protobuf:"bytes,20,opt,name=queFreeNcpus,proto3" json:"queFreeNcpus,omitempty"` //队列空闲cpu数 -} - -func (x *QueuePhyInfo) Reset() { - *x = QueuePhyInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueuePhyInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueuePhyInfo) ProtoMessage() {} - -func (x *QueuePhyInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueuePhyInfo.ProtoReflect.Descriptor instead. -func (*QueuePhyInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{15} -} - -func (x *QueuePhyInfo) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *QueuePhyInfo) GetAclHosts() string { - if x != nil { - return x.AclHosts - } - return "" -} - -func (x *QueuePhyInfo) GetQueueId() string { - if x != nil { - return x.QueueId - } - return "" -} - -func (x *QueuePhyInfo) GetText() string { - if x != nil { - return x.Text - } - return "" -} - -func (x *QueuePhyInfo) GetQueueName() string { - if x != nil { - return x.QueueName - } - return "" -} - -func (x *QueuePhyInfo) GetQueNodes() string { - if x != nil { - return x.QueNodes - } - return "" -} - -func (x *QueuePhyInfo) GetQueMinNodect() string { - if x != nil { - return x.QueMinNodect - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxNgpus() string { - if x != nil { - return x.QueMaxNgpus - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxPpn() string { - if x != nil { - return x.QueMaxPpn - } - return "" -} - -func (x *QueuePhyInfo) GetQueChargeRate() string { - if x != nil { - return x.QueChargeRate - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxNcpus() string { - if x != nil { - return x.QueMaxNcpus - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxNdcus() string { - if x != nil { - return x.QueMaxNdcus - } - return "" -} - -func (x *QueuePhyInfo) GetQueMinNcpus() string { - if x != nil { - return x.QueMinNcpus - } - return "" -} - -func (x *QueuePhyInfo) GetQueFreeNodes() string { - if x != nil { - return x.QueFreeNodes - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxNodect() string { - if x != nil { - return x.QueMaxNodect - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxGpuPN() string { - if x != nil { - return x.QueMaxGpuPN - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxWalltime() string { - if x != nil { - return x.QueMaxWalltime - } - return "" -} - -func (x *QueuePhyInfo) GetQueMaxDcuPN() string { - if x != nil { - return x.QueMaxDcuPN - } - return "" -} - -func (x *QueuePhyInfo) GetQueNcpus() string { - if x != nil { - return x.QueNcpus - } - return "" -} - -func (x *QueuePhyInfo) GetQueFreeNcpus() string { - if x != nil { - return x.QueFreeNcpus - } - return "" -} - -// ParticipantHeartbeatReq 心跳请求 -type ParticipantHeartbeatReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"` // participantId - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *ParticipantHeartbeatReq) Reset() { - *x = ParticipantHeartbeatReq{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantHeartbeatReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantHeartbeatReq) ProtoMessage() {} - -func (x *ParticipantHeartbeatReq) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantHeartbeatReq.ProtoReflect.Descriptor instead. -func (*ParticipantHeartbeatReq) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{16} -} - -func (x *ParticipantHeartbeatReq) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *ParticipantHeartbeatReq) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -// ParticipantAvailInfo Participant可用信息 -type ParticipantAvailReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id - AvailStorageSpace int64 `protobuf:"varint,2,opt,name=availStorageSpace,proto3" json:"availStorageSpace,omitempty"` // 集群存储可用空间 - UserNum int64 `protobuf:"varint,3,opt,name=userNum,proto3" json:"userNum,omitempty"` // 用户数量 - PendingJobNum int64 `protobuf:"varint,4,opt,name=pendingJobNum,proto3" json:"pendingJobNum,omitempty"` // 待处理作业数量 - RunningJobNum int64 `protobuf:"varint,5,opt,name=runningJobNum,proto3" json:"runningJobNum,omitempty"` // 运行作业数量 - ParticipantId int64 `protobuf:"varint,6,opt,name=participantId,proto3" json:"participantId,omitempty"` // 集群静态信息id - NodeAvailInfo []*NodeAvailInfo `protobuf:"bytes,7,rep,name=nodeAvailInfo,proto3" json:"nodeAvailInfo,omitempty"` // 节点可用信息 -} - -func (x *ParticipantAvailReq) Reset() { - *x = ParticipantAvailReq{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantAvailReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantAvailReq) ProtoMessage() {} - -func (x *ParticipantAvailReq) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantAvailReq.ProtoReflect.Descriptor instead. -func (*ParticipantAvailReq) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{17} -} - -func (x *ParticipantAvailReq) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *ParticipantAvailReq) GetAvailStorageSpace() int64 { - if x != nil { - return x.AvailStorageSpace - } - return 0 -} - -func (x *ParticipantAvailReq) GetUserNum() int64 { - if x != nil { - return x.UserNum - } - return 0 -} - -func (x *ParticipantAvailReq) GetPendingJobNum() int64 { - if x != nil { - return x.PendingJobNum - } - return 0 -} - -func (x *ParticipantAvailReq) GetRunningJobNum() int64 { - if x != nil { - return x.RunningJobNum - } - return 0 -} - -func (x *ParticipantAvailReq) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *ParticipantAvailReq) GetNodeAvailInfo() []*NodeAvailInfo { - if x != nil { - return x.NodeAvailInfo - } - return nil -} - -// NodeAvailInfo 节点可用信息 -type NodeAvailInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id - NodeName string `protobuf:"bytes,2,opt,name=nodeName,proto3" json:"nodeName,omitempty"` // 节点名称 - CpuTotal int64 `protobuf:"varint,3,opt,name=cpuTotal,proto3" json:"cpuTotal,omitempty"` // cpu核数 - CpuUsable float64 `protobuf:"fixed64,4,opt,name=cpuUsable,proto3" json:"cpuUsable,omitempty"` // cpu可用率 - DiskTotal int64 `protobuf:"varint,5,opt,name=diskTotal,proto3" json:"diskTotal,omitempty"` // 磁盘空间 - DiskAvail int64 `protobuf:"varint,6,opt,name=diskAvail,proto3" json:"diskAvail,omitempty"` // 磁盘可用空间 - MemTotal int64 `protobuf:"varint,7,opt,name=memTotal,proto3" json:"memTotal,omitempty"` // 内存总数 - MemAvail int64 `protobuf:"varint,8,opt,name=memAvail,proto3" json:"memAvail,omitempty"` // 内存可用数 - GpuTotal int64 `protobuf:"varint,9,opt,name=gpuTotal,proto3" json:"gpuTotal,omitempty"` // gpu总数 - GpuAvail int64 `protobuf:"varint,10,opt,name=gpuAvail,proto3" json:"gpuAvail,omitempty"` // gpu可用数 - ParticipantId int64 `protobuf:"varint,11,opt,name=participantId,proto3" json:"participantId,omitempty"` // 集群动态信息id -} - -func (x *NodeAvailInfo) Reset() { - *x = NodeAvailInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeAvailInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeAvailInfo) ProtoMessage() {} - -func (x *NodeAvailInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeAvailInfo.ProtoReflect.Descriptor instead. -func (*NodeAvailInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{18} -} - -func (x *NodeAvailInfo) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *NodeAvailInfo) GetNodeName() string { - if x != nil { - return x.NodeName - } - return "" -} - -func (x *NodeAvailInfo) GetCpuTotal() int64 { - if x != nil { - return x.CpuTotal - } - return 0 -} - -func (x *NodeAvailInfo) GetCpuUsable() float64 { - if x != nil { - return x.CpuUsable - } - return 0 -} - -func (x *NodeAvailInfo) GetDiskTotal() int64 { - if x != nil { - return x.DiskTotal - } - return 0 -} - -func (x *NodeAvailInfo) GetDiskAvail() int64 { - if x != nil { - return x.DiskAvail - } - return 0 -} - -func (x *NodeAvailInfo) GetMemTotal() int64 { - if x != nil { - return x.MemTotal - } - return 0 -} - -func (x *NodeAvailInfo) GetMemAvail() int64 { - if x != nil { - return x.MemAvail - } - return 0 -} - -func (x *NodeAvailInfo) GetGpuTotal() int64 { - if x != nil { - return x.GpuTotal - } - return 0 -} - -func (x *NodeAvailInfo) GetGpuAvail() int64 { - if x != nil { - return x.GpuAvail - } - return 0 -} - -func (x *NodeAvailInfo) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -// 集群可用信息 -type ListParticipantAvailResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - ParticipantAvails []*ParticipantAvailReq `protobuf:"bytes,3,rep,name=ParticipantAvails,proto3" json:"ParticipantAvails,omitempty"` -} - -func (x *ListParticipantAvailResp) Reset() { - *x = ListParticipantAvailResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListParticipantAvailResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListParticipantAvailResp) ProtoMessage() {} - -func (x *ListParticipantAvailResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListParticipantAvailResp.ProtoReflect.Descriptor instead. -func (*ListParticipantAvailResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{19} -} - -func (x *ListParticipantAvailResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *ListParticipantAvailResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -func (x *ListParticipantAvailResp) GetParticipantAvails() []*ParticipantAvailReq { - if x != nil { - return x.ParticipantAvails - } - return nil -} - -type ParticipantResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` -} - -func (x *ParticipantResp) Reset() { - *x = ParticipantResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantResp) ProtoMessage() {} - -func (x *ParticipantResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantResp.ProtoReflect.Descriptor instead. -func (*ParticipantResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{20} -} - -func (x *ParticipantResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *ParticipantResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -type ParticipantServiceResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Data []*ClientInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *ParticipantServiceResp) Reset() { - *x = ParticipantServiceResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParticipantServiceResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParticipantServiceResp) ProtoMessage() {} - -func (x *ParticipantServiceResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParticipantServiceResp.ProtoReflect.Descriptor instead. -func (*ParticipantServiceResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{21} -} - -func (x *ParticipantServiceResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *ParticipantServiceResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -func (x *ParticipantServiceResp) GetData() []*ClientInfo { - if x != nil { - return x.Data - } - return nil -} - -type ClientInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // @gotags: redis:"address" - ParticipantId int64 `protobuf:"varint,2,opt,name=participantId,proto3" json:"participantId,omitempty"` // @gotags: redis:"participantId" - ClientState string `protobuf:"bytes,3,opt,name=clientState,proto3" json:"clientState,omitempty"` // @gotags: redis:"clientState" - LastHeartbeat int64 `protobuf:"varint,4,opt,name=lastHeartbeat,proto3" json:"lastHeartbeat,omitempty"` // @gotags: redis:"lastHeartbeat" -} - -func (x *ClientInfo) Reset() { - *x = ClientInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClientInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClientInfo) ProtoMessage() {} - -func (x *ClientInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead. -func (*ClientInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{22} -} - -func (x *ClientInfo) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *ClientInfo) GetParticipantId() int64 { - if x != nil { - return x.ParticipantId - } - return 0 -} - -func (x *ClientInfo) GetClientState() string { - if x != nil { - return x.ClientState - } - return "" -} - -func (x *ClientInfo) GetLastHeartbeat() int64 { - if x != nil { - return x.LastHeartbeat - } - return 0 -} - -type TenantInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - TenantName string `protobuf:"bytes,2,opt,name=tenantName,proto3" json:"tenantName,omitempty"` - TenantDesc string `protobuf:"bytes,3,opt,name=tenantDesc,proto3" json:"tenantDesc,omitempty"` -} - -func (x *TenantInfo) Reset() { - *x = TenantInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TenantInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TenantInfo) ProtoMessage() {} - -func (x *TenantInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TenantInfo.ProtoReflect.Descriptor instead. -func (*TenantInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{23} -} - -func (x *TenantInfo) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *TenantInfo) GetTenantName() string { - if x != nil { - return x.TenantName - } - return "" -} - -func (x *TenantInfo) GetTenantDesc() string { - if x != nil { - return x.TenantDesc - } - return "" -} - -type TenantResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *TenantResp) Reset() { - *x = TenantResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TenantResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TenantResp) ProtoMessage() {} - -func (x *TenantResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TenantResp.ProtoReflect.Descriptor instead. -func (*TenantResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{24} -} - -func (x *TenantResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *TenantResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -func (x *TenantResp) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -type ListTenantResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - TenantInfos []*TenantInfo `protobuf:"bytes,3,rep,name=tenantInfos,proto3" json:"tenantInfos,omitempty"` -} - -func (x *ListTenantResp) Reset() { - *x = ListTenantResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListTenantResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListTenantResp) ProtoMessage() {} - -func (x *ListTenantResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListTenantResp.ProtoReflect.Descriptor instead. -func (*ListTenantResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{25} -} - -func (x *ListTenantResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *ListTenantResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -func (x *ListTenantResp) GetTenantInfos() []*TenantInfo { - if x != nil { - return x.TenantInfos - } - return nil -} - -type ApplyListReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ApplyListReq) Reset() { - *x = ApplyListReq{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyListReq) ProtoMessage() {} - -func (x *ApplyListReq) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyListReq.ProtoReflect.Descriptor instead. -func (*ApplyListReq) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{26} -} - -type ApplyListResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InfoList []*ApplyInfo `protobuf:"bytes,1,rep,name=infoList,proto3" json:"infoList,omitempty"` -} - -func (x *ApplyListResp) Reset() { - *x = ApplyListResp{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyListResp) ProtoMessage() {} - -func (x *ApplyListResp) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyListResp.ProtoReflect.Descriptor instead. -func (*ApplyListResp) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{27} -} - -func (x *ApplyListResp) GetInfoList() []*ApplyInfo { - if x != nil { - return x.InfoList - } - return nil -} - -type ApplyInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantName string `protobuf:"bytes,1,opt,name=participantName,proto3" json:"participantName,omitempty"` - YamlString string `protobuf:"bytes,2,opt,name=yamlString,proto3" json:"yamlString,omitempty"` - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Kind string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` -} - -func (x *ApplyInfo) Reset() { - *x = ApplyInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_pcmCore_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyInfo) ProtoMessage() {} - -func (x *ApplyInfo) ProtoReflect() protoreflect.Message { - mi := &file_pcmCore_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyInfo.ProtoReflect.Descriptor instead. -func (*ApplyInfo) Descriptor() ([]byte, []int) { - return file_pcmCore_proto_rawDescGZIP(), []int{28} -} - -func (x *ApplyInfo) GetParticipantName() string { - if x != nil { - return x.ParticipantName - } - return "" -} - -func (x *ApplyInfo) GetYamlString() string { - if x != nil { - return x.YamlString - } - return "" -} - -func (x *ApplyInfo) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *ApplyInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ApplyInfo) GetKind() string { - if x != nil { - return x.Kind - } - return "" -} - -var File_pcmCore_proto protoreflect.FileDescriptor - -var file_pcmCore_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x07, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x22, 0x83, 0x02, 0x0a, 0x0b, 0x53, 0x79, 0x6e, - 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, - 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x32, - 0x0a, 0x0b, 0x48, 0x70, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x70, - 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x48, 0x70, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x4c, - 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x63, 0x6d, 0x43, - 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x43, - 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x0a, - 0x41, 0x69, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x0f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x69, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x0a, 0x41, 0x69, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x0a, - 0x0a, 0x56, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x6d, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x0a, 0x56, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xbf, - 0x03, 0x0a, 0x06, 0x41, 0x69, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, - 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x69, - 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6a, 0x6f, - 0x62, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, - 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, - 0x49, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, - 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x74, - 0x65, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x69, 0x74, 0x65, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x22, 0xcb, 0x02, 0x0a, 0x09, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, - 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, - 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x09, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, - 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, - 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1e, - 0x0a, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0xc3, - 0x02, 0x0a, 0x06, 0x56, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, - 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, - 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, - 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x66, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x4f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x22, 0xab, 0x06, 0x0a, 0x07, 0x48, 0x70, 0x63, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, - 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, - 0x6f, 0x62, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, - 0x44, 0x69, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44, - 0x69, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, - 0x0a, 0x09, 0x63, 0x6d, 0x64, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x63, 0x6d, 0x64, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1c, 0x0a, 0x09, - 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x45, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x45, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x1e, - 0x0a, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1a, - 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x43, 0x70, 0x75, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x43, 0x70, 0x75, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x73, - 0x73, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x73, 0x73, - 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x18, - 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, - 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x1e, - 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x18, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x64, 0x4f, 0x75, 0x74, 0x46, 0x69, - 0x6c, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x64, 0x4f, 0x75, 0x74, - 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x64, 0x45, 0x72, 0x72, 0x46, 0x69, - 0x6c, 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x64, 0x45, 0x72, 0x72, - 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, - 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, - 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, - 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x22, 0x34, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x33, 0x0a, 0x0b, 0x49, 0x6e, 0x66, 0x6f, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, - 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, - 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xde, 0x01, - 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x32, - 0x0a, 0x0b, 0x48, 0x70, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x70, - 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x48, 0x70, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x4c, - 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x63, 0x6d, 0x43, - 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x43, - 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x0a, - 0x41, 0x69, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x0f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x69, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x0a, 0x41, 0x69, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x0a, - 0x0a, 0x56, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x6d, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x0a, 0x56, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x33, - 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x54, 0x65, 0x6e, - 0x61, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x22, 0x4a, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, - 0x6e, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0x75, 0x0a, 0x0f, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x70, 0x63, 0x6d, 0x43, - 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x60, 0x0a, 0x12, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, - 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, - 0x73, 0x67, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, - 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, - 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x84, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, - 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x44, 0x0a, 0x0f, 0x50, 0x61, 0x72, - 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, - 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, 0x71, 0x52, 0x0f, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x73, 0x22, - 0xab, 0x05, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, - 0x68, 0x79, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, - 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x76, 0x61, 0x69, 0x6c, - 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x10, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, - 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, - 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, - 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x30, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x0d, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x50, 0x68, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, - 0x6e, 0x74, 0x49, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, - 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x09, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, - 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, - 0x6e, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x09, 0x71, 0x75, 0x65, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x18, - 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, - 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x68, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x11, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x4d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x73, 0x55, 0x72, 0x6c, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x55, 0x72, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x70, 0x63, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x52, 0x70, 0x63, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xc3, 0x01, - 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x68, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x73, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x1a, 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, - 0x72, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, - 0x72, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x46, - 0x72, 0x65, 0x71, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x46, - 0x72, 0x65, 0x71, 0x22, 0x86, 0x05, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x68, 0x79, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x73, - 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x75, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x75, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, - 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x71, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x71, 0x75, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x71, 0x75, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x4d, - 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x63, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x71, 0x75, 0x65, 0x4d, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x0b, - 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x4e, 0x67, 0x70, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x4e, 0x67, 0x70, 0x75, 0x73, 0x12, 0x1c, - 0x0a, 0x09, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x50, 0x70, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x50, 0x70, 0x6e, 0x12, 0x24, 0x0a, 0x0d, - 0x71, 0x75, 0x65, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x61, - 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x4e, 0x63, 0x70, 0x75, - 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x4e, - 0x63, 0x70, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x4e, 0x64, - 0x63, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, - 0x78, 0x4e, 0x64, 0x63, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x69, 0x6e, - 0x4e, 0x63, 0x70, 0x75, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x71, 0x75, 0x65, - 0x4d, 0x69, 0x6e, 0x4e, 0x63, 0x70, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x46, - 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x71, 0x75, 0x65, 0x46, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, - 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x4e, 0x6f, 0x64, 0x65, 0x63, 0x74, 0x18, 0x0f, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x4e, 0x6f, 0x64, 0x65, 0x63, 0x74, - 0x12, 0x20, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x47, 0x70, 0x75, 0x50, 0x4e, 0x18, - 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x47, 0x70, 0x75, - 0x50, 0x4e, 0x12, 0x26, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x57, 0x61, 0x6c, 0x6c, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x71, 0x75, 0x65, 0x4d, - 0x61, 0x78, 0x57, 0x61, 0x6c, 0x6c, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x71, 0x75, - 0x65, 0x4d, 0x61, 0x78, 0x44, 0x63, 0x75, 0x50, 0x4e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x71, 0x75, 0x65, 0x4d, 0x61, 0x78, 0x44, 0x63, 0x75, 0x50, 0x4e, 0x12, 0x1a, 0x0a, 0x08, - 0x71, 0x75, 0x65, 0x4e, 0x63, 0x70, 0x75, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x71, 0x75, 0x65, 0x4e, 0x63, 0x70, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x46, - 0x72, 0x65, 0x65, 0x4e, 0x63, 0x70, 0x75, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x71, 0x75, 0x65, 0x46, 0x72, 0x65, 0x65, 0x4e, 0x63, 0x70, 0x75, 0x73, 0x22, 0x59, 0x0a, 0x17, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, - 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, - 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, - 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x74, - 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x2c, 0x0a, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, - 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x75, 0x73, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x65, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, - 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, - 0x0d, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x4e, 0x75, 0x6d, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, - 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, - 0x6e, 0x74, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, - 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, - 0x65, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x41, - 0x76, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x41, 0x76, - 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xc7, 0x02, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, - 0x41, 0x76, 0x61, 0x69, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x6f, 0x64, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x70, 0x75, 0x54, 0x6f, 0x74, 0x61, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x70, 0x75, 0x54, 0x6f, 0x74, 0x61, - 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x70, 0x75, 0x55, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x63, 0x70, 0x75, 0x55, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1c, 0x0a, - 0x09, 0x64, 0x69, 0x73, 0x6b, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x6d, - 0x65, 0x6d, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, - 0x65, 0x6d, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6d, 0x41, 0x76, - 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x41, 0x76, - 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x70, 0x75, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x67, 0x70, 0x75, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, - 0x1a, 0x0a, 0x08, 0x67, 0x70, 0x75, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x08, 0x67, 0x70, 0x75, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, - 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, - 0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6d, 0x73, 0x67, 0x12, 0x4a, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, - 0x61, 0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, - 0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x52, 0x11, 0x50, - 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x73, - 0x22, 0x37, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x67, 0x0a, 0x16, 0x50, 0x61, 0x72, - 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x27, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, - 0x65, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0x94, 0x01, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, - 0x62, 0x65, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, - 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x22, 0x5c, 0x0a, 0x0a, 0x54, 0x65, 0x6e, - 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x65, 0x6e, - 0x61, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x44, 0x65, 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x65, 0x6e, - 0x61, 0x6e, 0x74, 0x44, 0x65, 0x73, 0x63, 0x22, 0x42, 0x0a, 0x0a, 0x54, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x6d, 0x0a, 0x0e, 0x4c, - 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6d, 0x73, 0x67, 0x12, 0x35, 0x0a, 0x0b, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, - 0x72, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x74, - 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x3f, 0x0a, 0x0d, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x08, 0x69, - 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x08, 0x69, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x9b, 0x01, 0x0a, 0x09, - 0x41, 0x70, 0x70, 0x6c, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x2a, 0x33, 0x0a, 0x0d, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x41, - 0x49, 0x4c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, - 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x32, 0x7b, - 0x0a, 0x07, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x53, 0x79, 0x6e, - 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, - 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x63, - 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x37, 0x0a, 0x08, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, - 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, - 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x32, 0xb5, 0x07, 0x0a, 0x12, - 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x50, 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, - 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, - 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, - 0x68, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x65, - 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x20, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, - 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x48, 0x65, 0x61, - 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 0x63, 0x6d, 0x43, - 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x41, - 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, - 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, - 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, - 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0f, 0x6c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, - 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, - 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x50, 0x68, 0x79, 0x41, - 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, - 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x54, 0x65, - 0x6e, 0x61, 0x6e, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, - 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x12, 0x6c, 0x69, 0x73, - 0x74, 0x50, 0x68, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, - 0x69, 0x70, 0x61, 0x6e, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x63, - 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, - 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, - 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, - 0x12, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, - 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0a, - 0x6c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x13, 0x2e, 0x70, 0x63, 0x6d, - 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, - 0x17, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, - 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x09, 0x61, 0x70, - 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, - 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, - 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, - 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, - 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x61, 0x75, 0x73, 0x65, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, - 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x70, 0x63, - 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, - 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x70, 0x63, 0x6d, 0x43, - 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pcmCore_proto_rawDescOnce sync.Once - file_pcmCore_proto_rawDescData = file_pcmCore_proto_rawDesc -) - -func file_pcmCore_proto_rawDescGZIP() []byte { - file_pcmCore_proto_rawDescOnce.Do(func() { - file_pcmCore_proto_rawDescData = protoimpl.X.CompressGZIP(file_pcmCore_proto_rawDescData) - }) - return file_pcmCore_proto_rawDescData -} - -var file_pcmCore_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_pcmCore_proto_msgTypes = make([]protoimpl.MessageInfo, 29) -var file_pcmCore_proto_goTypes = []interface{}{ - (MessageStatus)(0), // 0: pcmCore.MessageStatus - (*SyncInfoReq)(nil), // 1: pcmCore.SyncInfoReq - (*AiInfo)(nil), // 2: pcmCore.AiInfo - (*CloudInfo)(nil), // 3: pcmCore.CloudInfo - (*VmInfo)(nil), // 4: pcmCore.VmInfo - (*HpcInfo)(nil), // 5: pcmCore.HpcInfo - (*SyncInfoResp)(nil), // 6: pcmCore.SyncInfoResp - (*InfoListReq)(nil), // 7: pcmCore.InfoListReq - (*InfoListResp)(nil), // 8: pcmCore.InfoListResp - (*ParticipantTenant)(nil), // 9: pcmCore.ParticipantTenant - (*ParticipantLabel)(nil), // 10: pcmCore.ParticipantLabel - (*HealthCheckResp)(nil), // 11: pcmCore.HealthCheckResp - (*ParticipantPhyResp)(nil), // 12: pcmCore.ParticipantPhyResp - (*ListParticipantPhyResp)(nil), // 13: pcmCore.ListParticipantPhyResp - (*ParticipantPhyReq)(nil), // 14: pcmCore.ParticipantPhyReq - (*NodePhyInfo)(nil), // 15: pcmCore.NodePhyInfo - (*QueuePhyInfo)(nil), // 16: pcmCore.QueuePhyInfo - (*ParticipantHeartbeatReq)(nil), // 17: pcmCore.ParticipantHeartbeatReq - (*ParticipantAvailReq)(nil), // 18: pcmCore.ParticipantAvailReq - (*NodeAvailInfo)(nil), // 19: pcmCore.NodeAvailInfo - (*ListParticipantAvailResp)(nil), // 20: pcmCore.ListParticipantAvailResp - (*ParticipantResp)(nil), // 21: pcmCore.ParticipantResp - (*ParticipantServiceResp)(nil), // 22: pcmCore.ParticipantServiceResp - (*ClientInfo)(nil), // 23: pcmCore.ClientInfo - (*TenantInfo)(nil), // 24: pcmCore.TenantInfo - (*TenantResp)(nil), // 25: pcmCore.TenantResp - (*ListTenantResp)(nil), // 26: pcmCore.ListTenantResp - (*ApplyListReq)(nil), // 27: pcmCore.ApplyListReq - (*ApplyListResp)(nil), // 28: pcmCore.ApplyListResp - (*ApplyInfo)(nil), // 29: pcmCore.ApplyInfo -} -var file_pcmCore_proto_depIdxs = []int32{ - 5, // 0: pcmCore.SyncInfoReq.HpcInfoList:type_name -> pcmCore.HpcInfo - 3, // 1: pcmCore.SyncInfoReq.CloudInfoList:type_name -> pcmCore.CloudInfo - 2, // 2: pcmCore.SyncInfoReq.AiInfoList:type_name -> pcmCore.AiInfo - 4, // 3: pcmCore.SyncInfoReq.VmInfoList:type_name -> pcmCore.VmInfo - 5, // 4: pcmCore.InfoListResp.HpcInfoList:type_name -> pcmCore.HpcInfo - 3, // 5: pcmCore.InfoListResp.CloudInfoList:type_name -> pcmCore.CloudInfo - 2, // 6: pcmCore.InfoListResp.AiInfoList:type_name -> pcmCore.AiInfo - 4, // 7: pcmCore.InfoListResp.VmInfoList:type_name -> pcmCore.VmInfo - 0, // 8: pcmCore.HealthCheckResp.messageStatus:type_name -> pcmCore.MessageStatus - 14, // 9: pcmCore.ListParticipantPhyResp.ParticipantPhys:type_name -> pcmCore.ParticipantPhyReq - 15, // 10: pcmCore.ParticipantPhyReq.nodeInfo:type_name -> pcmCore.NodePhyInfo - 10, // 11: pcmCore.ParticipantPhyReq.labelInfo:type_name -> pcmCore.ParticipantLabel - 16, // 12: pcmCore.ParticipantPhyReq.queueInfo:type_name -> pcmCore.QueuePhyInfo - 19, // 13: pcmCore.ParticipantAvailReq.nodeAvailInfo:type_name -> pcmCore.NodeAvailInfo - 18, // 14: pcmCore.ListParticipantAvailResp.ParticipantAvails:type_name -> pcmCore.ParticipantAvailReq - 23, // 15: pcmCore.ParticipantServiceResp.data:type_name -> pcmCore.ClientInfo - 24, // 16: pcmCore.ListTenantResp.tenantInfos:type_name -> pcmCore.TenantInfo - 29, // 17: pcmCore.ApplyListResp.infoList:type_name -> pcmCore.ApplyInfo - 1, // 18: pcmCore.pcmCore.SyncInfo:input_type -> pcmCore.SyncInfoReq - 7, // 19: pcmCore.pcmCore.InfoList:input_type -> pcmCore.InfoListReq - 14, // 20: pcmCore.participantService.registerParticipant:input_type -> pcmCore.ParticipantPhyReq - 17, // 21: pcmCore.participantService.reportHeartbeat:input_type -> pcmCore.ParticipantHeartbeatReq - 18, // 22: pcmCore.participantService.reportAvailable:input_type -> pcmCore.ParticipantAvailReq - 9, // 23: pcmCore.participantService.listParticipant:input_type -> pcmCore.ParticipantTenant - 9, // 24: pcmCore.participantService.listPhyAvailable:input_type -> pcmCore.ParticipantTenant - 9, // 25: pcmCore.participantService.listPhyInformation:input_type -> pcmCore.ParticipantTenant - 24, // 26: pcmCore.participantService.registerTenant:input_type -> pcmCore.TenantInfo - 24, // 27: pcmCore.participantService.listTenant:input_type -> pcmCore.TenantInfo - 27, // 28: pcmCore.participantService.applyList:input_type -> pcmCore.ApplyListReq - 27, // 29: pcmCore.participantService.deleteList:input_type -> pcmCore.ApplyListReq - 27, // 30: pcmCore.participantService.restartList:input_type -> pcmCore.ApplyListReq - 27, // 31: pcmCore.participantService.pauseList:input_type -> pcmCore.ApplyListReq - 27, // 32: pcmCore.participantService.startList:input_type -> pcmCore.ApplyListReq - 6, // 33: pcmCore.pcmCore.SyncInfo:output_type -> pcmCore.SyncInfoResp - 8, // 34: pcmCore.pcmCore.InfoList:output_type -> pcmCore.InfoListResp - 12, // 35: pcmCore.participantService.registerParticipant:output_type -> pcmCore.ParticipantPhyResp - 11, // 36: pcmCore.participantService.reportHeartbeat:output_type -> pcmCore.HealthCheckResp - 21, // 37: pcmCore.participantService.reportAvailable:output_type -> pcmCore.ParticipantResp - 22, // 38: pcmCore.participantService.listParticipant:output_type -> pcmCore.ParticipantServiceResp - 20, // 39: pcmCore.participantService.listPhyAvailable:output_type -> pcmCore.ListParticipantAvailResp - 13, // 40: pcmCore.participantService.listPhyInformation:output_type -> pcmCore.ListParticipantPhyResp - 25, // 41: pcmCore.participantService.registerTenant:output_type -> pcmCore.TenantResp - 26, // 42: pcmCore.participantService.listTenant:output_type -> pcmCore.ListTenantResp - 28, // 43: pcmCore.participantService.applyList:output_type -> pcmCore.ApplyListResp - 28, // 44: pcmCore.participantService.deleteList:output_type -> pcmCore.ApplyListResp - 28, // 45: pcmCore.participantService.restartList:output_type -> pcmCore.ApplyListResp - 28, // 46: pcmCore.participantService.pauseList:output_type -> pcmCore.ApplyListResp - 28, // 47: pcmCore.participantService.startList:output_type -> pcmCore.ApplyListResp - 33, // [33:48] is the sub-list for method output_type - 18, // [18:33] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_pcmCore_proto_init() } -func file_pcmCore_proto_init() { - if File_pcmCore_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_pcmCore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AiInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloudInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VmInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HpcInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InfoListReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InfoListResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantTenant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantLabel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HealthCheckResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantPhyResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListParticipantPhyResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantPhyReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodePhyInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueuePhyInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantHeartbeatReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantAvailReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeAvailInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListParticipantAvailResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantServiceResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TenantInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TenantResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTenantResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyListReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyListResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pcmCore_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pcmCore_proto_rawDesc, - NumEnums: 1, - NumMessages: 29, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_pcmCore_proto_goTypes, - DependencyIndexes: file_pcmCore_proto_depIdxs, - EnumInfos: file_pcmCore_proto_enumTypes, - MessageInfos: file_pcmCore_proto_msgTypes, - }.Build() - File_pcmCore_proto = out.File - file_pcmCore_proto_rawDesc = nil - file_pcmCore_proto_goTypes = nil - file_pcmCore_proto_depIdxs = nil -} diff --git a/rpc/pcmCore/pcmCore_grpc.pb.go b/rpc/pcmCore/pcmCore_grpc.pb.go deleted file mode 100644 index fcacc346..00000000 --- a/rpc/pcmCore/pcmCore_grpc.pb.go +++ /dev/null @@ -1,710 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v3.19.4 -// source: pcmCore.proto - -package pcmCore - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - PcmCore_SyncInfo_FullMethodName = "/pcmCore.pcmCore/SyncInfo" - PcmCore_InfoList_FullMethodName = "/pcmCore.pcmCore/InfoList" -) - -// PcmCoreClient is the client API for PcmCore service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type PcmCoreClient interface { - // SyncInfo Synchronous data information - SyncInfo(ctx context.Context, in *SyncInfoReq, opts ...grpc.CallOption) (*SyncInfoResp, error) - // InfoList - InfoList(ctx context.Context, in *InfoListReq, opts ...grpc.CallOption) (*InfoListResp, error) -} - -type pcmCoreClient struct { - cc grpc.ClientConnInterface -} - -func NewPcmCoreClient(cc grpc.ClientConnInterface) PcmCoreClient { - return &pcmCoreClient{cc} -} - -func (c *pcmCoreClient) SyncInfo(ctx context.Context, in *SyncInfoReq, opts ...grpc.CallOption) (*SyncInfoResp, error) { - out := new(SyncInfoResp) - err := c.cc.Invoke(ctx, PcmCore_SyncInfo_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pcmCoreClient) InfoList(ctx context.Context, in *InfoListReq, opts ...grpc.CallOption) (*InfoListResp, error) { - out := new(InfoListResp) - err := c.cc.Invoke(ctx, PcmCore_InfoList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PcmCoreServer is the server API for PcmCore service. -// All implementations must embed UnimplementedPcmCoreServer -// for forward compatibility -type PcmCoreServer interface { - // SyncInfo Synchronous data information - SyncInfo(context.Context, *SyncInfoReq) (*SyncInfoResp, error) - // InfoList - InfoList(context.Context, *InfoListReq) (*InfoListResp, error) - mustEmbedUnimplementedPcmCoreServer() -} - -// UnimplementedPcmCoreServer must be embedded to have forward compatible implementations. -type UnimplementedPcmCoreServer struct { -} - -func (UnimplementedPcmCoreServer) SyncInfo(context.Context, *SyncInfoReq) (*SyncInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SyncInfo not implemented") -} -func (UnimplementedPcmCoreServer) InfoList(context.Context, *InfoListReq) (*InfoListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method InfoList not implemented") -} -func (UnimplementedPcmCoreServer) mustEmbedUnimplementedPcmCoreServer() {} - -// UnsafePcmCoreServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to PcmCoreServer will -// result in compilation errors. -type UnsafePcmCoreServer interface { - mustEmbedUnimplementedPcmCoreServer() -} - -func RegisterPcmCoreServer(s grpc.ServiceRegistrar, srv PcmCoreServer) { - s.RegisterService(&PcmCore_ServiceDesc, srv) -} - -func _PcmCore_SyncInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SyncInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PcmCoreServer).SyncInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PcmCore_SyncInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PcmCoreServer).SyncInfo(ctx, req.(*SyncInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PcmCore_InfoList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InfoListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PcmCoreServer).InfoList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PcmCore_InfoList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PcmCoreServer).InfoList(ctx, req.(*InfoListReq)) - } - return interceptor(ctx, in, info, handler) -} - -// PcmCore_ServiceDesc is the grpc.ServiceDesc for PcmCore service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var PcmCore_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pcmCore.pcmCore", - HandlerType: (*PcmCoreServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SyncInfo", - Handler: _PcmCore_SyncInfo_Handler, - }, - { - MethodName: "InfoList", - Handler: _PcmCore_InfoList_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pcmCore.proto", -} - -const ( - ParticipantService_RegisterParticipant_FullMethodName = "/pcmCore.participantService/registerParticipant" - ParticipantService_ReportHeartbeat_FullMethodName = "/pcmCore.participantService/reportHeartbeat" - ParticipantService_ReportAvailable_FullMethodName = "/pcmCore.participantService/reportAvailable" - ParticipantService_ListParticipant_FullMethodName = "/pcmCore.participantService/listParticipant" - ParticipantService_ListPhyAvailable_FullMethodName = "/pcmCore.participantService/listPhyAvailable" - ParticipantService_ListPhyInformation_FullMethodName = "/pcmCore.participantService/listPhyInformation" - ParticipantService_RegisterTenant_FullMethodName = "/pcmCore.participantService/registerTenant" - ParticipantService_ListTenant_FullMethodName = "/pcmCore.participantService/listTenant" - ParticipantService_ApplyList_FullMethodName = "/pcmCore.participantService/applyList" - ParticipantService_DeleteList_FullMethodName = "/pcmCore.participantService/deleteList" - ParticipantService_RestartList_FullMethodName = "/pcmCore.participantService/restartList" - ParticipantService_PauseList_FullMethodName = "/pcmCore.participantService/pauseList" - ParticipantService_StartList_FullMethodName = "/pcmCore.participantService/startList" -) - -// ParticipantServiceClient is the client API for ParticipantService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ParticipantServiceClient interface { - // registerParticipant Participant注册接口 - RegisterParticipant(ctx context.Context, in *ParticipantPhyReq, opts ...grpc.CallOption) (*ParticipantPhyResp, error) - // reportHeartbeat 心跳请求 - ReportHeartbeat(ctx context.Context, in *ParticipantHeartbeatReq, opts ...grpc.CallOption) (*HealthCheckResp, error) - // reportAvailable 监控数据上报 - ReportAvailable(ctx context.Context, in *ParticipantAvailReq, opts ...grpc.CallOption) (*ParticipantResp, error) - // listParticipant 服务列表 - ListParticipant(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ParticipantServiceResp, error) - // listAvailable 集群动态信息列表 - ListPhyAvailable(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantAvailResp, error) - // listPhyInformation 集群静态信息列表 - ListPhyInformation(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantPhyResp, error) - // registerTenant 注册租户信息 - RegisterTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*TenantResp, error) - // listTenant 租户列表信息 - ListTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*ListTenantResp, error) - // applyList 执行任务列表 - ApplyList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // DeleteList 删除任务列表 - DeleteList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // RestartList 重启任务列表 - RestartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // PauseList 暂停任务列表 - PauseList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) - // StartList 启动任务列表 - StartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) -} - -type participantServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewParticipantServiceClient(cc grpc.ClientConnInterface) ParticipantServiceClient { - return &participantServiceClient{cc} -} - -func (c *participantServiceClient) RegisterParticipant(ctx context.Context, in *ParticipantPhyReq, opts ...grpc.CallOption) (*ParticipantPhyResp, error) { - out := new(ParticipantPhyResp) - err := c.cc.Invoke(ctx, ParticipantService_RegisterParticipant_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) ReportHeartbeat(ctx context.Context, in *ParticipantHeartbeatReq, opts ...grpc.CallOption) (*HealthCheckResp, error) { - out := new(HealthCheckResp) - err := c.cc.Invoke(ctx, ParticipantService_ReportHeartbeat_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) ReportAvailable(ctx context.Context, in *ParticipantAvailReq, opts ...grpc.CallOption) (*ParticipantResp, error) { - out := new(ParticipantResp) - err := c.cc.Invoke(ctx, ParticipantService_ReportAvailable_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) ListParticipant(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ParticipantServiceResp, error) { - out := new(ParticipantServiceResp) - err := c.cc.Invoke(ctx, ParticipantService_ListParticipant_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) ListPhyAvailable(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantAvailResp, error) { - out := new(ListParticipantAvailResp) - err := c.cc.Invoke(ctx, ParticipantService_ListPhyAvailable_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) ListPhyInformation(ctx context.Context, in *ParticipantTenant, opts ...grpc.CallOption) (*ListParticipantPhyResp, error) { - out := new(ListParticipantPhyResp) - err := c.cc.Invoke(ctx, ParticipantService_ListPhyInformation_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) RegisterTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*TenantResp, error) { - out := new(TenantResp) - err := c.cc.Invoke(ctx, ParticipantService_RegisterTenant_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) ListTenant(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*ListTenantResp, error) { - out := new(ListTenantResp) - err := c.cc.Invoke(ctx, ParticipantService_ListTenant_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) ApplyList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - out := new(ApplyListResp) - err := c.cc.Invoke(ctx, ParticipantService_ApplyList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) DeleteList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - out := new(ApplyListResp) - err := c.cc.Invoke(ctx, ParticipantService_DeleteList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) RestartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - out := new(ApplyListResp) - err := c.cc.Invoke(ctx, ParticipantService_RestartList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) PauseList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - out := new(ApplyListResp) - err := c.cc.Invoke(ctx, ParticipantService_PauseList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *participantServiceClient) StartList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListResp, error) { - out := new(ApplyListResp) - err := c.cc.Invoke(ctx, ParticipantService_StartList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ParticipantServiceServer is the server API for ParticipantService service. -// All implementations must embed UnimplementedParticipantServiceServer -// for forward compatibility -type ParticipantServiceServer interface { - // registerParticipant Participant注册接口 - RegisterParticipant(context.Context, *ParticipantPhyReq) (*ParticipantPhyResp, error) - // reportHeartbeat 心跳请求 - ReportHeartbeat(context.Context, *ParticipantHeartbeatReq) (*HealthCheckResp, error) - // reportAvailable 监控数据上报 - ReportAvailable(context.Context, *ParticipantAvailReq) (*ParticipantResp, error) - // listParticipant 服务列表 - ListParticipant(context.Context, *ParticipantTenant) (*ParticipantServiceResp, error) - // listAvailable 集群动态信息列表 - ListPhyAvailable(context.Context, *ParticipantTenant) (*ListParticipantAvailResp, error) - // listPhyInformation 集群静态信息列表 - ListPhyInformation(context.Context, *ParticipantTenant) (*ListParticipantPhyResp, error) - // registerTenant 注册租户信息 - RegisterTenant(context.Context, *TenantInfo) (*TenantResp, error) - // listTenant 租户列表信息 - ListTenant(context.Context, *TenantInfo) (*ListTenantResp, error) - // applyList 执行任务列表 - ApplyList(context.Context, *ApplyListReq) (*ApplyListResp, error) - // DeleteList 删除任务列表 - DeleteList(context.Context, *ApplyListReq) (*ApplyListResp, error) - // RestartList 重启任务列表 - RestartList(context.Context, *ApplyListReq) (*ApplyListResp, error) - // PauseList 暂停任务列表 - PauseList(context.Context, *ApplyListReq) (*ApplyListResp, error) - // StartList 启动任务列表 - StartList(context.Context, *ApplyListReq) (*ApplyListResp, error) - mustEmbedUnimplementedParticipantServiceServer() -} - -// UnimplementedParticipantServiceServer must be embedded to have forward compatible implementations. -type UnimplementedParticipantServiceServer struct { -} - -func (UnimplementedParticipantServiceServer) RegisterParticipant(context.Context, *ParticipantPhyReq) (*ParticipantPhyResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterParticipant not implemented") -} -func (UnimplementedParticipantServiceServer) ReportHeartbeat(context.Context, *ParticipantHeartbeatReq) (*HealthCheckResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportHeartbeat not implemented") -} -func (UnimplementedParticipantServiceServer) ReportAvailable(context.Context, *ParticipantAvailReq) (*ParticipantResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportAvailable not implemented") -} -func (UnimplementedParticipantServiceServer) ListParticipant(context.Context, *ParticipantTenant) (*ParticipantServiceResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListParticipant not implemented") -} -func (UnimplementedParticipantServiceServer) ListPhyAvailable(context.Context, *ParticipantTenant) (*ListParticipantAvailResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPhyAvailable not implemented") -} -func (UnimplementedParticipantServiceServer) ListPhyInformation(context.Context, *ParticipantTenant) (*ListParticipantPhyResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPhyInformation not implemented") -} -func (UnimplementedParticipantServiceServer) RegisterTenant(context.Context, *TenantInfo) (*TenantResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterTenant not implemented") -} -func (UnimplementedParticipantServiceServer) ListTenant(context.Context, *TenantInfo) (*ListTenantResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTenant not implemented") -} -func (UnimplementedParticipantServiceServer) ApplyList(context.Context, *ApplyListReq) (*ApplyListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyList not implemented") -} -func (UnimplementedParticipantServiceServer) DeleteList(context.Context, *ApplyListReq) (*ApplyListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteList not implemented") -} -func (UnimplementedParticipantServiceServer) RestartList(context.Context, *ApplyListReq) (*ApplyListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method RestartList not implemented") -} -func (UnimplementedParticipantServiceServer) PauseList(context.Context, *ApplyListReq) (*ApplyListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method PauseList not implemented") -} -func (UnimplementedParticipantServiceServer) StartList(context.Context, *ApplyListReq) (*ApplyListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method StartList not implemented") -} -func (UnimplementedParticipantServiceServer) mustEmbedUnimplementedParticipantServiceServer() {} - -// UnsafeParticipantServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ParticipantServiceServer will -// result in compilation errors. -type UnsafeParticipantServiceServer interface { - mustEmbedUnimplementedParticipantServiceServer() -} - -func RegisterParticipantServiceServer(s grpc.ServiceRegistrar, srv ParticipantServiceServer) { - s.RegisterService(&ParticipantService_ServiceDesc, srv) -} - -func _ParticipantService_RegisterParticipant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParticipantPhyReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).RegisterParticipant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_RegisterParticipant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).RegisterParticipant(ctx, req.(*ParticipantPhyReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_ReportHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParticipantHeartbeatReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).ReportHeartbeat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_ReportHeartbeat_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).ReportHeartbeat(ctx, req.(*ParticipantHeartbeatReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_ReportAvailable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParticipantAvailReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).ReportAvailable(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_ReportAvailable_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).ReportAvailable(ctx, req.(*ParticipantAvailReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_ListParticipant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParticipantTenant) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).ListParticipant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_ListParticipant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).ListParticipant(ctx, req.(*ParticipantTenant)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_ListPhyAvailable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParticipantTenant) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).ListPhyAvailable(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_ListPhyAvailable_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).ListPhyAvailable(ctx, req.(*ParticipantTenant)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_ListPhyInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParticipantTenant) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).ListPhyInformation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_ListPhyInformation_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).ListPhyInformation(ctx, req.(*ParticipantTenant)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_RegisterTenant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TenantInfo) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).RegisterTenant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_RegisterTenant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).RegisterTenant(ctx, req.(*TenantInfo)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_ListTenant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TenantInfo) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).ListTenant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_ListTenant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).ListTenant(ctx, req.(*TenantInfo)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_ApplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).ApplyList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_ApplyList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).ApplyList(ctx, req.(*ApplyListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_DeleteList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).DeleteList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_DeleteList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).DeleteList(ctx, req.(*ApplyListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_RestartList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).RestartList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_RestartList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).RestartList(ctx, req.(*ApplyListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_PauseList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).PauseList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_PauseList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).PauseList(ctx, req.(*ApplyListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ParticipantService_StartList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ParticipantServiceServer).StartList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ParticipantService_StartList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ParticipantServiceServer).StartList(ctx, req.(*ApplyListReq)) - } - return interceptor(ctx, in, info, handler) -} - -// ParticipantService_ServiceDesc is the grpc.ServiceDesc for ParticipantService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ParticipantService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pcmCore.participantService", - HandlerType: (*ParticipantServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "registerParticipant", - Handler: _ParticipantService_RegisterParticipant_Handler, - }, - { - MethodName: "reportHeartbeat", - Handler: _ParticipantService_ReportHeartbeat_Handler, - }, - { - MethodName: "reportAvailable", - Handler: _ParticipantService_ReportAvailable_Handler, - }, - { - MethodName: "listParticipant", - Handler: _ParticipantService_ListParticipant_Handler, - }, - { - MethodName: "listPhyAvailable", - Handler: _ParticipantService_ListPhyAvailable_Handler, - }, - { - MethodName: "listPhyInformation", - Handler: _ParticipantService_ListPhyInformation_Handler, - }, - { - MethodName: "registerTenant", - Handler: _ParticipantService_RegisterTenant_Handler, - }, - { - MethodName: "listTenant", - Handler: _ParticipantService_ListTenant_Handler, - }, - { - MethodName: "applyList", - Handler: _ParticipantService_ApplyList_Handler, - }, - { - MethodName: "deleteList", - Handler: _ParticipantService_DeleteList_Handler, - }, - { - MethodName: "restartList", - Handler: _ParticipantService_RestartList_Handler, - }, - { - MethodName: "pauseList", - Handler: _ParticipantService_PauseList_Handler, - }, - { - MethodName: "startList", - Handler: _ParticipantService_StartList_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pcmCore.proto", -} diff --git a/rpc/pcmcore.go b/rpc/pcmcore.go deleted file mode 100644 index e40caa16..00000000 --- a/rpc/pcmcore.go +++ /dev/null @@ -1,58 +0,0 @@ -/* - - Copyright (c) [2023] [pcm] - [pcm-coordinator] is licensed under Mulan PSL v2. - You can use this software according to the terms and conditions of the Mulan PSL v2. - You may obtain a copy of Mulan PSL v2 at: - http://license.coscl.org.cn/MulanPSL2 - THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - See the Mulan PSL v2 for more details. - -*/ - -package main - -import ( - "flag" - "github.com/zeromicro/go-zero/core/conf" - "github.com/zeromicro/go-zero/core/logx" - "github.com/zeromicro/go-zero/core/service" - "github.com/zeromicro/go-zero/zrpc" - "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/interceptor/rpcserver" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/config" - participantserviceServer "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/server/participantservice" - pcmcoreServer "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/server/pcmcore" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc" - "gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore" - "google.golang.org/grpc" - "google.golang.org/grpc/reflection" -) - -var configFile = flag.String("f", "rpc/etc/pcmcore.yaml", "the config file") - -func main() { - - flag.Parse() - - var c config.Config - conf.MustLoad(*configFile, &c) - - ctx := svc.NewServiceContext(c) - - s := zrpc.MustNewServer(c.RpcServerConf, func(grpcServer *grpc.Server) { - pcmCore.RegisterPcmCoreServer(grpcServer, pcmcoreServer.NewPcmCoreServer(ctx)) - pcmCore.RegisterParticipantServiceServer(grpcServer, participantserviceServer.NewParticipantServiceServer(ctx)) - if c.Mode == service.DevMode || c.Mode == service.TestMode { - reflection.Register(grpcServer) - } - }) - - //rpc log - s.AddUnaryInterceptors(rpcserver.LoggerInterceptor) - - defer s.Stop() - logx.Infof("Starting rpc server at %s...\n", c.ListenOn) - s.Start() -} diff --git a/vendor/google.golang.org/grpc/reflection/README.md b/vendor/google.golang.org/grpc/reflection/README.md deleted file mode 100644 index 9ace83cc..00000000 --- a/vendor/google.golang.org/grpc/reflection/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Reflection - -Package reflection implements server reflection service. - -The service implemented is defined in: https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1/reflection.proto. - -To register server reflection on a gRPC server: -```go -import "google.golang.org/grpc/reflection" - -s := grpc.NewServer() -pb.RegisterYourOwnServer(s, &server{}) - -// Register reflection service on gRPC server. -reflection.Register(s) - -s.Serve(lis) -``` diff --git a/vendor/google.golang.org/grpc/reflection/adapt.go b/vendor/google.golang.org/grpc/reflection/adapt.go deleted file mode 100644 index 6997e474..00000000 --- a/vendor/google.golang.org/grpc/reflection/adapt.go +++ /dev/null @@ -1,57 +0,0 @@ -/* - * - * Copyright 2023 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package reflection - -import ( - "google.golang.org/grpc/reflection/internal" - - v1reflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1" - v1reflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1" - v1alphareflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" -) - -// asV1Alpha returns an implementation of the v1alpha version of the reflection -// interface that delegates all calls to the given v1 version. -func asV1Alpha(svr v1reflectiongrpc.ServerReflectionServer) v1alphareflectiongrpc.ServerReflectionServer { - return v1AlphaServerImpl{svr: svr} -} - -type v1AlphaServerImpl struct { - svr v1reflectiongrpc.ServerReflectionServer -} - -func (s v1AlphaServerImpl) ServerReflectionInfo(stream v1alphareflectiongrpc.ServerReflection_ServerReflectionInfoServer) error { - return s.svr.ServerReflectionInfo(v1AlphaServerStreamAdapter{stream}) -} - -type v1AlphaServerStreamAdapter struct { - v1alphareflectiongrpc.ServerReflection_ServerReflectionInfoServer -} - -func (s v1AlphaServerStreamAdapter) Send(response *v1reflectionpb.ServerReflectionResponse) error { - return s.ServerReflection_ServerReflectionInfoServer.Send(internal.V1ToV1AlphaResponse(response)) -} - -func (s v1AlphaServerStreamAdapter) Recv() (*v1reflectionpb.ServerReflectionRequest, error) { - resp, err := s.ServerReflection_ServerReflectionInfoServer.Recv() - if err != nil { - return nil, err - } - return internal.V1AlphaToV1Request(resp), nil -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection.pb.go deleted file mode 100644 index 6c49c233..00000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection.pb.go +++ /dev/null @@ -1,953 +0,0 @@ -// Copyright 2016 The gRPC Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Service exported by server reflection. A more complete description of how -// server reflection works can be found at -// https://github.com/grpc/grpc/blob/master/doc/server-reflection.md -// -// The canonical version of this proto can be found at -// https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.33.0 -// protoc v4.25.2 -// source: grpc/reflection/v1/reflection.proto - -package grpc_reflection_v1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The message sent by the client when calling ServerReflectionInfo method. -type ServerReflectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` - // To use reflection service, the client should set one of the following - // fields in message_request. The server distinguishes requests by their - // defined field and then handles them using corresponding methods. - // - // Types that are assignable to MessageRequest: - // - // *ServerReflectionRequest_FileByFilename - // *ServerReflectionRequest_FileContainingSymbol - // *ServerReflectionRequest_FileContainingExtension - // *ServerReflectionRequest_AllExtensionNumbersOfType - // *ServerReflectionRequest_ListServices - MessageRequest isServerReflectionRequest_MessageRequest `protobuf_oneof:"message_request"` -} - -func (x *ServerReflectionRequest) Reset() { - *x = ServerReflectionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerReflectionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerReflectionRequest) ProtoMessage() {} - -func (x *ServerReflectionRequest) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerReflectionRequest.ProtoReflect.Descriptor instead. -func (*ServerReflectionRequest) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{0} -} - -func (x *ServerReflectionRequest) GetHost() string { - if x != nil { - return x.Host - } - return "" -} - -func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest { - if m != nil { - return m.MessageRequest - } - return nil -} - -func (x *ServerReflectionRequest) GetFileByFilename() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_FileByFilename); ok { - return x.FileByFilename - } - return "" -} - -func (x *ServerReflectionRequest) GetFileContainingSymbol() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_FileContainingSymbol); ok { - return x.FileContainingSymbol - } - return "" -} - -func (x *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_FileContainingExtension); ok { - return x.FileContainingExtension - } - return nil -} - -func (x *ServerReflectionRequest) GetAllExtensionNumbersOfType() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_AllExtensionNumbersOfType); ok { - return x.AllExtensionNumbersOfType - } - return "" -} - -func (x *ServerReflectionRequest) GetListServices() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_ListServices); ok { - return x.ListServices - } - return "" -} - -type isServerReflectionRequest_MessageRequest interface { - isServerReflectionRequest_MessageRequest() -} - -type ServerReflectionRequest_FileByFilename struct { - // Find a proto file by the file name. - FileByFilename string `protobuf:"bytes,3,opt,name=file_by_filename,json=fileByFilename,proto3,oneof"` -} - -type ServerReflectionRequest_FileContainingSymbol struct { - // Find the proto file that declares the given fully-qualified symbol name. - // This field should be a fully-qualified symbol name - // (e.g. .[.] or .). - FileContainingSymbol string `protobuf:"bytes,4,opt,name=file_containing_symbol,json=fileContainingSymbol,proto3,oneof"` -} - -type ServerReflectionRequest_FileContainingExtension struct { - // Find the proto file which defines an extension extending the given - // message type with the given field number. - FileContainingExtension *ExtensionRequest `protobuf:"bytes,5,opt,name=file_containing_extension,json=fileContainingExtension,proto3,oneof"` -} - -type ServerReflectionRequest_AllExtensionNumbersOfType struct { - // Finds the tag numbers used by all known extensions of the given message - // type, and appends them to ExtensionNumberResponse in an undefined order. - // Its corresponding method is best-effort: it's not guaranteed that the - // reflection service will implement this method, and it's not guaranteed - // that this method will provide all extensions. Returns - // StatusCode::UNIMPLEMENTED if it's not implemented. - // This field should be a fully-qualified type name. The format is - // . - AllExtensionNumbersOfType string `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,proto3,oneof"` -} - -type ServerReflectionRequest_ListServices struct { - // List the full names of registered services. The content will not be - // checked. - ListServices string `protobuf:"bytes,7,opt,name=list_services,json=listServices,proto3,oneof"` -} - -func (*ServerReflectionRequest_FileByFilename) isServerReflectionRequest_MessageRequest() {} - -func (*ServerReflectionRequest_FileContainingSymbol) isServerReflectionRequest_MessageRequest() {} - -func (*ServerReflectionRequest_FileContainingExtension) isServerReflectionRequest_MessageRequest() {} - -func (*ServerReflectionRequest_AllExtensionNumbersOfType) isServerReflectionRequest_MessageRequest() { -} - -func (*ServerReflectionRequest_ListServices) isServerReflectionRequest_MessageRequest() {} - -// The type name and extension number sent by the client when requesting -// file_containing_extension. -type ExtensionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Fully-qualified type name. The format should be . - ContainingType string `protobuf:"bytes,1,opt,name=containing_type,json=containingType,proto3" json:"containing_type,omitempty"` - ExtensionNumber int32 `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"` -} - -func (x *ExtensionRequest) Reset() { - *x = ExtensionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExtensionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExtensionRequest) ProtoMessage() {} - -func (x *ExtensionRequest) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExtensionRequest.ProtoReflect.Descriptor instead. -func (*ExtensionRequest) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{1} -} - -func (x *ExtensionRequest) GetContainingType() string { - if x != nil { - return x.ContainingType - } - return "" -} - -func (x *ExtensionRequest) GetExtensionNumber() int32 { - if x != nil { - return x.ExtensionNumber - } - return 0 -} - -// The message sent by the server to answer ServerReflectionInfo method. -type ServerReflectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ValidHost string `protobuf:"bytes,1,opt,name=valid_host,json=validHost,proto3" json:"valid_host,omitempty"` - OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest,proto3" json:"original_request,omitempty"` - // The server sets one of the following fields according to the message_request - // in the request. - // - // Types that are assignable to MessageResponse: - // - // *ServerReflectionResponse_FileDescriptorResponse - // *ServerReflectionResponse_AllExtensionNumbersResponse - // *ServerReflectionResponse_ListServicesResponse - // *ServerReflectionResponse_ErrorResponse - MessageResponse isServerReflectionResponse_MessageResponse `protobuf_oneof:"message_response"` -} - -func (x *ServerReflectionResponse) Reset() { - *x = ServerReflectionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerReflectionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerReflectionResponse) ProtoMessage() {} - -func (x *ServerReflectionResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerReflectionResponse.ProtoReflect.Descriptor instead. -func (*ServerReflectionResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{2} -} - -func (x *ServerReflectionResponse) GetValidHost() string { - if x != nil { - return x.ValidHost - } - return "" -} - -func (x *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest { - if x != nil { - return x.OriginalRequest - } - return nil -} - -func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse { - if m != nil { - return m.MessageResponse - } - return nil -} - -func (x *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_FileDescriptorResponse); ok { - return x.FileDescriptorResponse - } - return nil -} - -func (x *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_AllExtensionNumbersResponse); ok { - return x.AllExtensionNumbersResponse - } - return nil -} - -func (x *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_ListServicesResponse); ok { - return x.ListServicesResponse - } - return nil -} - -func (x *ServerReflectionResponse) GetErrorResponse() *ErrorResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_ErrorResponse); ok { - return x.ErrorResponse - } - return nil -} - -type isServerReflectionResponse_MessageResponse interface { - isServerReflectionResponse_MessageResponse() -} - -type ServerReflectionResponse_FileDescriptorResponse struct { - // This message is used to answer file_by_filename, file_containing_symbol, - // file_containing_extension requests with transitive dependencies. - // As the repeated label is not allowed in oneof fields, we use a - // FileDescriptorResponse message to encapsulate the repeated fields. - // The reflection service is allowed to avoid sending FileDescriptorProtos - // that were previously sent in response to earlier requests in the stream. - FileDescriptorResponse *FileDescriptorResponse `protobuf:"bytes,4,opt,name=file_descriptor_response,json=fileDescriptorResponse,proto3,oneof"` -} - -type ServerReflectionResponse_AllExtensionNumbersResponse struct { - // This message is used to answer all_extension_numbers_of_type requests. - AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,proto3,oneof"` -} - -type ServerReflectionResponse_ListServicesResponse struct { - // This message is used to answer list_services requests. - ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,proto3,oneof"` -} - -type ServerReflectionResponse_ErrorResponse struct { - // This message is used when an error occurs. - ErrorResponse *ErrorResponse `protobuf:"bytes,7,opt,name=error_response,json=errorResponse,proto3,oneof"` -} - -func (*ServerReflectionResponse_FileDescriptorResponse) isServerReflectionResponse_MessageResponse() { -} - -func (*ServerReflectionResponse_AllExtensionNumbersResponse) isServerReflectionResponse_MessageResponse() { -} - -func (*ServerReflectionResponse_ListServicesResponse) isServerReflectionResponse_MessageResponse() {} - -func (*ServerReflectionResponse_ErrorResponse) isServerReflectionResponse_MessageResponse() {} - -// Serialized FileDescriptorProto messages sent by the server answering -// a file_by_filename, file_containing_symbol, or file_containing_extension -// request. -type FileDescriptorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Serialized FileDescriptorProto messages. We avoid taking a dependency on - // descriptor.proto, which uses proto2 only features, by making them opaque - // bytes instead. - FileDescriptorProto [][]byte `protobuf:"bytes,1,rep,name=file_descriptor_proto,json=fileDescriptorProto,proto3" json:"file_descriptor_proto,omitempty"` -} - -func (x *FileDescriptorResponse) Reset() { - *x = FileDescriptorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileDescriptorResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileDescriptorResponse) ProtoMessage() {} - -func (x *FileDescriptorResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FileDescriptorResponse.ProtoReflect.Descriptor instead. -func (*FileDescriptorResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{3} -} - -func (x *FileDescriptorResponse) GetFileDescriptorProto() [][]byte { - if x != nil { - return x.FileDescriptorProto - } - return nil -} - -// A list of extension numbers sent by the server answering -// all_extension_numbers_of_type request. -type ExtensionNumberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Full name of the base type, including the package name. The format - // is . - BaseTypeName string `protobuf:"bytes,1,opt,name=base_type_name,json=baseTypeName,proto3" json:"base_type_name,omitempty"` - ExtensionNumber []int32 `protobuf:"varint,2,rep,packed,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"` -} - -func (x *ExtensionNumberResponse) Reset() { - *x = ExtensionNumberResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExtensionNumberResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExtensionNumberResponse) ProtoMessage() {} - -func (x *ExtensionNumberResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExtensionNumberResponse.ProtoReflect.Descriptor instead. -func (*ExtensionNumberResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{4} -} - -func (x *ExtensionNumberResponse) GetBaseTypeName() string { - if x != nil { - return x.BaseTypeName - } - return "" -} - -func (x *ExtensionNumberResponse) GetExtensionNumber() []int32 { - if x != nil { - return x.ExtensionNumber - } - return nil -} - -// A list of ServiceResponse sent by the server answering list_services request. -type ListServiceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The information of each service may be expanded in the future, so we use - // ServiceResponse message to encapsulate it. - Service []*ServiceResponse `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"` -} - -func (x *ListServiceResponse) Reset() { - *x = ListServiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListServiceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListServiceResponse) ProtoMessage() {} - -func (x *ListServiceResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListServiceResponse.ProtoReflect.Descriptor instead. -func (*ListServiceResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{5} -} - -func (x *ListServiceResponse) GetService() []*ServiceResponse { - if x != nil { - return x.Service - } - return nil -} - -// The information of a single service used by ListServiceResponse to answer -// list_services request. -type ServiceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Full name of a registered service, including its package name. The format - // is . - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ServiceResponse) Reset() { - *x = ServiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServiceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceResponse) ProtoMessage() {} - -func (x *ServiceResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead. -func (*ServiceResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{6} -} - -func (x *ServiceResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// The error code and error message sent by the server when an error occurs. -type ErrorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // This field uses the error codes defined in grpc::StatusCode. - ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *ErrorResponse) Reset() { - *x = ErrorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ErrorResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ErrorResponse) ProtoMessage() {} - -func (x *ErrorResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead. -func (*ErrorResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{7} -} - -func (x *ErrorResponse) GetErrorCode() int32 { - if x != nil { - return x.ErrorCode - } - return 0 -} - -func (x *ErrorResponse) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -var File_grpc_reflection_v1_reflection_proto protoreflect.FileDescriptor - -var file_grpc_reflection_v1_reflection_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0xf3, 0x02, 0x0a, 0x17, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x66, 0x69, 0x6c, - 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x79, 0x46, 0x69, 0x6c, - 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x14, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x62, 0x0a, - 0x19, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, - 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x17, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x42, 0x0a, 0x1d, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x4f, - 0x66, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, - 0x6c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x11, 0x0a, 0x0f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x66, 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, - 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x10, - 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xae, 0x04, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x68, 0x6f, - 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x48, - 0x6f, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x66, 0x0a, 0x18, 0x66, - 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x16, 0x66, 0x69, 0x6c, - 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x1e, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x72, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x1b, 0x61, 0x6c, 0x6c, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, - 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x14, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x0a, 0x16, 0x46, 0x69, 0x6c, 0x65, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0c, 0x52, 0x13, 0x66, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, - 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6a, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x05, 0x52, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x22, 0x54, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x25, 0x0a, 0x0f, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x53, 0x0a, 0x0d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x32, 0x89, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, - 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x75, 0x0a, 0x14, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x2b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, - 0x42, 0x66, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, - 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x72, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_grpc_reflection_v1_reflection_proto_rawDescOnce sync.Once - file_grpc_reflection_v1_reflection_proto_rawDescData = file_grpc_reflection_v1_reflection_proto_rawDesc -) - -func file_grpc_reflection_v1_reflection_proto_rawDescGZIP() []byte { - file_grpc_reflection_v1_reflection_proto_rawDescOnce.Do(func() { - file_grpc_reflection_v1_reflection_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_reflection_v1_reflection_proto_rawDescData) - }) - return file_grpc_reflection_v1_reflection_proto_rawDescData -} - -var file_grpc_reflection_v1_reflection_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_grpc_reflection_v1_reflection_proto_goTypes = []interface{}{ - (*ServerReflectionRequest)(nil), // 0: grpc.reflection.v1.ServerReflectionRequest - (*ExtensionRequest)(nil), // 1: grpc.reflection.v1.ExtensionRequest - (*ServerReflectionResponse)(nil), // 2: grpc.reflection.v1.ServerReflectionResponse - (*FileDescriptorResponse)(nil), // 3: grpc.reflection.v1.FileDescriptorResponse - (*ExtensionNumberResponse)(nil), // 4: grpc.reflection.v1.ExtensionNumberResponse - (*ListServiceResponse)(nil), // 5: grpc.reflection.v1.ListServiceResponse - (*ServiceResponse)(nil), // 6: grpc.reflection.v1.ServiceResponse - (*ErrorResponse)(nil), // 7: grpc.reflection.v1.ErrorResponse -} -var file_grpc_reflection_v1_reflection_proto_depIdxs = []int32{ - 1, // 0: grpc.reflection.v1.ServerReflectionRequest.file_containing_extension:type_name -> grpc.reflection.v1.ExtensionRequest - 0, // 1: grpc.reflection.v1.ServerReflectionResponse.original_request:type_name -> grpc.reflection.v1.ServerReflectionRequest - 3, // 2: grpc.reflection.v1.ServerReflectionResponse.file_descriptor_response:type_name -> grpc.reflection.v1.FileDescriptorResponse - 4, // 3: grpc.reflection.v1.ServerReflectionResponse.all_extension_numbers_response:type_name -> grpc.reflection.v1.ExtensionNumberResponse - 5, // 4: grpc.reflection.v1.ServerReflectionResponse.list_services_response:type_name -> grpc.reflection.v1.ListServiceResponse - 7, // 5: grpc.reflection.v1.ServerReflectionResponse.error_response:type_name -> grpc.reflection.v1.ErrorResponse - 6, // 6: grpc.reflection.v1.ListServiceResponse.service:type_name -> grpc.reflection.v1.ServiceResponse - 0, // 7: grpc.reflection.v1.ServerReflection.ServerReflectionInfo:input_type -> grpc.reflection.v1.ServerReflectionRequest - 2, // 8: grpc.reflection.v1.ServerReflection.ServerReflectionInfo:output_type -> grpc.reflection.v1.ServerReflectionResponse - 8, // [8:9] is the sub-list for method output_type - 7, // [7:8] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_grpc_reflection_v1_reflection_proto_init() } -func file_grpc_reflection_v1_reflection_proto_init() { - if File_grpc_reflection_v1_reflection_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_grpc_reflection_v1_reflection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerReflectionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtensionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerReflectionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileDescriptorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtensionNumberResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListServiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_grpc_reflection_v1_reflection_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*ServerReflectionRequest_FileByFilename)(nil), - (*ServerReflectionRequest_FileContainingSymbol)(nil), - (*ServerReflectionRequest_FileContainingExtension)(nil), - (*ServerReflectionRequest_AllExtensionNumbersOfType)(nil), - (*ServerReflectionRequest_ListServices)(nil), - } - file_grpc_reflection_v1_reflection_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*ServerReflectionResponse_FileDescriptorResponse)(nil), - (*ServerReflectionResponse_AllExtensionNumbersResponse)(nil), - (*ServerReflectionResponse_ListServicesResponse)(nil), - (*ServerReflectionResponse_ErrorResponse)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grpc_reflection_v1_reflection_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_grpc_reflection_v1_reflection_proto_goTypes, - DependencyIndexes: file_grpc_reflection_v1_reflection_proto_depIdxs, - MessageInfos: file_grpc_reflection_v1_reflection_proto_msgTypes, - }.Build() - File_grpc_reflection_v1_reflection_proto = out.File - file_grpc_reflection_v1_reflection_proto_rawDesc = nil - file_grpc_reflection_v1_reflection_proto_goTypes = nil - file_grpc_reflection_v1_reflection_proto_depIdxs = nil -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection_grpc.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection_grpc.pb.go deleted file mode 100644 index 6e544f81..00000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection_grpc.pb.go +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright 2016 The gRPC Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Service exported by server reflection. A more complete description of how -// server reflection works can be found at -// https://github.com/grpc/grpc/blob/master/doc/server-reflection.md -// -// The canonical version of this proto can be found at -// https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto - -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.2 -// source: grpc/reflection/v1/reflection.proto - -package grpc_reflection_v1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 - -const ( - ServerReflection_ServerReflectionInfo_FullMethodName = "/grpc.reflection.v1.ServerReflection/ServerReflectionInfo" -) - -// ServerReflectionClient is the client API for ServerReflection service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ServerReflectionClient interface { - // The reflection service is structured as a bidirectional stream, ensuring - // all related requests go to a single server. - ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) -} - -type serverReflectionClient struct { - cc grpc.ClientConnInterface -} - -func NewServerReflectionClient(cc grpc.ClientConnInterface) ServerReflectionClient { - return &serverReflectionClient{cc} -} - -func (c *serverReflectionClient) ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &ServerReflection_ServiceDesc.Streams[0], ServerReflection_ServerReflectionInfo_FullMethodName, cOpts...) - if err != nil { - return nil, err - } - x := &serverReflectionServerReflectionInfoClient{ClientStream: stream} - return x, nil -} - -type ServerReflection_ServerReflectionInfoClient interface { - Send(*ServerReflectionRequest) error - Recv() (*ServerReflectionResponse, error) - grpc.ClientStream -} - -type serverReflectionServerReflectionInfoClient struct { - grpc.ClientStream -} - -func (x *serverReflectionServerReflectionInfoClient) Send(m *ServerReflectionRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoClient) Recv() (*ServerReflectionResponse, error) { - m := new(ServerReflectionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ServerReflectionServer is the server API for ServerReflection service. -// All implementations should embed UnimplementedServerReflectionServer -// for forward compatibility -type ServerReflectionServer interface { - // The reflection service is structured as a bidirectional stream, ensuring - // all related requests go to a single server. - ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error -} - -// UnimplementedServerReflectionServer should be embedded to have forward compatible implementations. -type UnimplementedServerReflectionServer struct { -} - -func (UnimplementedServerReflectionServer) ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error { - return status.Errorf(codes.Unimplemented, "method ServerReflectionInfo not implemented") -} - -// UnsafeServerReflectionServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ServerReflectionServer will -// result in compilation errors. -type UnsafeServerReflectionServer interface { - mustEmbedUnimplementedServerReflectionServer() -} - -func RegisterServerReflectionServer(s grpc.ServiceRegistrar, srv ServerReflectionServer) { - s.RegisterService(&ServerReflection_ServiceDesc, srv) -} - -func _ServerReflection_ServerReflectionInfo_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ServerReflectionServer).ServerReflectionInfo(&serverReflectionServerReflectionInfoServer{ServerStream: stream}) -} - -type ServerReflection_ServerReflectionInfoServer interface { - Send(*ServerReflectionResponse) error - Recv() (*ServerReflectionRequest, error) - grpc.ServerStream -} - -type serverReflectionServerReflectionInfoServer struct { - grpc.ServerStream -} - -func (x *serverReflectionServerReflectionInfoServer) Send(m *ServerReflectionResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoServer) Recv() (*ServerReflectionRequest, error) { - m := new(ServerReflectionRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ServerReflection_ServiceDesc is the grpc.ServiceDesc for ServerReflection service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ServerReflection_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.reflection.v1.ServerReflection", - HandlerType: (*ServerReflectionServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "ServerReflectionInfo", - Handler: _ServerReflection_ServerReflectionInfo_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "grpc/reflection/v1/reflection.proto", -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection.pb.go deleted file mode 100644 index 909b24a1..00000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection.pb.go +++ /dev/null @@ -1,1028 +0,0 @@ -// Copyright 2016 The gRPC Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// Service exported by server reflection - -// Warning: this entire file is deprecated. Use this instead: -// https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.33.0 -// protoc v4.25.2 -// grpc/reflection/v1alpha/reflection.proto is a deprecated file. - -package grpc_reflection_v1alpha - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The message sent by the client when calling ServerReflectionInfo method. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type ServerReflectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` - // To use reflection service, the client should set one of the following - // fields in message_request. The server distinguishes requests by their - // defined field and then handles them using corresponding methods. - // - // Types that are assignable to MessageRequest: - // - // *ServerReflectionRequest_FileByFilename - // *ServerReflectionRequest_FileContainingSymbol - // *ServerReflectionRequest_FileContainingExtension - // *ServerReflectionRequest_AllExtensionNumbersOfType - // *ServerReflectionRequest_ListServices - MessageRequest isServerReflectionRequest_MessageRequest `protobuf_oneof:"message_request"` -} - -func (x *ServerReflectionRequest) Reset() { - *x = ServerReflectionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerReflectionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerReflectionRequest) ProtoMessage() {} - -func (x *ServerReflectionRequest) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerReflectionRequest.ProtoReflect.Descriptor instead. -func (*ServerReflectionRequest) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{0} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionRequest) GetHost() string { - if x != nil { - return x.Host - } - return "" -} - -func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest { - if m != nil { - return m.MessageRequest - } - return nil -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionRequest) GetFileByFilename() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_FileByFilename); ok { - return x.FileByFilename - } - return "" -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionRequest) GetFileContainingSymbol() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_FileContainingSymbol); ok { - return x.FileContainingSymbol - } - return "" -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_FileContainingExtension); ok { - return x.FileContainingExtension - } - return nil -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionRequest) GetAllExtensionNumbersOfType() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_AllExtensionNumbersOfType); ok { - return x.AllExtensionNumbersOfType - } - return "" -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionRequest) GetListServices() string { - if x, ok := x.GetMessageRequest().(*ServerReflectionRequest_ListServices); ok { - return x.ListServices - } - return "" -} - -type isServerReflectionRequest_MessageRequest interface { - isServerReflectionRequest_MessageRequest() -} - -type ServerReflectionRequest_FileByFilename struct { - // Find a proto file by the file name. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - FileByFilename string `protobuf:"bytes,3,opt,name=file_by_filename,json=fileByFilename,proto3,oneof"` -} - -type ServerReflectionRequest_FileContainingSymbol struct { - // Find the proto file that declares the given fully-qualified symbol name. - // This field should be a fully-qualified symbol name - // (e.g. .[.] or .). - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - FileContainingSymbol string `protobuf:"bytes,4,opt,name=file_containing_symbol,json=fileContainingSymbol,proto3,oneof"` -} - -type ServerReflectionRequest_FileContainingExtension struct { - // Find the proto file which defines an extension extending the given - // message type with the given field number. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - FileContainingExtension *ExtensionRequest `protobuf:"bytes,5,opt,name=file_containing_extension,json=fileContainingExtension,proto3,oneof"` -} - -type ServerReflectionRequest_AllExtensionNumbersOfType struct { - // Finds the tag numbers used by all known extensions of extendee_type, and - // appends them to ExtensionNumberResponse in an undefined order. - // Its corresponding method is best-effort: it's not guaranteed that the - // reflection service will implement this method, and it's not guaranteed - // that this method will provide all extensions. Returns - // StatusCode::UNIMPLEMENTED if it's not implemented. - // This field should be a fully-qualified type name. The format is - // . - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - AllExtensionNumbersOfType string `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,proto3,oneof"` -} - -type ServerReflectionRequest_ListServices struct { - // List the full names of registered services. The content will not be - // checked. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ListServices string `protobuf:"bytes,7,opt,name=list_services,json=listServices,proto3,oneof"` -} - -func (*ServerReflectionRequest_FileByFilename) isServerReflectionRequest_MessageRequest() {} - -func (*ServerReflectionRequest_FileContainingSymbol) isServerReflectionRequest_MessageRequest() {} - -func (*ServerReflectionRequest_FileContainingExtension) isServerReflectionRequest_MessageRequest() {} - -func (*ServerReflectionRequest_AllExtensionNumbersOfType) isServerReflectionRequest_MessageRequest() { -} - -func (*ServerReflectionRequest_ListServices) isServerReflectionRequest_MessageRequest() {} - -// The type name and extension number sent by the client when requesting -// file_containing_extension. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type ExtensionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Fully-qualified type name. The format should be . - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ContainingType string `protobuf:"bytes,1,opt,name=containing_type,json=containingType,proto3" json:"containing_type,omitempty"` - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ExtensionNumber int32 `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"` -} - -func (x *ExtensionRequest) Reset() { - *x = ExtensionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExtensionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExtensionRequest) ProtoMessage() {} - -func (x *ExtensionRequest) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExtensionRequest.ProtoReflect.Descriptor instead. -func (*ExtensionRequest) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{1} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ExtensionRequest) GetContainingType() string { - if x != nil { - return x.ContainingType - } - return "" -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ExtensionRequest) GetExtensionNumber() int32 { - if x != nil { - return x.ExtensionNumber - } - return 0 -} - -// The message sent by the server to answer ServerReflectionInfo method. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type ServerReflectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ValidHost string `protobuf:"bytes,1,opt,name=valid_host,json=validHost,proto3" json:"valid_host,omitempty"` - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest,proto3" json:"original_request,omitempty"` - // The server set one of the following fields according to the message_request - // in the request. - // - // Types that are assignable to MessageResponse: - // - // *ServerReflectionResponse_FileDescriptorResponse - // *ServerReflectionResponse_AllExtensionNumbersResponse - // *ServerReflectionResponse_ListServicesResponse - // *ServerReflectionResponse_ErrorResponse - MessageResponse isServerReflectionResponse_MessageResponse `protobuf_oneof:"message_response"` -} - -func (x *ServerReflectionResponse) Reset() { - *x = ServerReflectionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerReflectionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerReflectionResponse) ProtoMessage() {} - -func (x *ServerReflectionResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerReflectionResponse.ProtoReflect.Descriptor instead. -func (*ServerReflectionResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{2} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionResponse) GetValidHost() string { - if x != nil { - return x.ValidHost - } - return "" -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest { - if x != nil { - return x.OriginalRequest - } - return nil -} - -func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse { - if m != nil { - return m.MessageResponse - } - return nil -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_FileDescriptorResponse); ok { - return x.FileDescriptorResponse - } - return nil -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_AllExtensionNumbersResponse); ok { - return x.AllExtensionNumbersResponse - } - return nil -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_ListServicesResponse); ok { - return x.ListServicesResponse - } - return nil -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServerReflectionResponse) GetErrorResponse() *ErrorResponse { - if x, ok := x.GetMessageResponse().(*ServerReflectionResponse_ErrorResponse); ok { - return x.ErrorResponse - } - return nil -} - -type isServerReflectionResponse_MessageResponse interface { - isServerReflectionResponse_MessageResponse() -} - -type ServerReflectionResponse_FileDescriptorResponse struct { - // This message is used to answer file_by_filename, file_containing_symbol, - // file_containing_extension requests with transitive dependencies. As - // the repeated label is not allowed in oneof fields, we use a - // FileDescriptorResponse message to encapsulate the repeated fields. - // The reflection service is allowed to avoid sending FileDescriptorProtos - // that were previously sent in response to earlier requests in the stream. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - FileDescriptorResponse *FileDescriptorResponse `protobuf:"bytes,4,opt,name=file_descriptor_response,json=fileDescriptorResponse,proto3,oneof"` -} - -type ServerReflectionResponse_AllExtensionNumbersResponse struct { - // This message is used to answer all_extension_numbers_of_type requst. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,proto3,oneof"` -} - -type ServerReflectionResponse_ListServicesResponse struct { - // This message is used to answer list_services request. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,proto3,oneof"` -} - -type ServerReflectionResponse_ErrorResponse struct { - // This message is used when an error occurs. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ErrorResponse *ErrorResponse `protobuf:"bytes,7,opt,name=error_response,json=errorResponse,proto3,oneof"` -} - -func (*ServerReflectionResponse_FileDescriptorResponse) isServerReflectionResponse_MessageResponse() { -} - -func (*ServerReflectionResponse_AllExtensionNumbersResponse) isServerReflectionResponse_MessageResponse() { -} - -func (*ServerReflectionResponse_ListServicesResponse) isServerReflectionResponse_MessageResponse() {} - -func (*ServerReflectionResponse_ErrorResponse) isServerReflectionResponse_MessageResponse() {} - -// Serialized FileDescriptorProto messages sent by the server answering -// a file_by_filename, file_containing_symbol, or file_containing_extension -// request. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type FileDescriptorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Serialized FileDescriptorProto messages. We avoid taking a dependency on - // descriptor.proto, which uses proto2 only features, by making them opaque - // bytes instead. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - FileDescriptorProto [][]byte `protobuf:"bytes,1,rep,name=file_descriptor_proto,json=fileDescriptorProto,proto3" json:"file_descriptor_proto,omitempty"` -} - -func (x *FileDescriptorResponse) Reset() { - *x = FileDescriptorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileDescriptorResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileDescriptorResponse) ProtoMessage() {} - -func (x *FileDescriptorResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FileDescriptorResponse.ProtoReflect.Descriptor instead. -func (*FileDescriptorResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{3} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *FileDescriptorResponse) GetFileDescriptorProto() [][]byte { - if x != nil { - return x.FileDescriptorProto - } - return nil -} - -// A list of extension numbers sent by the server answering -// all_extension_numbers_of_type request. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type ExtensionNumberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Full name of the base type, including the package name. The format - // is . - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - BaseTypeName string `protobuf:"bytes,1,opt,name=base_type_name,json=baseTypeName,proto3" json:"base_type_name,omitempty"` - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ExtensionNumber []int32 `protobuf:"varint,2,rep,packed,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"` -} - -func (x *ExtensionNumberResponse) Reset() { - *x = ExtensionNumberResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExtensionNumberResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExtensionNumberResponse) ProtoMessage() {} - -func (x *ExtensionNumberResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExtensionNumberResponse.ProtoReflect.Descriptor instead. -func (*ExtensionNumberResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{4} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ExtensionNumberResponse) GetBaseTypeName() string { - if x != nil { - return x.BaseTypeName - } - return "" -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ExtensionNumberResponse) GetExtensionNumber() []int32 { - if x != nil { - return x.ExtensionNumber - } - return nil -} - -// A list of ServiceResponse sent by the server answering list_services request. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type ListServiceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The information of each service may be expanded in the future, so we use - // ServiceResponse message to encapsulate it. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - Service []*ServiceResponse `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"` -} - -func (x *ListServiceResponse) Reset() { - *x = ListServiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListServiceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListServiceResponse) ProtoMessage() {} - -func (x *ListServiceResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListServiceResponse.ProtoReflect.Descriptor instead. -func (*ListServiceResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{5} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ListServiceResponse) GetService() []*ServiceResponse { - if x != nil { - return x.Service - } - return nil -} - -// The information of a single service used by ListServiceResponse to answer -// list_services request. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type ServiceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Full name of a registered service, including its package name. The format - // is . - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ServiceResponse) Reset() { - *x = ServiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServiceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceResponse) ProtoMessage() {} - -func (x *ServiceResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead. -func (*ServiceResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{6} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ServiceResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// The error code and error message sent by the server when an error occurs. -// -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -type ErrorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // This field uses the error codes defined in grpc::StatusCode. - // - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *ErrorResponse) Reset() { - *x = ErrorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ErrorResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ErrorResponse) ProtoMessage() {} - -func (x *ErrorResponse) ProtoReflect() protoreflect.Message { - mi := &file_grpc_reflection_v1alpha_reflection_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead. -func (*ErrorResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP(), []int{7} -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ErrorResponse) GetErrorCode() int32 { - if x != nil { - return x.ErrorCode - } - return 0 -} - -// Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. -func (x *ErrorResponse) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -var File_grpc_reflection_v1alpha_reflection_proto protoreflect.FileDescriptor - -var file_grpc_reflection_v1alpha_reflection_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x22, 0xf8, 0x02, 0x0a, 0x17, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, - 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, - 0x6f, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x66, - 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x0e, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x36, 0x0a, 0x16, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, - 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x14, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, - 0x67, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x67, 0x0a, 0x19, 0x66, 0x69, 0x6c, 0x65, 0x5f, - 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x17, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x42, 0x0a, 0x1d, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x4f, 0x66, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x6c, - 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x11, 0x0a, 0x0f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x66, - 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xc7, 0x04, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x68, 0x6f, 0x73, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x48, 0x6f, - 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0f, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x6b, 0x0a, 0x18, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x46, 0x69, 0x6c, 0x65, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x16, 0x66, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, - 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x1b, 0x61, 0x6c, 0x6c, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x14, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x0a, 0x10, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x4c, 0x0a, 0x16, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x66, 0x69, - 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x13, 0x66, 0x69, 0x6c, 0x65, 0x44, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6a, - 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x61, 0x73, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x29, 0x0a, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x59, 0x0a, 0x13, 0x4c, 0x69, - 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x42, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x25, 0x0a, 0x0f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x53, 0x0a, 0x0d, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x32, 0x93, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7f, 0x0a, 0x14, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x30, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, - 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x31, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x73, 0x0a, 0x1a, 0x69, 0x6f, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x15, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, - 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xb8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_grpc_reflection_v1alpha_reflection_proto_rawDescOnce sync.Once - file_grpc_reflection_v1alpha_reflection_proto_rawDescData = file_grpc_reflection_v1alpha_reflection_proto_rawDesc -) - -func file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP() []byte { - file_grpc_reflection_v1alpha_reflection_proto_rawDescOnce.Do(func() { - file_grpc_reflection_v1alpha_reflection_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_reflection_v1alpha_reflection_proto_rawDescData) - }) - return file_grpc_reflection_v1alpha_reflection_proto_rawDescData -} - -var file_grpc_reflection_v1alpha_reflection_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_grpc_reflection_v1alpha_reflection_proto_goTypes = []interface{}{ - (*ServerReflectionRequest)(nil), // 0: grpc.reflection.v1alpha.ServerReflectionRequest - (*ExtensionRequest)(nil), // 1: grpc.reflection.v1alpha.ExtensionRequest - (*ServerReflectionResponse)(nil), // 2: grpc.reflection.v1alpha.ServerReflectionResponse - (*FileDescriptorResponse)(nil), // 3: grpc.reflection.v1alpha.FileDescriptorResponse - (*ExtensionNumberResponse)(nil), // 4: grpc.reflection.v1alpha.ExtensionNumberResponse - (*ListServiceResponse)(nil), // 5: grpc.reflection.v1alpha.ListServiceResponse - (*ServiceResponse)(nil), // 6: grpc.reflection.v1alpha.ServiceResponse - (*ErrorResponse)(nil), // 7: grpc.reflection.v1alpha.ErrorResponse -} -var file_grpc_reflection_v1alpha_reflection_proto_depIdxs = []int32{ - 1, // 0: grpc.reflection.v1alpha.ServerReflectionRequest.file_containing_extension:type_name -> grpc.reflection.v1alpha.ExtensionRequest - 0, // 1: grpc.reflection.v1alpha.ServerReflectionResponse.original_request:type_name -> grpc.reflection.v1alpha.ServerReflectionRequest - 3, // 2: grpc.reflection.v1alpha.ServerReflectionResponse.file_descriptor_response:type_name -> grpc.reflection.v1alpha.FileDescriptorResponse - 4, // 3: grpc.reflection.v1alpha.ServerReflectionResponse.all_extension_numbers_response:type_name -> grpc.reflection.v1alpha.ExtensionNumberResponse - 5, // 4: grpc.reflection.v1alpha.ServerReflectionResponse.list_services_response:type_name -> grpc.reflection.v1alpha.ListServiceResponse - 7, // 5: grpc.reflection.v1alpha.ServerReflectionResponse.error_response:type_name -> grpc.reflection.v1alpha.ErrorResponse - 6, // 6: grpc.reflection.v1alpha.ListServiceResponse.service:type_name -> grpc.reflection.v1alpha.ServiceResponse - 0, // 7: grpc.reflection.v1alpha.ServerReflection.ServerReflectionInfo:input_type -> grpc.reflection.v1alpha.ServerReflectionRequest - 2, // 8: grpc.reflection.v1alpha.ServerReflection.ServerReflectionInfo:output_type -> grpc.reflection.v1alpha.ServerReflectionResponse - 8, // [8:9] is the sub-list for method output_type - 7, // [7:8] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_grpc_reflection_v1alpha_reflection_proto_init() } -func file_grpc_reflection_v1alpha_reflection_proto_init() { - if File_grpc_reflection_v1alpha_reflection_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerReflectionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtensionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerReflectionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileDescriptorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtensionNumberResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListServiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*ServerReflectionRequest_FileByFilename)(nil), - (*ServerReflectionRequest_FileContainingSymbol)(nil), - (*ServerReflectionRequest_FileContainingExtension)(nil), - (*ServerReflectionRequest_AllExtensionNumbersOfType)(nil), - (*ServerReflectionRequest_ListServices)(nil), - } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*ServerReflectionResponse_FileDescriptorResponse)(nil), - (*ServerReflectionResponse_AllExtensionNumbersResponse)(nil), - (*ServerReflectionResponse_ListServicesResponse)(nil), - (*ServerReflectionResponse_ErrorResponse)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grpc_reflection_v1alpha_reflection_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_grpc_reflection_v1alpha_reflection_proto_goTypes, - DependencyIndexes: file_grpc_reflection_v1alpha_reflection_proto_depIdxs, - MessageInfos: file_grpc_reflection_v1alpha_reflection_proto_msgTypes, - }.Build() - File_grpc_reflection_v1alpha_reflection_proto = out.File - file_grpc_reflection_v1alpha_reflection_proto_rawDesc = nil - file_grpc_reflection_v1alpha_reflection_proto_goTypes = nil - file_grpc_reflection_v1alpha_reflection_proto_depIdxs = nil -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go deleted file mode 100644 index 3de5dc35..00000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright 2016 The gRPC Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// Service exported by server reflection - -// Warning: this entire file is deprecated. Use this instead: -// https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto - -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.2 -// grpc/reflection/v1alpha/reflection.proto is a deprecated file. - -package grpc_reflection_v1alpha - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 - -const ( - ServerReflection_ServerReflectionInfo_FullMethodName = "/grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo" -) - -// ServerReflectionClient is the client API for ServerReflection service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ServerReflectionClient interface { - // The reflection service is structured as a bidirectional stream, ensuring - // all related requests go to a single server. - ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) -} - -type serverReflectionClient struct { - cc grpc.ClientConnInterface -} - -func NewServerReflectionClient(cc grpc.ClientConnInterface) ServerReflectionClient { - return &serverReflectionClient{cc} -} - -func (c *serverReflectionClient) ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &ServerReflection_ServiceDesc.Streams[0], ServerReflection_ServerReflectionInfo_FullMethodName, cOpts...) - if err != nil { - return nil, err - } - x := &serverReflectionServerReflectionInfoClient{ClientStream: stream} - return x, nil -} - -type ServerReflection_ServerReflectionInfoClient interface { - Send(*ServerReflectionRequest) error - Recv() (*ServerReflectionResponse, error) - grpc.ClientStream -} - -type serverReflectionServerReflectionInfoClient struct { - grpc.ClientStream -} - -func (x *serverReflectionServerReflectionInfoClient) Send(m *ServerReflectionRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoClient) Recv() (*ServerReflectionResponse, error) { - m := new(ServerReflectionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ServerReflectionServer is the server API for ServerReflection service. -// All implementations should embed UnimplementedServerReflectionServer -// for forward compatibility -type ServerReflectionServer interface { - // The reflection service is structured as a bidirectional stream, ensuring - // all related requests go to a single server. - ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error -} - -// UnimplementedServerReflectionServer should be embedded to have forward compatible implementations. -type UnimplementedServerReflectionServer struct { -} - -func (UnimplementedServerReflectionServer) ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error { - return status.Errorf(codes.Unimplemented, "method ServerReflectionInfo not implemented") -} - -// UnsafeServerReflectionServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ServerReflectionServer will -// result in compilation errors. -type UnsafeServerReflectionServer interface { - mustEmbedUnimplementedServerReflectionServer() -} - -func RegisterServerReflectionServer(s grpc.ServiceRegistrar, srv ServerReflectionServer) { - s.RegisterService(&ServerReflection_ServiceDesc, srv) -} - -func _ServerReflection_ServerReflectionInfo_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ServerReflectionServer).ServerReflectionInfo(&serverReflectionServerReflectionInfoServer{ServerStream: stream}) -} - -type ServerReflection_ServerReflectionInfoServer interface { - Send(*ServerReflectionResponse) error - Recv() (*ServerReflectionRequest, error) - grpc.ServerStream -} - -type serverReflectionServerReflectionInfoServer struct { - grpc.ServerStream -} - -func (x *serverReflectionServerReflectionInfoServer) Send(m *ServerReflectionResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoServer) Recv() (*ServerReflectionRequest, error) { - m := new(ServerReflectionRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ServerReflection_ServiceDesc is the grpc.ServiceDesc for ServerReflection service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ServerReflection_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "grpc.reflection.v1alpha.ServerReflection", - HandlerType: (*ServerReflectionServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "ServerReflectionInfo", - Handler: _ServerReflection_ServerReflectionInfo_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "grpc/reflection/v1alpha/reflection.proto", -} diff --git a/vendor/google.golang.org/grpc/reflection/internal/internal.go b/vendor/google.golang.org/grpc/reflection/internal/internal.go deleted file mode 100644 index 36ee6507..00000000 --- a/vendor/google.golang.org/grpc/reflection/internal/internal.go +++ /dev/null @@ -1,436 +0,0 @@ -/* - * - * Copyright 2024 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -// Package internal contains code that is shared by both reflection package and -// the test package. The packages are split in this way inorder to avoid -// depenedency to deprecated package github.com/golang/protobuf. -package internal - -import ( - "io" - "sort" - - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" - "google.golang.org/protobuf/reflect/protodesc" - "google.golang.org/protobuf/reflect/protoreflect" - "google.golang.org/protobuf/reflect/protoregistry" - - v1reflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1" - v1reflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1" - v1alphareflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" - v1alphareflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" -) - -// ServiceInfoProvider is an interface used to retrieve metadata about the -// services to expose. -type ServiceInfoProvider interface { - GetServiceInfo() map[string]grpc.ServiceInfo -} - -// ExtensionResolver is the interface used to query details about extensions. -// This interface is satisfied by protoregistry.GlobalTypes. -type ExtensionResolver interface { - protoregistry.ExtensionTypeResolver - RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) -} - -// ServerReflectionServer is the server API for ServerReflection service. -type ServerReflectionServer struct { - v1alphareflectiongrpc.UnimplementedServerReflectionServer - S ServiceInfoProvider - DescResolver protodesc.Resolver - ExtResolver ExtensionResolver -} - -// FileDescWithDependencies returns a slice of serialized fileDescriptors in -// wire format ([]byte). The fileDescriptors will include fd and all the -// transitive dependencies of fd with names not in sentFileDescriptors. -func (s *ServerReflectionServer) FileDescWithDependencies(fd protoreflect.FileDescriptor, sentFileDescriptors map[string]bool) ([][]byte, error) { - if fd.IsPlaceholder() { - // If the given root file is a placeholder, treat it - // as missing instead of serializing it. - return nil, protoregistry.NotFound - } - var r [][]byte - queue := []protoreflect.FileDescriptor{fd} - for len(queue) > 0 { - currentfd := queue[0] - queue = queue[1:] - if currentfd.IsPlaceholder() { - // Skip any missing files in the dependency graph. - continue - } - if sent := sentFileDescriptors[currentfd.Path()]; len(r) == 0 || !sent { - sentFileDescriptors[currentfd.Path()] = true - fdProto := protodesc.ToFileDescriptorProto(currentfd) - currentfdEncoded, err := proto.Marshal(fdProto) - if err != nil { - return nil, err - } - r = append(r, currentfdEncoded) - } - for i := 0; i < currentfd.Imports().Len(); i++ { - queue = append(queue, currentfd.Imports().Get(i)) - } - } - return r, nil -} - -// FileDescEncodingContainingSymbol finds the file descriptor containing the -// given symbol, finds all of its previously unsent transitive dependencies, -// does marshalling on them, and returns the marshalled result. The given symbol -// can be a type, a service or a method. -func (s *ServerReflectionServer) FileDescEncodingContainingSymbol(name string, sentFileDescriptors map[string]bool) ([][]byte, error) { - d, err := s.DescResolver.FindDescriptorByName(protoreflect.FullName(name)) - if err != nil { - return nil, err - } - return s.FileDescWithDependencies(d.ParentFile(), sentFileDescriptors) -} - -// FileDescEncodingContainingExtension finds the file descriptor containing -// given extension, finds all of its previously unsent transitive dependencies, -// does marshalling on them, and returns the marshalled result. -func (s *ServerReflectionServer) FileDescEncodingContainingExtension(typeName string, extNum int32, sentFileDescriptors map[string]bool) ([][]byte, error) { - xt, err := s.ExtResolver.FindExtensionByNumber(protoreflect.FullName(typeName), protoreflect.FieldNumber(extNum)) - if err != nil { - return nil, err - } - return s.FileDescWithDependencies(xt.TypeDescriptor().ParentFile(), sentFileDescriptors) -} - -// AllExtensionNumbersForTypeName returns all extension numbers for the given type. -func (s *ServerReflectionServer) AllExtensionNumbersForTypeName(name string) ([]int32, error) { - var numbers []int32 - s.ExtResolver.RangeExtensionsByMessage(protoreflect.FullName(name), func(xt protoreflect.ExtensionType) bool { - numbers = append(numbers, int32(xt.TypeDescriptor().Number())) - return true - }) - sort.Slice(numbers, func(i, j int) bool { - return numbers[i] < numbers[j] - }) - if len(numbers) == 0 { - // maybe return an error if given type name is not known - if _, err := s.DescResolver.FindDescriptorByName(protoreflect.FullName(name)); err != nil { - return nil, err - } - } - return numbers, nil -} - -// ListServices returns the names of services this server exposes. -func (s *ServerReflectionServer) ListServices() []*v1reflectionpb.ServiceResponse { - serviceInfo := s.S.GetServiceInfo() - resp := make([]*v1reflectionpb.ServiceResponse, 0, len(serviceInfo)) - for svc := range serviceInfo { - resp = append(resp, &v1reflectionpb.ServiceResponse{Name: svc}) - } - sort.Slice(resp, func(i, j int) bool { - return resp[i].Name < resp[j].Name - }) - return resp -} - -// ServerReflectionInfo is the reflection service handler. -func (s *ServerReflectionServer) ServerReflectionInfo(stream v1reflectiongrpc.ServerReflection_ServerReflectionInfoServer) error { - sentFileDescriptors := make(map[string]bool) - for { - in, err := stream.Recv() - if err == io.EOF { - return nil - } - if err != nil { - return err - } - - out := &v1reflectionpb.ServerReflectionResponse{ - ValidHost: in.Host, - OriginalRequest: in, - } - switch req := in.MessageRequest.(type) { - case *v1reflectionpb.ServerReflectionRequest_FileByFilename: - var b [][]byte - fd, err := s.DescResolver.FindFileByPath(req.FileByFilename) - if err == nil { - b, err = s.FileDescWithDependencies(fd, sentFileDescriptors) - } - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingSymbol: - b, err := s.FileDescEncodingContainingSymbol(req.FileContainingSymbol, sentFileDescriptors) - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingExtension: - typeName := req.FileContainingExtension.ContainingType - extNum := req.FileContainingExtension.ExtensionNumber - b, err := s.FileDescEncodingContainingExtension(typeName, extNum, sentFileDescriptors) - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, - } - } - case *v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: - extNums, err := s.AllExtensionNumbersForTypeName(req.AllExtensionNumbersOfType) - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ - AllExtensionNumbersResponse: &v1reflectionpb.ExtensionNumberResponse{ - BaseTypeName: req.AllExtensionNumbersOfType, - ExtensionNumber: extNums, - }, - } - } - case *v1reflectionpb.ServerReflectionRequest_ListServices: - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ListServicesResponse{ - ListServicesResponse: &v1reflectionpb.ListServiceResponse{ - Service: s.ListServices(), - }, - } - default: - return status.Errorf(codes.InvalidArgument, "invalid MessageRequest: %v", in.MessageRequest) - } - - if err := stream.Send(out); err != nil { - return err - } - } -} - -// V1ToV1AlphaResponse converts a v1 ServerReflectionResponse to a v1alpha. -func V1ToV1AlphaResponse(v1 *v1reflectionpb.ServerReflectionResponse) *v1alphareflectionpb.ServerReflectionResponse { - var v1alpha v1alphareflectionpb.ServerReflectionResponse - v1alpha.ValidHost = v1.ValidHost - if v1.OriginalRequest != nil { - v1alpha.OriginalRequest = V1ToV1AlphaRequest(v1.OriginalRequest) - } - switch mr := v1.MessageResponse.(type) { - case *v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse: - if mr != nil { - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1alphareflectionpb.FileDescriptorResponse{ - FileDescriptorProto: mr.FileDescriptorResponse.GetFileDescriptorProto(), - }, - } - } - case *v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse: - if mr != nil { - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ - AllExtensionNumbersResponse: &v1alphareflectionpb.ExtensionNumberResponse{ - BaseTypeName: mr.AllExtensionNumbersResponse.GetBaseTypeName(), - ExtensionNumber: mr.AllExtensionNumbersResponse.GetExtensionNumber(), - }, - } - } - case *v1reflectionpb.ServerReflectionResponse_ListServicesResponse: - if mr != nil { - svcs := make([]*v1alphareflectionpb.ServiceResponse, len(mr.ListServicesResponse.GetService())) - for i, svc := range mr.ListServicesResponse.GetService() { - svcs[i] = &v1alphareflectionpb.ServiceResponse{ - Name: svc.GetName(), - } - } - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_ListServicesResponse{ - ListServicesResponse: &v1alphareflectionpb.ListServiceResponse{ - Service: svcs, - }, - } - } - case *v1reflectionpb.ServerReflectionResponse_ErrorResponse: - if mr != nil { - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1alphareflectionpb.ErrorResponse{ - ErrorCode: mr.ErrorResponse.GetErrorCode(), - ErrorMessage: mr.ErrorResponse.GetErrorMessage(), - }, - } - } - default: - // no value set - } - return &v1alpha -} - -// V1AlphaToV1Request converts a v1alpha ServerReflectionRequest to a v1. -func V1AlphaToV1Request(v1alpha *v1alphareflectionpb.ServerReflectionRequest) *v1reflectionpb.ServerReflectionRequest { - var v1 v1reflectionpb.ServerReflectionRequest - v1.Host = v1alpha.Host - switch mr := v1alpha.MessageRequest.(type) { - case *v1alphareflectionpb.ServerReflectionRequest_FileByFilename: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileByFilename{ - FileByFilename: mr.FileByFilename, - } - case *v1alphareflectionpb.ServerReflectionRequest_FileContainingSymbol: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileContainingSymbol{ - FileContainingSymbol: mr.FileContainingSymbol, - } - case *v1alphareflectionpb.ServerReflectionRequest_FileContainingExtension: - if mr.FileContainingExtension != nil { - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileContainingExtension{ - FileContainingExtension: &v1reflectionpb.ExtensionRequest{ - ContainingType: mr.FileContainingExtension.GetContainingType(), - ExtensionNumber: mr.FileContainingExtension.GetExtensionNumber(), - }, - } - } - case *v1alphareflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType{ - AllExtensionNumbersOfType: mr.AllExtensionNumbersOfType, - } - case *v1alphareflectionpb.ServerReflectionRequest_ListServices: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_ListServices{ - ListServices: mr.ListServices, - } - default: - // no value set - } - return &v1 -} - -// V1ToV1AlphaRequest converts a v1 ServerReflectionRequest to a v1alpha. -func V1ToV1AlphaRequest(v1 *v1reflectionpb.ServerReflectionRequest) *v1alphareflectionpb.ServerReflectionRequest { - var v1alpha v1alphareflectionpb.ServerReflectionRequest - v1alpha.Host = v1.Host - switch mr := v1.MessageRequest.(type) { - case *v1reflectionpb.ServerReflectionRequest_FileByFilename: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileByFilename{ - FileByFilename: mr.FileByFilename, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingSymbol: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileContainingSymbol{ - FileContainingSymbol: mr.FileContainingSymbol, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingExtension: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileContainingExtension{ - FileContainingExtension: &v1alphareflectionpb.ExtensionRequest{ - ContainingType: mr.FileContainingExtension.GetContainingType(), - ExtensionNumber: mr.FileContainingExtension.GetExtensionNumber(), - }, - } - } - case *v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType{ - AllExtensionNumbersOfType: mr.AllExtensionNumbersOfType, - } - } - case *v1reflectionpb.ServerReflectionRequest_ListServices: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_ListServices{ - ListServices: mr.ListServices, - } - } - default: - // no value set - } - return &v1alpha -} - -// V1AlphaToV1Response converts a v1alpha ServerReflectionResponse to a v1. -func V1AlphaToV1Response(v1alpha *v1alphareflectionpb.ServerReflectionResponse) *v1reflectionpb.ServerReflectionResponse { - var v1 v1reflectionpb.ServerReflectionResponse - v1.ValidHost = v1alpha.ValidHost - if v1alpha.OriginalRequest != nil { - v1.OriginalRequest = V1AlphaToV1Request(v1alpha.OriginalRequest) - } - switch mr := v1alpha.MessageResponse.(type) { - case *v1alphareflectionpb.ServerReflectionResponse_FileDescriptorResponse: - if mr != nil { - v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{ - FileDescriptorProto: mr.FileDescriptorResponse.GetFileDescriptorProto(), - }, - } - } - case *v1alphareflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse: - if mr != nil { - v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ - AllExtensionNumbersResponse: &v1reflectionpb.ExtensionNumberResponse{ - BaseTypeName: mr.AllExtensionNumbersResponse.GetBaseTypeName(), - ExtensionNumber: mr.AllExtensionNumbersResponse.GetExtensionNumber(), - }, - } - } - case *v1alphareflectionpb.ServerReflectionResponse_ListServicesResponse: - if mr != nil { - svcs := make([]*v1reflectionpb.ServiceResponse, len(mr.ListServicesResponse.GetService())) - for i, svc := range mr.ListServicesResponse.GetService() { - svcs[i] = &v1reflectionpb.ServiceResponse{ - Name: svc.GetName(), - } - } - v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ListServicesResponse{ - ListServicesResponse: &v1reflectionpb.ListServiceResponse{ - Service: svcs, - }, - } - } - case *v1alphareflectionpb.ServerReflectionResponse_ErrorResponse: - if mr != nil { - v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: mr.ErrorResponse.GetErrorCode(), - ErrorMessage: mr.ErrorResponse.GetErrorMessage(), - }, - } - } - default: - // no value set - } - return &v1 -} diff --git a/vendor/google.golang.org/grpc/reflection/serverreflection.go b/vendor/google.golang.org/grpc/reflection/serverreflection.go deleted file mode 100644 index 13a94e2d..00000000 --- a/vendor/google.golang.org/grpc/reflection/serverreflection.go +++ /dev/null @@ -1,160 +0,0 @@ -/* - * - * Copyright 2016 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/* -Package reflection implements server reflection service. - -The service implemented is defined in: -https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1alpha/reflection.proto. - -To register server reflection on a gRPC server: - - import "google.golang.org/grpc/reflection" - - s := grpc.NewServer() - pb.RegisterYourOwnServer(s, &server{}) - - // Register reflection service on gRPC server. - reflection.Register(s) - - s.Serve(lis) -*/ -package reflection // import "google.golang.org/grpc/reflection" - -import ( - "google.golang.org/grpc" - "google.golang.org/grpc/reflection/internal" - "google.golang.org/protobuf/reflect/protodesc" - "google.golang.org/protobuf/reflect/protoreflect" - "google.golang.org/protobuf/reflect/protoregistry" - - v1reflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1" - v1alphareflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" -) - -// GRPCServer is the interface provided by a gRPC server. It is implemented by -// *grpc.Server, but could also be implemented by other concrete types. It acts -// as a registry, for accumulating the services exposed by the server. -type GRPCServer interface { - grpc.ServiceRegistrar - ServiceInfoProvider -} - -var _ GRPCServer = (*grpc.Server)(nil) - -// Register registers the server reflection service on the given gRPC server. -// Both the v1 and v1alpha versions are registered. -func Register(s GRPCServer) { - svr := NewServerV1(ServerOptions{Services: s}) - v1alphareflectiongrpc.RegisterServerReflectionServer(s, asV1Alpha(svr)) - v1reflectiongrpc.RegisterServerReflectionServer(s, svr) -} - -// RegisterV1 registers only the v1 version of the server reflection service -// on the given gRPC server. Many clients may only support v1alpha so most -// users should use Register instead, at least until clients have upgraded. -func RegisterV1(s GRPCServer) { - svr := NewServerV1(ServerOptions{Services: s}) - v1reflectiongrpc.RegisterServerReflectionServer(s, svr) -} - -// ServiceInfoProvider is an interface used to retrieve metadata about the -// services to expose. -// -// The reflection service is only interested in the service names, but the -// signature is this way so that *grpc.Server implements it. So it is okay -// for a custom implementation to return zero values for the -// grpc.ServiceInfo values in the map. -// -// # Experimental -// -// Notice: This type is EXPERIMENTAL and may be changed or removed in a -// later release. -type ServiceInfoProvider interface { - GetServiceInfo() map[string]grpc.ServiceInfo -} - -// ExtensionResolver is the interface used to query details about extensions. -// This interface is satisfied by protoregistry.GlobalTypes. -// -// # Experimental -// -// Notice: This type is EXPERIMENTAL and may be changed or removed in a -// later release. -type ExtensionResolver interface { - protoregistry.ExtensionTypeResolver - RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) -} - -// ServerOptions represents the options used to construct a reflection server. -// -// # Experimental -// -// Notice: This type is EXPERIMENTAL and may be changed or removed in a -// later release. -type ServerOptions struct { - // The source of advertised RPC services. If not specified, the reflection - // server will report an empty list when asked to list services. - // - // This value will typically be a *grpc.Server. But the set of advertised - // services can be customized by wrapping a *grpc.Server or using an - // alternate implementation that returns a custom set of service names. - Services ServiceInfoProvider - // Optional resolver used to load descriptors. If not specified, - // protoregistry.GlobalFiles will be used. - DescriptorResolver protodesc.Resolver - // Optional resolver used to query for known extensions. If not specified, - // protoregistry.GlobalTypes will be used. - ExtensionResolver ExtensionResolver -} - -// NewServer returns a reflection server implementation using the given options. -// This can be used to customize behavior of the reflection service. Most usages -// should prefer to use Register instead. For backwards compatibility reasons, -// this returns the v1alpha version of the reflection server. For a v1 version -// of the reflection server, see NewServerV1. -// -// # Experimental -// -// Notice: This function is EXPERIMENTAL and may be changed or removed in a -// later release. -func NewServer(opts ServerOptions) v1alphareflectiongrpc.ServerReflectionServer { - return asV1Alpha(NewServerV1(opts)) -} - -// NewServerV1 returns a reflection server implementation using the given options. -// This can be used to customize behavior of the reflection service. Most usages -// should prefer to use Register instead. -// -// # Experimental -// -// Notice: This function is EXPERIMENTAL and may be changed or removed in a -// later release. -func NewServerV1(opts ServerOptions) v1reflectiongrpc.ServerReflectionServer { - if opts.DescriptorResolver == nil { - opts.DescriptorResolver = protoregistry.GlobalFiles - } - if opts.ExtensionResolver == nil { - opts.ExtensionResolver = protoregistry.GlobalTypes - } - return &internal.ServerReflectionServer{ - S: opts.Services, - DescResolver: opts.DescriptorResolver, - ExtResolver: opts.ExtensionResolver, - } -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 34d90f1a..34b08b52 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -806,10 +806,6 @@ google.golang.org/grpc/internal/transport/networktype google.golang.org/grpc/keepalive google.golang.org/grpc/metadata google.golang.org/grpc/peer -google.golang.org/grpc/reflection -google.golang.org/grpc/reflection/grpc_reflection_v1 -google.golang.org/grpc/reflection/grpc_reflection_v1alpha -google.golang.org/grpc/reflection/internal google.golang.org/grpc/resolver google.golang.org/grpc/resolver/dns google.golang.org/grpc/resolver/manual