Refactor: move model/ to server/model/ (#366)

This commit is contained in:
6543 2021-09-27 19:51:55 +02:00 committed by GitHub
parent 06d83c7b0e
commit a94807efeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
121 changed files with 97 additions and 97 deletions

View file

@ -21,8 +21,8 @@ import (
"github.com/dimfeld/httptreemux" "github.com/dimfeld/httptreemux"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto" "github.com/prometheus/client_golang/prometheus/promauto"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/plugins/environments" "github.com/woodpecker-ci/woodpecker/server/plugins/environments"
"github.com/woodpecker-ci/woodpecker/server/plugins/registry" "github.com/woodpecker-ci/woodpecker/server/plugins/registry"
"github.com/woodpecker-ci/woodpecker/server/plugins/secrets" "github.com/woodpecker-ci/woodpecker/server/plugins/secrets"

View file

@ -23,8 +23,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/store" "github.com/woodpecker-ci/woodpecker/server/store"
) )

View file

@ -29,8 +29,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/queue" "github.com/woodpecker-ci/woodpecker/server/queue"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"

View file

@ -31,7 +31,7 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/shared/token" "github.com/woodpecker-ci/woodpecker/shared/token"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml" "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml"

View file

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

View file

@ -17,8 +17,8 @@ package api
import ( import (
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

View file

@ -23,8 +23,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/store" "github.com/woodpecker-ci/woodpecker/server/store"

View file

@ -17,8 +17,8 @@ package api
import ( import (
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

View file

@ -22,9 +22,9 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/logging" "github.com/woodpecker-ci/woodpecker/server/logging"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/pubsub" "github.com/woodpecker-ci/woodpecker/server/pubsub"
"github.com/woodpecker-ci/woodpecker/server/router/middleware/session" "github.com/woodpecker-ci/woodpecker/server/router/middleware/session"
"github.com/woodpecker-ci/woodpecker/server/store" "github.com/woodpecker-ci/woodpecker/server/store"

View file

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

View file

@ -21,7 +21,7 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/store" "github.com/woodpecker-ci/woodpecker/server/store"
) )

View file

@ -20,8 +20,8 @@ package server
import ( import (
"time" "time"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server/logging" "github.com/woodpecker-ci/woodpecker/server/logging"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/pubsub" "github.com/woodpecker-ci/woodpecker/server/pubsub"
"github.com/woodpecker-ci/woodpecker/server/queue" "github.com/woodpecker-ci/woodpecker/server/queue"
) )

View file

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

View file

@ -1,7 +1,7 @@
package environments package environments
import ( import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"strings" "strings"
) )

View file

@ -1,7 +1,7 @@
package registry package registry
import ( import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
type combined struct { type combined struct {

View file

@ -1,7 +1,7 @@
package registry package registry
import ( import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
type db struct { type db struct {

View file

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"github.com/docker/cli/cli/config/configfile" "github.com/docker/cli/cli/config/configfile"
"github.com/docker/cli/cli/config/types" "github.com/docker/cli/cli/config/types"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"os" "os"
"strings" "strings"
) )

View file

@ -1,7 +1,7 @@
package secrets package secrets
import ( import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
type builtin struct { type builtin struct {

View file

@ -1,7 +1,7 @@
package sender package sender
import ( import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
type builtin struct { type builtin struct {

View file

@ -3,7 +3,7 @@ package sender
import ( import (
"fmt" "fmt"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/plugins/internal" "github.com/woodpecker-ci/woodpecker/server/plugins/internal"
) )

View file

@ -19,8 +19,8 @@ import (
"net/http" "net/http"
"net/url" "net/url"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal" "github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal"

View file

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

View file

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

View file

@ -18,7 +18,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal" "github.com/woodpecker-ci/woodpecker/server/remote/bitbucket/internal"
"github.com/franela/goblin" "github.com/franela/goblin"

View file

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

View file

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

View file

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

View file

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

View file

@ -27,7 +27,7 @@ import (
"github.com/mrjones/oauth" "github.com/mrjones/oauth"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
const ( const (

View file

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

View file

@ -20,8 +20,8 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/remote/coding/internal" "github.com/woodpecker-ci/woodpecker/server/remote/coding/internal"

View file

@ -20,7 +20,7 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/coding/fixtures" "github.com/woodpecker-ci/woodpecker/server/remote/coding/fixtures"
"github.com/franela/goblin" "github.com/franela/goblin"

View file

@ -22,7 +22,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
const ( const (

View file

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

View file

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

View file

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

View file

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

View file

@ -23,7 +23,7 @@ import (
"time" "time"
"code.gitea.io/sdk/gitea" "code.gitea.io/sdk/gitea"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
// helper function that converts a Gitea repository to a Drone repository. // helper function that converts a Gitea repository to a Drone repository.

View file

@ -20,7 +20,7 @@ import (
"code.gitea.io/sdk/gitea" "code.gitea.io/sdk/gitea"
"github.com/franela/goblin" "github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/gitea/fixtures" "github.com/woodpecker-ci/woodpecker/server/remote/gitea/fixtures"
) )

View file

@ -19,7 +19,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
const ( const (

View file

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

View file

@ -18,7 +18,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/google/go-github/github" "github.com/google/go-github/github"
) )

View file

@ -18,7 +18,7 @@ import (
"testing" "testing"
"github.com/google/go-github/github" "github.com/google/go-github/github"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/franela/goblin" "github.com/franela/goblin"
) )

View file

@ -24,8 +24,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/google/go-github/github" "github.com/google/go-github/github"

View file

@ -18,7 +18,7 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/github/fixtures" "github.com/woodpecker-ci/woodpecker/server/remote/github/fixtures"
"github.com/franela/goblin" "github.com/franela/goblin"

View file

@ -21,7 +21,7 @@ import (
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
const ( const (

View file

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

View file

@ -24,8 +24,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/shared/oauth2" "github.com/woodpecker-ci/woodpecker/shared/oauth2"

View file

@ -20,7 +20,7 @@ import (
"testing" "testing"
"github.com/franela/goblin" "github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab/testdata" "github.com/woodpecker-ci/woodpecker/server/remote/gitlab/testdata"
) )

View file

@ -24,8 +24,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/shared/oauth2" "github.com/woodpecker-ci/woodpecker/shared/oauth2"

View file

@ -20,7 +20,7 @@ import (
"testing" "testing"
"github.com/franela/goblin" "github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/gitlab3/testdata" "github.com/woodpecker-ci/woodpecker/server/remote/gitlab3/testdata"
) )

View file

@ -23,7 +23,7 @@ import (
"strings" "strings"
"github.com/gogits/go-gogs-client" "github.com/gogits/go-gogs-client"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
) )

View file

@ -18,7 +18,7 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/gogs/fixtures" "github.com/woodpecker-ci/woodpecker/server/remote/gogs/fixtures"
"github.com/franela/goblin" "github.com/franela/goblin"

View file

@ -23,7 +23,7 @@ import (
"time" "time"
"github.com/gogits/go-gogs-client" "github.com/gogits/go-gogs-client"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
// helper function that converts a Gogs repository to a Drone repository. // helper function that converts a Gogs repository to a Drone repository.

View file

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

View file

@ -18,7 +18,7 @@ import (
"io" "io"
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
const ( const (

View file

@ -6,7 +6,7 @@ import (
http "net/http" http "net/http"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
model "github.com/woodpecker-ci/woodpecker/model" model "github.com/woodpecker-ci/woodpecker/server/model"
remote "github.com/woodpecker-ci/woodpecker/server/remote" remote "github.com/woodpecker-ci/woodpecker/server/remote"
) )

View file

@ -19,7 +19,7 @@ package remote
import ( import (
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View file

@ -15,7 +15,7 @@
package middleware package middleware
import ( import (
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/urfave/cli" "github.com/urfave/cli"

View file

@ -18,7 +18,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/store" "github.com/woodpecker-ci/woodpecker/server/store"

View file

@ -17,7 +17,7 @@ package session
import ( import (
"net/http" "net/http"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/store" "github.com/woodpecker-ci/woodpecker/server/store"
"github.com/woodpecker-ci/woodpecker/shared/token" "github.com/woodpecker-ci/woodpecker/shared/token"

View file

@ -17,7 +17,7 @@ package shared
import ( import (
"time" "time"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
type UpdateBuildStore interface { type UpdateBuildStore interface {

View file

@ -19,7 +19,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
type mockUpdateBuildStore struct { type mockUpdateBuildStore struct {

View file

@ -5,7 +5,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
) )

View file

@ -5,7 +5,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/remote/mocks" "github.com/woodpecker-ci/woodpecker/server/remote/mocks"
"github.com/woodpecker-ci/woodpecker/server/shared" "github.com/woodpecker-ci/woodpecker/server/shared"

View file

@ -23,7 +23,6 @@ import (
"strings" "strings"
"github.com/drone/envsubst" "github.com/drone/envsubst"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/pipeline/backend" "github.com/woodpecker-ci/woodpecker/pipeline/backend"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend" "github.com/woodpecker-ci/woodpecker/pipeline/frontend"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml" "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml"
@ -31,6 +30,7 @@ import (
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/linter" "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/linter"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/matrix" "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/matrix"
"github.com/woodpecker-ci/woodpecker/server" "github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
) )

View file

@ -18,7 +18,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
) )

View file

@ -17,8 +17,8 @@ package shared
import ( import (
"time" "time"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc" "github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"github.com/woodpecker-ci/woodpecker/server/model"
) )
type UpdateProcStore interface { type UpdateProcStore interface {

View file

@ -18,8 +18,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/woodpecker-ci/woodpecker/model"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc" "github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"github.com/woodpecker-ci/woodpecker/server/model"
) )
type mockUpdateProcStore struct { type mockUpdateProcStore struct {

View file

@ -17,7 +17,7 @@ package shared
import ( import (
"time" "time"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote" "github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/woodpecker-ci/woodpecker/server/store" "github.com/woodpecker-ci/woodpecker/server/store"
) )

View file

@ -19,7 +19,7 @@ import (
"time" "time"
"github.com/russross/meddler" "github.com/russross/meddler"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/store/datastore/sql" "github.com/woodpecker-ci/woodpecker/server/store/datastore/sql"
) )

View file

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

View file

@ -18,7 +18,7 @@ import (
gosql "database/sql" gosql "database/sql"
"github.com/russross/meddler" "github.com/russross/meddler"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/store/datastore/sql" "github.com/woodpecker-ci/woodpecker/server/store/datastore/sql"
) )

View file

@ -17,7 +17,7 @@ package datastore
import ( import (
"testing" "testing"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
func TestConfig(t *testing.T) { func TestConfig(t *testing.T) {

View file

@ -19,7 +19,7 @@ import (
"io" "io"
"io/ioutil" "io/ioutil"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/store/datastore/sql" "github.com/woodpecker-ci/woodpecker/server/store/datastore/sql"
"github.com/russross/meddler" "github.com/russross/meddler"

View file

@ -19,7 +19,7 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/woodpecker-ci/woodpecker/model" "github.com/woodpecker-ci/woodpecker/server/model"
) )
func TestFileFind(t *testing.T) { func TestFileFind(t *testing.T) {

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