1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

Refactor: move remote/ to server/remote/ (#344)

This commit is contained in:
Jacob Floyd 2021-09-23 11:25:51 -05:00 committed by GitHub
parent 8584bbd073
commit 780c902a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
111 changed files with 63 additions and 63 deletions

View File

@ -36,10 +36,10 @@ import (
"github.com/woodpecker-ci/woodpecker/cncd/logging"
"github.com/woodpecker-ci/woodpecker/cncd/pipeline/pipeline/rpc/proto"
"github.com/woodpecker-ci/woodpecker/cncd/pubsub"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
woodpeckerGrpcServer "github.com/woodpecker-ci/woodpecker/server/grpc"
"github.com/woodpecker-ci/woodpecker/server/plugins/sender"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/router"
"github.com/woodpecker-ci/woodpecker/server/router/middleware"
"github.com/woodpecker-ci/woodpecker/server/store"

View File

@ -23,19 +23,19 @@ import (
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/woodpecker-ci/woodpecker/cncd/queue"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket"
"github.com/woodpecker-ci/woodpecker/remote/bitbucketserver"
"github.com/woodpecker-ci/woodpecker/remote/coding"
"github.com/woodpecker-ci/woodpecker/remote/gitea"
"github.com/woodpecker-ci/woodpecker/remote/github"
"github.com/woodpecker-ci/woodpecker/remote/gitlab"
"github.com/woodpecker-ci/woodpecker/remote/gitlab3"
"github.com/woodpecker-ci/woodpecker/remote/gogs"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/plugins/environments"
"github.com/woodpecker-ci/woodpecker/server/plugins/registry"
"github.com/woodpecker-ci/woodpecker/server/plugins/secrets"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucketserver"
"github.com/woodpecker-ci/woodpecker/server/remote/coding"
"github.com/woodpecker-ci/woodpecker/server/remote/gitea"
"github.com/woodpecker-ci/woodpecker/server/remote/github"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab3"
"github.com/woodpecker-ci/woodpecker/server/remote/gogs"
"github.com/woodpecker-ci/woodpecker/server/store"
"github.com/woodpecker-ci/woodpecker/server/store/datastore"
"github.com/woodpecker-ci/woodpecker/server/web"

View File

@ -31,8 +31,8 @@ import (
"github.com/sirupsen/logrus"
"github.com/woodpecker-ci/woodpecker/cncd/queue"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/shared"
"github.com/woodpecker-ci/woodpecker/server/store"

View File

@ -32,7 +32,6 @@ import (
"github.com/sirupsen/logrus"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/shared/token"
"github.com/woodpecker-ci/woodpecker/cncd/pipeline/pipeline/frontend/yaml"
@ -40,6 +39,7 @@ import (
"github.com/woodpecker-ci/woodpecker/cncd/pubsub"
"github.com/woodpecker-ci/woodpecker/cncd/queue"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/shared"
"github.com/woodpecker-ci/woodpecker/server/store"
)

View File

@ -21,8 +21,8 @@ import (
"github.com/gorilla/securecookie"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/store"
"github.com/woodpecker-ci/woodpecker/shared/httputil"
"github.com/woodpecker-ci/woodpecker/shared/token"

View File

@ -24,8 +24,8 @@ import (
"github.com/gorilla/securecookie"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/store"
"github.com/woodpecker-ci/woodpecker/shared/token"

View File

@ -25,7 +25,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/shared"
"github.com/woodpecker-ci/woodpecker/server/store"

View File

@ -41,7 +41,7 @@ import (
"github.com/woodpecker-ci/woodpecker/server/shared"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/store"
"github.com/woodpecker-ci/expr"

View File

@ -20,9 +20,9 @@ import (
"net/url"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket/internal"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal"
"golang.org/x/oauth2"
)

View File

@ -21,8 +21,8 @@ import (
"testing"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket/fixtures"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket/internal"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -21,7 +21,7 @@ import (
"strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket/internal"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal"
"golang.org/x/oauth2"
)

View File

@ -19,7 +19,7 @@ import (
"time"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket/internal"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal"
"github.com/franela/goblin"
"golang.org/x/oauth2"

View File

@ -20,7 +20,7 @@ import (
"net/http"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket/internal"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal"
)
const (

View File

@ -19,7 +19,7 @@ import (
"net/http"
"testing"
"github.com/woodpecker-ci/woodpecker/remote/bitbucket/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/fixtures"
"github.com/franela/goblin"
)

View File

@ -30,8 +30,8 @@ import (
"github.com/mrjones/oauth"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/remote/bitbucketserver/internal"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucketserver/internal"
)
const (

View File

@ -24,7 +24,7 @@ import (
"github.com/mrjones/oauth"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/bitbucketserver/internal"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucketserver/internal"
)
const (

View File

@ -20,7 +20,7 @@ import (
"github.com/franela/goblin"
"github.com/mrjones/oauth"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/bitbucketserver/internal"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucketserver/internal"
)
func Test_helper(t *testing.T) {

View File

@ -18,7 +18,7 @@ import (
"encoding/json"
"fmt"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/bitbucketserver/internal"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucketserver/internal"
"net/http"
)

View File

@ -21,9 +21,9 @@ import (
"strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/remote/coding/internal"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/remote/coding/internal"
"golang.org/x/net/context"
"golang.org/x/oauth2"

View File

@ -21,7 +21,7 @@ import (
"testing"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/coding/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/coding/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -21,7 +21,7 @@ import (
"testing"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/coding/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/coding/fixtures"
"github.com/franela/goblin"
)

View File

@ -21,7 +21,7 @@ import (
"net/url"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server/remote"
)
// IMPORTANT Gerrit support is not yet implemented. This file is a placeholder

View File

@ -28,7 +28,7 @@ import (
"code.gitea.io/sdk/gitea"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server/remote"
)
// Opts defines configuration options.

View File

@ -28,8 +28,8 @@ import (
"code.gitea.io/sdk/gitea"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"golang.org/x/oauth2"
)

View File

@ -21,7 +21,7 @@ import (
"github.com/franela/goblin"
"github.com/gin-gonic/gin"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/gitea/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/gitea/fixtures"
)
func Test_gitea(t *testing.T) {

View File

@ -21,7 +21,7 @@ import (
"code.gitea.io/sdk/gitea"
"github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/gitea/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/gitea/fixtures"
)
func Test_parse(t *testing.T) {

View File

@ -21,7 +21,7 @@ import (
"github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/gitea/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/gitea/fixtures"
)
func Test_parser(t *testing.T) {

View File

@ -25,8 +25,8 @@ import (
"strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/google/go-github/github"
"golang.org/x/net/context"

View File

@ -19,7 +19,7 @@ import (
"testing"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/github/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/github/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -21,7 +21,7 @@ import (
"github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/github/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/github/fixtures"
)
func Test_parser(t *testing.T) {

View File

@ -25,11 +25,11 @@ import (
"strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/shared/oauth2"
"github.com/woodpecker-ci/woodpecker/remote/gitlab/client"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab/client"
)
const DefaultScope = "api"

View File

@ -21,7 +21,7 @@ import (
"github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/gitlab/testdata"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab/testdata"
)
func Test_Gitlab(t *testing.T) {

View File

@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/woodpecker-ci/woodpecker/remote/gitlab/client"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab/client"
)
const (

View File

@ -25,11 +25,11 @@ import (
"strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/shared/oauth2"
"github.com/woodpecker-ci/woodpecker/remote/gitlab3/client"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab3/client"
)
const DefaultScope = "api"

View File

@ -21,7 +21,7 @@ import (
"github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/gitlab3/testdata"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab3/testdata"
)
func Test_Gitlab(t *testing.T) {

View File

@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/woodpecker-ci/woodpecker/remote/gitlab3/client"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab3/client"
)
const (

View File

@ -24,7 +24,7 @@ import (
"github.com/gogits/go-gogs-client"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote"
"github.com/woodpecker-ci/woodpecker/server/remote"
)
// Opts defines configuration options.

View File

@ -19,7 +19,7 @@ import (
"testing"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/gogs/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/gogs/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -19,7 +19,7 @@ import (
"testing"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/remote/gogs/fixtures"
"github.com/woodpecker-ci/woodpecker/server/remote/gogs/fixtures"
"github.com/franela/goblin"
"github.com/gogits/go-gogs-client"

Some files were not shown because too many files have changed in this diff Show More