Refactor imports, Add vendor/ as submodule (#5)

refact imports to github.xxx. update go.mod + go.sum

* removed vendor/ folder

* Added vendor/ submodule.

Moved dependencies that need to be vendored into separate repository.
	- https://github.com/spdfg/elektron-vendor
Added vendor/ as a submodule using the below command.
	- git submodule add https://github.com/spdfg/elektron-vendor vendor
If wanting to use vendor, run the following commands after cloning
elektron.
1. git submodule init
2. git submodule update

* added instructions to clone vendor/ submodule.

* updated module to spdfg. Refactored imports
This commit is contained in:
PRADYUMNA KAUSHIK 2019-10-31 14:32:46 -04:00 committed by GitHub
parent b4975900f6
commit e3caa90c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
704 changed files with 851 additions and 383502 deletions

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -23,9 +23,9 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"gitlab.com/spdf/elektron/def"
"gitlab.com/spdf/elektron/utilities/mesosUtils"
"gitlab.com/spdf/elektron/utilities/offerUtils"
"github.com/spdfg/elektron/def"
"github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdfg/elektron/utilities/offerUtils"
)
// Decides if to take an offer or not

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -23,9 +23,9 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"gitlab.com/spdf/elektron/def"
"gitlab.com/spdf/elektron/utilities/mesosUtils"
"gitlab.com/spdf/elektron/utilities/offerUtils"
"github.com/spdfg/elektron/def"
"github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdfg/elektron/utilities/offerUtils"
)
// Decides if to take an offer or not

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -29,10 +29,10 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
"github.com/mesos/mesos-go/api/v0/mesosutil"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"gitlab.com/spdf/elektron/def"
elekLogDef "gitlab.com/spdf/elektron/logging/def"
"gitlab.com/spdf/elektron/utilities"
"gitlab.com/spdf/elektron/utilities/schedUtils"
"github.com/spdfg/elektron/def"
elekLogDef "github.com/spdfg/elektron/logging/def"
"github.com/spdfg/elektron/utilities"
"github.com/spdfg/elektron/utilities/schedUtils"
)
type BaseScheduler struct {

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -23,9 +23,9 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"gitlab.com/spdf/elektron/def"
"gitlab.com/spdf/elektron/utilities/mesosUtils"
"gitlab.com/spdf/elektron/utilities/offerUtils"
"github.com/spdfg/elektron/def"
"github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdfg/elektron/utilities/offerUtils"
)
// Decides if to take an offer or not

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -23,8 +23,8 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"gitlab.com/spdf/elektron/def"
elekLogDef "gitlab.com/spdf/elektron/logging/def"
"github.com/spdfg/elektron/def"
elekLogDef "github.com/spdfg/elektron/logging/def"
)
// Implements mesos scheduler.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -21,9 +21,9 @@ package schedulers
import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"gitlab.com/spdf/elektron/def"
"gitlab.com/spdf/elektron/utilities/mesosUtils"
"gitlab.com/spdf/elektron/utilities/offerUtils"
"github.com/spdfg/elektron/def"
"github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdfg/elektron/utilities/offerUtils"
)
// Decides if to take an offer or not

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -23,11 +23,11 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/pkg/errors"
"gitlab.com/spdf/elektron/constants"
"gitlab.com/spdf/elektron/def"
elekLogDef "gitlab.com/spdf/elektron/logging/def"
"gitlab.com/spdf/elektron/utilities"
"gitlab.com/spdf/elektron/utilities/mesosUtils"
"github.com/spdfg/elektron/constants"
"github.com/spdfg/elektron/def"
elekLogDef "github.com/spdfg/elektron/logging/def"
"github.com/spdfg/elektron/utilities"
"github.com/spdfg/elektron/utilities/mesosUtils"
"log"
)

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -25,8 +25,8 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"gitlab.com/spdf/elektron/def"
elekLogDef "gitlab.com/spdf/elektron/logging/def"
"github.com/spdfg/elektron/def"
elekLogDef "github.com/spdfg/elektron/logging/def"
)
type SchedPolicyContext interface {

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf
// Copyright (C) 2018 spdfg
//
// This file is part of Elektron.
//
@ -25,7 +25,7 @@ import (
sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/pkg/errors"
"gitlab.com/spdf/elektron/utilities"
"github.com/spdfg/elektron/utilities"
)
// Names of different scheduling policies.