refact imports to github.xxx. update go.mod + go.sum
This commit is contained in:
parent
28d10d9d39
commit
0f36d30d46
23 changed files with 102 additions and 105 deletions
|
@ -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/spdf/elektron/def"
|
||||
"github.com/spdf/elektron/utilities/mesosUtils"
|
||||
"github.com/spdf/elektron/utilities/offerUtils"
|
||||
)
|
||||
|
||||
// Decides if to take an offer or not
|
||||
|
|
|
@ -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/spdf/elektron/def"
|
||||
"github.com/spdf/elektron/utilities/mesosUtils"
|
||||
"github.com/spdf/elektron/utilities/offerUtils"
|
||||
)
|
||||
|
||||
// Decides if to take an offer or not
|
||||
|
|
|
@ -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/spdf/elektron/def"
|
||||
elekLogDef "github.com/spdf/elektron/logging/def"
|
||||
"github.com/spdf/elektron/utilities"
|
||||
"github.com/spdf/elektron/utilities/schedUtils"
|
||||
)
|
||||
|
||||
type BaseScheduler struct {
|
||||
|
|
|
@ -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/spdf/elektron/def"
|
||||
"github.com/spdf/elektron/utilities/mesosUtils"
|
||||
"github.com/spdf/elektron/utilities/offerUtils"
|
||||
)
|
||||
|
||||
// Decides if to take an offer or not
|
||||
|
|
|
@ -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/spdf/elektron/def"
|
||||
elekLogDef "github.com/spdf/elektron/logging/def"
|
||||
)
|
||||
|
||||
// Implements mesos scheduler.
|
||||
|
|
|
@ -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/spdf/elektron/def"
|
||||
"github.com/spdf/elektron/utilities/mesosUtils"
|
||||
"github.com/spdf/elektron/utilities/offerUtils"
|
||||
)
|
||||
|
||||
// Decides if to take an offer or not
|
||||
|
|
|
@ -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/spdf/elektron/constants"
|
||||
"github.com/spdf/elektron/def"
|
||||
elekLogDef "github.com/spdf/elektron/logging/def"
|
||||
"github.com/spdf/elektron/utilities"
|
||||
"github.com/spdf/elektron/utilities/mesosUtils"
|
||||
"log"
|
||||
)
|
||||
|
||||
|
|
|
@ -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/spdf/elektron/def"
|
||||
elekLogDef "github.com/spdf/elektron/logging/def"
|
||||
)
|
||||
|
||||
type SchedPolicyContext interface {
|
||||
|
|
|
@ -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/spdf/elektron/utilities"
|
||||
)
|
||||
|
||||
// Names of different scheduling policies.
|
||||
|
|
Reference in a new issue