Skip to content

Commit

Permalink
Merge branch 'changeimports' into 'dev'
Browse files Browse the repository at this point in the history
update imports



See merge request !121
  • Loading branch information
ldxdl committed Jul 12, 2018
2 parents a8c09ad + 8ee967b commit 049270d
Show file tree
Hide file tree
Showing 141 changed files with 568 additions and 702 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -2,8 +2,8 @@ SHELL = /bin/bash

TARGET = mosnd
CONFIG_FILE = mosn_config.json
GIT_USER = afe
PROJECT_NAME = gitlab.alipay-inc.com/${GIT_USER}/mosn
GIT_USER = alipay
PROJECT_NAME = github.com/${GIT_USER}/sofamosn

MAJOR_VERSION = $(shell cat VERSION)
GIT_VERSION = $(shell git log -1 --pretty=format:%h)
Expand All @@ -21,7 +21,7 @@ RPM_SRC_DIR = ${RPM_TAR_NAME}-${RPM_VERSION}
RPM_TAR_FILE = ${RPM_SRC_DIR}.tar.gz

ut-local:
go test ./...
go test ./pkg/...

unit-test:
docker build --rm -t ${BUILD_IMAGE} contrib/builder/binary
Expand Down
2 changes: 1 addition & 1 deletion contrib/builder/image/Dockerfile
Expand Up @@ -2,7 +2,7 @@ FROM acs-reg.alipay.com/alipay/alios6u2:1.0.1-4165050
MAINTAINER xiaodong.dxd@alibaba-inc.com

ENV TMP_FOLDER /tmp
ENV GIT_USER afe
ENV GIT_USER alipay
ENV MOSN_PREFIX /home/admin/mosn
ENV PATH $MOSN_PREFIX/sbin:$PATH

Expand Down
2 changes: 1 addition & 1 deletion contrib/builder/rpm/mosnd.spec
Expand Up @@ -6,7 +6,7 @@ License: MIT
Group: Tools/Docker
Packager: ant-frontend <o_dept_55122@list.alibaba-inc.com>
Vendor: Alipay.com
Summary: afe mosn agent
Summary: alipay sofamosn

%define _homedir /home/admin/mosn

Expand Down
12 changes: 6 additions & 6 deletions pkg/config/callback.go
Expand Up @@ -20,12 +20,12 @@ import (
"errors"

pb "github.com/envoyproxy/go-control-plane/envoy/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/server"
"gitlab.alipay-inc.com/afe/mosn/pkg/server/config/proxy"
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
clusterAdapter "gitlab.alipay-inc.com/afe/mosn/pkg/upstream/cluster"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/server"
"github.com/alipay/sofamosn/pkg/server/config/proxy"
"github.com/alipay/sofamosn/pkg/types"
clusterAdapter "github.com/alipay/sofamosn/pkg/upstream/cluster"
)

func SetGlobalStreamFilter(globalStreamFilters []types.StreamFilterChainFactory) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Expand Up @@ -26,7 +26,7 @@ import (
"strings"
"time"

"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/api/v2"
)

//global instance for load & dump
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/configmanager.go
Expand Up @@ -17,8 +17,8 @@
package config

import (
"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/log"
)

// dumper provides basic operation with mosn elements, like 'cluster', to write back the config file with dynamic changes
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/configmanager_test.go
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/api/v2"
)

func Test_convertClusterHealthCheck(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions pkg/config/convertxds.go
Expand Up @@ -35,10 +35,10 @@ import (
xdsutil "github.com/envoyproxy/go-control-plane/pkg/util"
"github.com/fatih/structs"
"github.com/gogo/protobuf/types"
"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/protocol"
xdsxproxy "gitlab.alipay-inc.com/afe/mosn/pkg/xds-config-model/filter/network/x_proxy/v2"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/protocol"
xdsxproxy "github.com/alipay/sofamosn/pkg/xds-config-model/filter/network/x_proxy/v2"
)

var supportFilter map[string]bool = map[string]bool{
Expand Down
64 changes: 0 additions & 64 deletions pkg/config/dump_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/config/dumper.go
Expand Up @@ -19,7 +19,7 @@ package config
import (
"encoding/json"

"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"github.com/alipay/sofamosn/pkg/log"

"io/ioutil"
"sync"
Expand Down
8 changes: 4 additions & 4 deletions pkg/config/parser.go
Expand Up @@ -21,10 +21,10 @@ import (
"net"
"strings"

"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/server"
"gitlab.alipay-inc.com/afe/mosn/pkg/protocol"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/server"
"github.com/alipay/sofamosn/pkg/protocol"

"time"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/parser_test.go
Expand Up @@ -23,7 +23,7 @@ import (

"encoding/json"

"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/api/v2"
)

func TestParseClusterHealthCheckConf(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/filter/accept/original_dst/original_dst.go
Expand Up @@ -3,8 +3,8 @@ package original_dst
import (
"errors"
"fmt"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/types"
__tl "log"
"net"
"syscall"
Expand Down
2 changes: 1 addition & 1 deletion pkg/filter/accept/original_dst/types.go
@@ -1,7 +1,7 @@
package original_dst

import (
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/types"
)

type Original_Dst interface {
Expand Down
8 changes: 4 additions & 4 deletions pkg/filter/factory.go
Expand Up @@ -17,10 +17,10 @@
package filter

import (
"gitlab.alipay-inc.com/afe/mosn/pkg/filter/stream/faultinject"
"gitlab.alipay-inc.com/afe/mosn/pkg/filter/stream/healthcheck/sofarpc"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/filter/stream/faultinject"
"github.com/alipay/sofamosn/pkg/filter/stream/healthcheck/sofarpc"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/types"
)

var creatorFactory map[string]StreamFilterFactoryCreator
Expand Down
4 changes: 2 additions & 2 deletions pkg/filter/network/faultinject/faultinject.go
Expand Up @@ -17,8 +17,8 @@
package faultinject

import (
"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/types"
"math/rand"
"sync/atomic"
"time"
Expand Down
2 changes: 1 addition & 1 deletion pkg/filter/network/faultinject/types.go
Expand Up @@ -17,7 +17,7 @@
package faultinject

import (
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/types"
)

type FaultInjecter interface {
Expand Down
8 changes: 4 additions & 4 deletions pkg/filter/network/tcpproxy/proxy.go
Expand Up @@ -18,10 +18,10 @@ package tcpproxy

import (
"context"
"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/network"
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/network"
"github.com/alipay/sofamosn/pkg/types"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/filter/network/tcpproxy/types.go
Expand Up @@ -17,7 +17,7 @@
package tcpproxy

import (
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/types"
)

// ReadFilter
Expand Down
8 changes: 4 additions & 4 deletions pkg/filter/stream/faultinject/faultinject.go
Expand Up @@ -24,10 +24,10 @@ import (
"sync/atomic"
"time"

"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/config"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/config"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/types"
)

type faultInjectFilter struct {
Expand Down
12 changes: 6 additions & 6 deletions pkg/filter/stream/healthcheck/sofarpc/healthcheck.go
Expand Up @@ -18,12 +18,12 @@ package sofarpc

import (
"context"
"gitlab.alipay-inc.com/afe/mosn/pkg/api/v2"
"gitlab.alipay-inc.com/afe/mosn/pkg/config"
"gitlab.alipay-inc.com/afe/mosn/pkg/log"
"gitlab.alipay-inc.com/afe/mosn/pkg/protocol/sofarpc"
"gitlab.alipay-inc.com/afe/mosn/pkg/protocol/sofarpc/codec"
"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/api/v2"
"github.com/alipay/sofamosn/pkg/config"
"github.com/alipay/sofamosn/pkg/log"
"github.com/alipay/sofamosn/pkg/protocol/sofarpc"
"github.com/alipay/sofamosn/pkg/protocol/sofarpc/codec"
"github.com/alipay/sofamosn/pkg/types"
"reflect"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/filter/types.go
Expand Up @@ -16,6 +16,6 @@
*/
package filter

import "gitlab.alipay-inc.com/afe/mosn/pkg/types"
import "github.com/alipay/sofamosn/pkg/types"

type StreamFilterFactoryCreator func(config map[string]interface{}) (types.StreamFilterChainFactory, error)
2 changes: 1 addition & 1 deletion pkg/log/accesslog.go
Expand Up @@ -20,7 +20,7 @@ import (
"strconv"
"strings"

"gitlab.alipay-inc.com/afe/mosn/pkg/types"
"github.com/alipay/sofamosn/pkg/types"
"github.com/valyala/bytebufferpool"
)

Expand Down

0 comments on commit 049270d

Please sign in to comment.