change mod url from github to gitlink

This commit is contained in:
zhouqj 2022-05-10 18:14:27 +08:00
parent 8914f51911
commit f1b9e8b948
37 changed files with 90 additions and 90 deletions

View File

@ -3,13 +3,13 @@ package ali
import ( import (
"errors" "errors"
"flag" "flag"
"github.com/JCCE-nudt/PCM/adaptor/pod/server"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/golang/glog" "github.com/golang/glog"
"gitlink.org.cn/JCCE/PCM/adaptor/pod/server"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
// CreateContainerGroup invokes the eci.CreateContainerGroup API synchronously // CreateContainerGroup invokes the eci.CreateContainerGroup API synchronously

View File

@ -18,13 +18,13 @@ package ali
import ( import (
"errors" "errors"
"flag" "flag"
"github.com/JCCE-nudt/PCM/adaptor/pod/server"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/golang/glog" "github.com/golang/glog"
"gitlink.org.cn/JCCE/PCM/adaptor/pod/server"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
// DeleteContainerGroup invokes the eci.DeleteContainerGroup API synchronously // DeleteContainerGroup invokes the eci.DeleteContainerGroup API synchronously

View File

@ -1,11 +1,11 @@
package ali package ali
import ( import (
"github.com/JCCE-nudt/PCM/adaptor/pod/server"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"gitlink.org.cn/JCCE/PCM/adaptor/pod/server"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
// DescribeContainerGroups invokes the eci.DescribeContainerGroups API synchronously // DescribeContainerGroups invokes the eci.DescribeContainerGroups API synchronously

View File

@ -18,13 +18,13 @@ package ali
import ( import (
"errors" "errors"
"flag" "flag"
"github.com/JCCE-nudt/PCM/adaptor/pod/server"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/golang/glog" "github.com/golang/glog"
"gitlink.org.cn/JCCE/PCM/adaptor/pod/server"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
// UpdateContainerGroup invokes the eci.UpdateContainerGroup API synchronously // UpdateContainerGroup invokes the eci.UpdateContainerGroup API synchronously

View File

@ -6,10 +6,10 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/JCCE-nudt/PCM/adaptor/pod/service" "gitlink.org.cn/JCCE/PCM/adaptor/pod/service"
"github.com/JCCE-nudt/PCM/common/tenanter" "gitlink.org.cn/JCCE/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/pkg/errors" "github.com/pkg/errors"

View File

@ -9,10 +9,10 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
var aliClientMutex sync.Mutex var aliClientMutex sync.Mutex

View File

@ -12,16 +12,16 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
corev1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
huaweicci "k8s.io/client-go/kubernetes" huaweicci "k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/tools/clientcmd/api" "k8s.io/client-go/tools/clientcmd/api"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
) )
var huaweiClientMutex sync.Mutex var huaweiClientMutex sync.Mutex

View File

@ -3,11 +3,11 @@ package poder
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
corev1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource" "k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -2,9 +2,9 @@ package poder
import ( import (
"context" "context"
"github.com/JCCE-nudt/PCM/common/tenanter" "gitlink.org.cn/JCCE/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/pkg/errors" "github.com/pkg/errors"

View File

@ -7,14 +7,14 @@ import (
"github.com/golang/glog" "github.com/golang/glog"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
tencenteks "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525" tencenteks "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
) )
var tencentClientMutex sync.Mutex var tencentClientMutex sync.Mutex

View File

@ -4,12 +4,12 @@ import (
"context" "context"
"sync" "sync"
"github.com/JCCE-nudt/PCM/adaptor/vm/service/ecser"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlink.org.cn/JCCE/PCM/adaptor/vm/service/ecser"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
//CreateMultipleEcs 创建多云ECS //CreateMultipleEcs 创建多云ECS

View File

@ -2,8 +2,8 @@ package ecs
import ( import (
"context" "context"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"testing" "testing"
) )

View File

@ -1,8 +1,8 @@
package ecs package ecs
import ( import (
"github.com/JCCE-nudt/PCM/common/tenanter" "gitlink.org.cn/JCCE/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"os" "os"
"testing" "testing"
) )

View File

@ -4,9 +4,6 @@ import (
"context" "context"
"sync" "sync"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
openapi "github.com/alibabacloud-go/darabonba-openapi/client" openapi "github.com/alibabacloud-go/darabonba-openapi/client"
string_ "github.com/alibabacloud-go/darabonba-string/client" string_ "github.com/alibabacloud-go/darabonba-string/client"
aliecs "github.com/alibabacloud-go/ecs-20140526/v2/client" aliecs "github.com/alibabacloud-go/ecs-20140526/v2/client"
@ -14,6 +11,9 @@ import (
"github.com/alibabacloud-go/tea/tea" "github.com/alibabacloud-go/tea/tea"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
var aliClientMutex sync.Mutex var aliClientMutex sync.Mutex

View File

@ -10,10 +10,10 @@ package ecser
// awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2" // awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
// "github.com/pkg/errors" // "github.com/pkg/errors"
// //
// "github.com/JCCE-nudt/PCM/common/tenanter" // "gitlink.org.cn/JCCE/PCM/common/tenanter"
// //
// "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" // "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
// "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" // "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
//) //)
// //
//type AwsEcs struct { //type AwsEcs struct {

View File

@ -3,9 +3,9 @@ package ecser
import ( import (
"context" "context"
"github.com/JCCE-nudt/PCM/common/tenanter" "gitlink.org.cn/JCCE/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/pkg/errors" "github.com/pkg/errors"

View File

@ -2,9 +2,9 @@ package ecser
import ( import (
"context" "context"
"github.com/JCCE-nudt/PCM/common/tenanter" "gitlink.org.cn/JCCE/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"testing" "testing"
) )

View File

@ -3,14 +3,14 @@ package ecser
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/harvester/harvester/pkg/apis/harvesterhci.io/v1beta1" "github.com/harvester/harvester/pkg/apis/harvesterhci.io/v1beta1"
harvClient "github.com/harvester/harvester/pkg/generated/clientset/versioned" harvClient "github.com/harvester/harvester/pkg/generated/clientset/versioned"
"github.com/longhorn/longhorn-manager/util" "github.com/longhorn/longhorn-manager/util"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource" "k8s.io/apimachinery/pkg/api/resource"
k8smetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8smetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -4,9 +4,6 @@ import (
"context" "context"
"strconv" "strconv"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
string_ "github.com/alibabacloud-go/darabonba-string/client" string_ "github.com/alibabacloud-go/darabonba-string/client"
util "github.com/alibabacloud-go/tea-utils/service" util "github.com/alibabacloud-go/tea-utils/service"
"github.com/alibabacloud-go/tea/tea" "github.com/alibabacloud-go/tea/tea"
@ -19,6 +16,9 @@ import (
iammodel "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model" iammodel "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model"
iamregion "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/region" iamregion "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/region"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
type HuaweiEcs struct { type HuaweiEcs struct {

View File

@ -1,8 +1,8 @@
package ecser package ecser
import ( import (
"github.com/JCCE-nudt/PCM/common/tenanter" "gitlink.org.cn/JCCE/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"os" "os"
"testing" "testing"
) )

View File

@ -4,9 +4,6 @@ import (
"context" "context"
"strconv" "strconv"
"github.com/JCCE-nudt/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
string_ "github.com/alibabacloud-go/darabonba-string/client" string_ "github.com/alibabacloud-go/darabonba-string/client"
util "github.com/alibabacloud-go/tea-utils/service" util "github.com/alibabacloud-go/tea-utils/service"
"github.com/alibabacloud-go/tea/tea" "github.com/alibabacloud-go/tea/tea"
@ -15,6 +12,9 @@ import (
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
cvm "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm/v20170312" cvm "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm/v20170312"
"gitlink.org.cn/JCCE/PCM/common/tenanter"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
type TencentCvm struct { type TencentCvm struct {

View File

@ -2,9 +2,9 @@ package server
import ( import (
"context" "context"
"github.com/JCCE-nudt/PCM/lan_trans/idl/demo" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/demo"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
) )
type Server struct { type Server struct {

View File

@ -3,8 +3,8 @@ package server
import ( import (
"context" "context"
"github.com/JCCE-nudt/PCM/adaptor/vm/server/ecs" "gitlink.org.cn/JCCE/PCM/adaptor/vm/server/ecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"github.com/golang/glog" "github.com/golang/glog"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"

View File

@ -2,9 +2,9 @@ package server
import ( import (
"context" "context"
"github.com/JCCE-nudt/PCM/adaptor/pod/server" "gitlink.org.cn/JCCE/PCM/adaptor/pod/server"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"github.com/golang/glog" "github.com/golang/glog"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"

View File

@ -1,7 +1,7 @@
package tenanter package tenanter
import ( import (
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"os" "os"
"testing" "testing"
) )

View File

@ -3,7 +3,7 @@ package tenanter
import ( import (
"strings" "strings"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -3,7 +3,7 @@ package tenanter
import ( import (
"testing" "testing"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
) )
func TestGetAllRegionIds(t *testing.T) { func TestGetAllRegionIds(t *testing.T) {

View File

@ -3,8 +3,8 @@ package tenanter
import ( import (
"encoding/json" "encoding/json"
"flag" "flag"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
"github.com/golang/glog" "github.com/golang/glog"
"gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
"io/ioutil" "io/ioutil"
"os" "os"
"sync" "sync"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
pcm_pod_ali "github.com/JCCE-nudt/PCM/adaptor/pod/server/ali"
"github.com/alibabacloud-go/tea/tea" "github.com/alibabacloud-go/tea/tea"
pcm_pod_ali "gitlink.org.cn/JCCE/PCM/adaptor/pod/server/ali"
"os" "os"
) )

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/JCCE-nudt/PCM module gitlink.org.cn/JCCE/PCM
go 1.17 go 1.17

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
package demo; package demo;
option go_package = "github.com/JCCE-nudt/PCM/lan_trans/gen/idl/demo"; option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/gen/idl/demo";
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "protoc-gen-openapiv2/options/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
package pbecs; package pbecs;
option go_package = "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs"; option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs";
import "idl/pbtenant/tenant.proto"; import "idl/pbtenant/tenant.proto";
import "google/api/annotations.proto"; import "google/api/annotations.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
package pbpod; package pbpod;
option go_package = "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"; option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod";
import "idl/pbtenant/tenant.proto"; import "idl/pbtenant/tenant.proto";
import "google/api/annotations.proto"; import "google/api/annotations.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
package pbtenant; package pbtenant;
option go_package = "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"; option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant";
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "protoc-gen-openapiv2/options/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto";
@ -173,7 +173,7 @@ service TenantService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = {
description : "所有云租户的认证服务" description : "所有云租户的认证服务"
external_docs : { external_docs : {
url : "https://github.com/JCCE-nudt/PCM" url : "https://gitlink.org.cn/JCCE/PCM"
description: "Find out more about PCM" description: "Find out more about PCM"
} }
}; };

View File

@ -7,7 +7,7 @@
package pbecs package pbecs
import ( import (
pbtenant "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" pbtenant "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
_ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"

View File

@ -7,7 +7,7 @@
package pbpod package pbpod
import ( import (
pbtenant "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" pbtenant "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
_ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"

10
main.go
View File

@ -3,11 +3,11 @@ package main
import ( import (
"context" "context"
"flag" "flag"
"github.com/JCCE-nudt/PCM/common/server" "gitlink.org.cn/JCCE/PCM/common/server"
"github.com/JCCE-nudt/PCM/common/tenanter" "gitlink.org.cn/JCCE/PCM/common/tenanter"
"github.com/JCCE-nudt/PCM/lan_trans/idl/demo" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/demo"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
"github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
"net" "net"
"net/http" "net/http"