mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Rewrite imports to use forks files on gitlab not use githubs.
This commit is contained in:
@@ -14,8 +14,8 @@ import (
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/treeder/functions/api/models"
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoreutil"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoreutil"
|
||||
)
|
||||
|
||||
type BoltDatastore struct {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoretest"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoretest"
|
||||
)
|
||||
|
||||
const tmpBolt = "/tmp/func_test_bolt.db"
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"net/url"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/treeder/functions/api/datastore/bolt"
|
||||
"github.com/treeder/functions/api/datastore/mysql"
|
||||
"github.com/treeder/functions/api/datastore/postgres"
|
||||
"github.com/treeder/functions/api/datastore/redis"
|
||||
"github.com/treeder/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/bolt"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/mysql"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/postgres"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/redis"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
)
|
||||
|
||||
func New(dbURL string) (models.Datastore, error) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"log"
|
||||
"testing"
|
||||
|
||||
"github.com/treeder/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
@@ -3,7 +3,7 @@ package datastoreutil
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/treeder/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
)
|
||||
|
||||
// Datastore is a copy of models.Datastore, with additional comments on parameter guarantees.
|
||||
|
||||
@@ -3,8 +3,8 @@ package datastore
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoreutil"
|
||||
"github.com/treeder/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoreutil"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
)
|
||||
|
||||
type mock struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package datastore
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoretest"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoretest"
|
||||
)
|
||||
|
||||
func TestDatastore(t *testing.T) {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/go-sql-driver/mysql"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoreutil"
|
||||
"github.com/treeder/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoreutil"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
)
|
||||
|
||||
const routesTableCreate = `CREATE TABLE IF NOT EXISTS routes (
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoretest"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoretest"
|
||||
)
|
||||
|
||||
const tmpMysql = "mysql://root:root@tcp(%v:3307)/funcs"
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
"bytes"
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoreutil"
|
||||
"github.com/treeder/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoreutil"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
"github.com/lib/pq"
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoretest"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoretest"
|
||||
)
|
||||
|
||||
const tmpPostgres = "postgres://postgres@%v:15432/funcs?sslmode=disable"
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/garyburd/redigo/redis"
|
||||
"github.com/treeder/functions/api/models"
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoreutil"
|
||||
"gitlab.oracledx.com/odx/functions/api/models"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoreutil"
|
||||
)
|
||||
|
||||
type RedisDataStore struct {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/garyburd/redigo/redis"
|
||||
"github.com/treeder/functions/api/datastore/internal/datastoretest"
|
||||
"gitlab.oracledx.com/odx/functions/api/datastore/internal/datastoretest"
|
||||
)
|
||||
|
||||
const tmpRedis = "redis://%v:6301/"
|
||||
|
||||
Reference in New Issue
Block a user