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

@@ -13,9 +13,9 @@ import (
"time"
"github.com/Sirupsen/logrus"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
func getTask(ctx context.Context, url string) (*models.Task, error) {

View File

@@ -15,9 +15,9 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"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/models"
"gitlab.oracledx.com/odx/functions/api/mqs"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
func setLogBuffer() *bytes.Buffer {

View File

@@ -15,7 +15,7 @@
package common
import (
"github.com/treeder/functions/api/runner/common/stats"
"gitlab.oracledx.com/odx/functions/api/runner/common/stats"
)
// An Environment is a long lived object that carries around 'configuration'

View File

@@ -32,9 +32,9 @@ import (
manifest "github.com/docker/distribution/manifest/schema1"
"github.com/fsouza/go-dockerclient"
"github.com/heroku/docker-registry-client/registry"
"github.com/treeder/functions/api/runner/common"
"github.com/treeder/functions/api/runner/common/stats"
"github.com/treeder/functions/api/runner/drivers"
"gitlab.oracledx.com/odx/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/runner/common/stats"
"gitlab.oracledx.com/odx/functions/api/runner/drivers"
)
const hubURL = "https://registry.hub.docker.com"

View File

@@ -28,7 +28,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/fsouza/go-dockerclient"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
const (

View File

@@ -23,8 +23,8 @@ import (
"testing"
"time"
"github.com/treeder/functions/api/runner/common"
"github.com/treeder/functions/api/runner/drivers"
"gitlab.oracledx.com/odx/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/runner/drivers"
"github.com/vrischmann/envconfig"
)

View File

@@ -18,7 +18,7 @@ import (
"context"
"fmt"
"github.com/treeder/functions/api/runner/drivers"
"gitlab.oracledx.com/odx/functions/api/runner/drivers"
)
func New() drivers.Driver {

View File

@@ -6,7 +6,7 @@ import (
"context"
"github.com/Sirupsen/logrus"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
type FuncLogger interface {

View File

@@ -5,7 +5,7 @@ import (
"time"
"github.com/Sirupsen/logrus"
"github.com/treeder/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/runner/common"
)
type MetricLogger interface {

View File

@@ -3,7 +3,7 @@ package protocol
import (
"context"
"github.com/treeder/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
// DefaultProtocol is the protocol used by cold-containers

View File

@@ -5,8 +5,8 @@ import (
"errors"
"io"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
var errInvalidProtocol = errors.New("Invalid Protocol")

View File

@@ -10,8 +10,8 @@ import (
"net/http/httputil"
"time"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
// HTTPProtocol converts stdin/stdout streams into HTTP/1.1 compliant

View File

@@ -14,12 +14,12 @@ import (
"time"
"github.com/Sirupsen/logrus"
"github.com/treeder/functions/api/runner/common"
"github.com/treeder/functions/api/runner/drivers"
driverscommon "github.com/treeder/functions/api/runner/drivers"
"github.com/treeder/functions/api/runner/drivers/docker"
"github.com/treeder/functions/api/runner/drivers/mock"
"github.com/treeder/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/runner/common"
"gitlab.oracledx.com/odx/functions/api/runner/drivers"
driverscommon "gitlab.oracledx.com/odx/functions/api/runner/drivers"
"gitlab.oracledx.com/odx/functions/api/runner/drivers/docker"
"gitlab.oracledx.com/odx/functions/api/runner/drivers/mock"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
type Runner struct {

View File

@@ -8,8 +8,8 @@ import (
"testing"
"time"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/models"
"gitlab.oracledx.com/odx/functions/api/runner/task"
)
func TestRunnerHello(t *testing.T) {

View File

@@ -11,8 +11,8 @@ import (
"github.com/moby/moby/cli/config/configfile"
docker "github.com/fsouza/go-dockerclient"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/runner/drivers"
"gitlab.oracledx.com/odx/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/runner/drivers"
)
var registries dockerRegistries

View File

@@ -5,7 +5,7 @@ import (
"io"
"time"
"github.com/treeder/functions/api/runner/drivers"
"gitlab.oracledx.com/odx/functions/api/runner/drivers"
)
type Config struct {

View File

@@ -9,9 +9,9 @@ import (
"time"
"github.com/Sirupsen/logrus"
"github.com/treeder/functions/api/runner/protocol"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/runner/drivers"
"gitlab.oracledx.com/odx/functions/api/runner/protocol"
"gitlab.oracledx.com/odx/functions/api/runner/task"
"gitlab.oracledx.com/odx/functions/api/runner/drivers"
)
// hot functions - theory of operation