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 (
"errors"
"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/responses"
"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

View File

@ -18,13 +18,13 @@ package ali
import (
"errors"
"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/responses"
"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

View File

@ -1,11 +1,11 @@
package ali
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/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

View File

@ -18,13 +18,13 @@ package ali
import (
"errors"
"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/responses"
"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

View File

@ -6,10 +6,10 @@ import (
"fmt"
"sync"
"github.com/JCCE-nudt/PCM/adaptor/pod/service"
"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"
"gitlink.org.cn/JCCE/PCM/adaptor/pod/service"
"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"
"github.com/golang/glog"
"github.com/pkg/errors"

View File

@ -9,10 +9,10 @@ import (
"strconv"
"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"
"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

View File

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

View File

@ -3,11 +3,11 @@ package poder
import (
"context"
"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/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"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -2,9 +2,9 @@ package poder
import (
"context"
"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"
"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"
"github.com/golang/glog"
"github.com/pkg/errors"

View File

@ -7,14 +7,14 @@ import (
"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/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
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

View File

@ -4,12 +4,12 @@ import (
"context"
"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/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

View File

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

View File

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

View File

@ -4,9 +4,6 @@ import (
"context"
"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"
string_ "github.com/alibabacloud-go/darabonba-string/client"
aliecs "github.com/alibabacloud-go/ecs-20140526/v2/client"
@ -14,6 +11,9 @@ import (
"github.com/alibabacloud-go/tea/tea"
"github.com/golang/glog"
"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

View File

@ -10,10 +10,10 @@ package ecser
// awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
// "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"
// "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"
// "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
// "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"
//)
//
//type AwsEcs struct {

View File

@ -3,9 +3,9 @@ package ecser
import (
"context"
"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"
"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"
"github.com/golang/glog"
"github.com/pkg/errors"

View File

@ -2,9 +2,9 @@ package ecser
import (
"context"
"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"
"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"
"testing"
)

View File

@ -3,14 +3,14 @@ package ecser
import (
"context"
"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"
harvClient "github.com/harvester/harvester/pkg/generated/clientset/versioned"
"github.com/longhorn/longhorn-manager/util"
"github.com/pkg/errors"
"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"
"k8s.io/apimachinery/pkg/api/resource"
k8smetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -4,9 +4,6 @@ import (
"context"
"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"
util "github.com/alibabacloud-go/tea-utils/service"
"github.com/alibabacloud-go/tea/tea"
@ -19,6 +16,9 @@ import (
iammodel "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model"
iamregion "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/region"
"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 {

View File

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

View File

@ -4,9 +4,6 @@ import (
"context"
"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"
util "github.com/alibabacloud-go/tea-utils/service"
"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/profile"
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 {

View File

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

View File

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

View File

@ -2,9 +2,9 @@ package server
import (
"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"
"google.golang.org/grpc/codes"

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
package main
import (
pcm_pod_ali "github.com/JCCE-nudt/PCM/adaptor/pod/server/ali"
"github.com/alibabacloud-go/tea/tea"
pcm_pod_ali "gitlink.org.cn/JCCE/PCM/adaptor/pod/server/ali"
"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

View File

@ -1,7 +1,7 @@
syntax = "proto3";
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 "protoc-gen-openapiv2/options/annotations.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3";
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 "google/api/annotations.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3";
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 "google/api/annotations.proto";

View File

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

View File

@ -7,7 +7,7 @@
package pbecs
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"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"

View File

@ -7,7 +7,7 @@
package pbpod
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"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"

10
main.go
View File

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