Rewrite imports to use forks files on gitlab not use githubs.

This commit is contained in:
James
2017-05-16 11:06:32 -07:00
parent 014858143b
commit e4bb04887e
76 changed files with 154 additions and 154 deletions

View File

@@ -3,7 +3,7 @@ package server
import (
"context"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/models"
)
type AppListener interface {

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
func (s *Server) handleAppCreate(c *gin.Context) {

View File

@@ -5,9 +5,9 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
func (s *Server) handleAppDelete(c *gin.Context) {

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"gitlab.oracledx.com/odx/functions/api"
)
func (s *Server) handleAppGet(c *gin.Context) {

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/models"
)
func (s *Server) handleAppList(c *gin.Context) {

View File

@@ -9,10 +9,10 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/datastore"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/mqs"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
func setLogBuffer() *bytes.Buffer {

View File

@@ -5,9 +5,9 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
func (s *Server) handleAppUpdate(c *gin.Context) {

View File

@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/common"
"net/http"
)

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/models"
)
type ApiHandlerFunc func(w http.ResponseWriter, r *http.Request)

View File

@@ -8,7 +8,7 @@ package routecache
import (
"container/list"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/models"
)
// Cache holds an internal linkedlist for hotness management. It is not safe

View File

@@ -7,7 +7,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/models"
)
// Middleware is the interface required for implementing functions middlewar

View File

@@ -5,9 +5,9 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
func (s *Server) handleRouteCreate(c *gin.Context) {

View File

@@ -6,7 +6,7 @@ import (
"path"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"gitlab.oracledx.com/odx/functions/api"
)
func (s *Server) handleRouteDelete(c *gin.Context) {

View File

@@ -6,7 +6,7 @@ import (
"path"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"gitlab.oracledx.com/odx/functions/api"
)
func (s *Server) handleRouteGet(c *gin.Context) {

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/models"
)
func (s *Server) handleRouteList(c *gin.Context) {

View File

@@ -6,9 +6,9 @@ import (
"strings"
"testing"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"gitlab.oracledx.com/odx/functions/api/datastore"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/mqs"
)
func TestRouteCreate(t *testing.T) {

View File

@@ -6,9 +6,9 @@ import (
"path"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
func (s *Server) handleRouteUpdate(c *gin.Context) {

View File

@@ -14,11 +14,11 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner"
"gitlab.oracledx.com/odx/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/runner/common"
uuid "github.com/satori/go.uuid"
)

View File

@@ -9,12 +9,12 @@ import (
"testing"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/server/internal/routecache"
"gitlab.oracledx.com/odx/functions/api/datastore"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/mqs"
"gitlab.oracledx.com/odx/functions/api/runner"
"gitlab.oracledx.com/odx/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/server/internal/routecache"
)
func testRouterAsync(ds models.Datastore, mq models.MessageQueue, rnr *runner.Runner, tasks chan task.Request, enqueue models.Enqueue) *gin.Engine {

View File

@@ -2,7 +2,7 @@ package server
import (
"context"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/models"
)
type RunnerListener interface {

View File

@@ -7,11 +7,11 @@ import (
"strings"
"testing"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/datastore"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/mqs"
"gitlab.oracledx.com/odx/functions/api/runner"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
func testRunner(t *testing.T) (*runner.Runner, context.CancelFunc) {

View File

@@ -14,14 +14,14 @@ import (
"github.com/Sirupsen/logrus"
"github.com/ccirello/supervisor"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/server/internal/routecache"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api"
"gitlab.oracledx.com/odx/functions/api/datastore"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/mqs"
"gitlab.oracledx.com/odx/functions/api/runner"
"gitlab.oracledx.com/odx/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/server/internal/routecache"
"gitlab.oracledx.com/odx/functions/api/runner/common"
"github.com/spf13/viper"
)

View File

@@ -12,12 +12,12 @@ import (
"testing"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/server/internal/routecache"
"gitlab.oracledx.com/odx/functions/api/datastore"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/mqs"
"gitlab.oracledx.com/odx/functions/api/runner"
"gitlab.oracledx.com/odx/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/server/internal/routecache"
)
var tmpBolt = "/tmp/func_test_bolt.db"

View File

@@ -5,7 +5,7 @@ package server
import (
"sync"
"github.com/treeder/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/models"
)
// call is an in-flight or completed do call

View File

@@ -4,7 +4,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/treeder/functions/api/version"
"gitlab.oracledx.com/odx/functions/api/version"
)
func handleVersion(c *gin.Context) {