From 45f9efa578e551a4014a59860c87b3028d8401c6 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Sun, 30 Sep 2018 17:56:14 -0700 Subject: [PATCH] Changing imports from bitbucket to gitlab. --- README.md | 4 ++-- def/task.go | 4 ++-- logging/def/loggerFactory.go | 2 +- pcp/pcp.go | 4 ++-- power-capping/extrema.go | 6 +++--- power-capping/progressive-extrema.go | 10 +++++----- rapl/cap.go | 2 +- scheduler.go | 8 ++++---- schedulers/MaxGreedyMins.go | 6 +++--- schedulers/MaxMin.go | 6 +++--- schedulers/base.go | 8 ++++---- schedulers/bin-packing.go | 6 +++--- schedulers/electronScheduler.go | 4 ++-- schedulers/first-fit.go | 6 +++--- schedulers/helpers.go | 10 +++++----- schedulers/schedPolicy.go | 4 ++-- schedulers/store.go | 2 +- utilities/offerUtils/offerUtils.go | 2 +- utilities/schedUtils/schedUtils.go | 4 ++-- utilities/trackResourceUsage.go | 4 ++-- 20 files changed, 51 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index 3d9029d..4a3456d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ _Elektron_ is a [Mesos](mesos.apache.org) framework that behaves as a playground However, in addition to being a scheduler, Elektron also takes advantage of tools such as [Performance Co-Pilot](http://pcp.io/) and [RAPL](https://01.org/blogs/2014/running-average-power-limit--rapl) to help contain the power envelope within defined thresholds, reduce peak power consumption, and also reduce total energy consumption. Elektron is able to leverage the Mesos-provided resource abstraction to allow different algorithms to decide how to consume resource offers made by a Mesos Master. #Architecture -![](https://bitbucket.org/sunybingcloud/elektron/src/spsCherryPick/docs/ElekArch.png) +![](docs/ElekArch.png) #Usage * [Pluggable Scheduling Policies](docs/SchedulingPolicies.md) @@ -30,7 +30,7 @@ Please go through the [logging library doc](docs/Logging.md) to understand how t machine on which electron is launched for logging to work and PCP collector agents installed on the Mesos Agents** -Compatible with the following versions, +Compatible with the following versions: * Mesos 1.5.0 * Go 1.9.7 diff --git a/def/task.go b/def/task.go index 539b0e7..a99f74f 100644 --- a/def/task.go +++ b/def/task.go @@ -1,8 +1,8 @@ package def import ( - "bitbucket.org/sunybingcloud/elektron/constants" - "bitbucket.org/sunybingcloud/elektron/utilities/offerUtils" + "gitlab.com/spdf/elektron/constants" + "gitlab.com/spdf/elektron/utilities/offerUtils" "encoding/json" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" "github.com/pkg/errors" diff --git a/logging/def/loggerFactory.go b/logging/def/loggerFactory.go index 5ee0d13..8592db2 100644 --- a/logging/def/loggerFactory.go +++ b/logging/def/loggerFactory.go @@ -1,7 +1,7 @@ package logging import ( - logUtils "bitbucket.org/sunybingcloud/elektron/logging/utils" + logUtils "gitlab.com/spdf/elektron/logging/utils" "strings" "time" ) diff --git a/pcp/pcp.go b/pcp/pcp.go index 8986586..94ecfef 100644 --- a/pcp/pcp.go +++ b/pcp/pcp.go @@ -1,8 +1,8 @@ package pcp import ( - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" - "bitbucket.org/sunybingcloud/elektron/schedulers" + elecLogDef "gitlab.com/spdf/elektron/logging/def" + "gitlab.com/spdf/elektron/schedulers" "bufio" "fmt" "github.com/mesos/mesos-go/api/v0/scheduler" diff --git a/power-capping/extrema.go b/power-capping/extrema.go index 8d62b02..82e849a 100644 --- a/power-capping/extrema.go +++ b/power-capping/extrema.go @@ -1,9 +1,9 @@ package pcp import ( - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" - "bitbucket.org/sunybingcloud/elektron/pcp" - "bitbucket.org/sunybingcloud/elektron/rapl" + elecLogDef "gitlab.com/spdf/elektron/logging/def" + "gitlab.com/spdf/elektron/pcp" + "gitlab.com/spdf/elektron/rapl" "bufio" "container/ring" "fmt" diff --git a/power-capping/progressive-extrema.go b/power-capping/progressive-extrema.go index bc9350e..7b9a188 100644 --- a/power-capping/progressive-extrema.go +++ b/power-capping/progressive-extrema.go @@ -1,11 +1,11 @@ package pcp import ( - "bitbucket.org/sunybingcloud/elektron/constants" - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" - "bitbucket.org/sunybingcloud/elektron/pcp" - "bitbucket.org/sunybingcloud/elektron/rapl" - "bitbucket.org/sunybingcloud/elektron/utilities" + "gitlab.com/spdf/elektron/constants" + elecLogDef "gitlab.com/spdf/elektron/logging/def" + "gitlab.com/spdf/elektron/pcp" + "gitlab.com/spdf/elektron/rapl" + "gitlab.com/spdf/elektron/utilities" "bufio" "container/ring" "fmt" diff --git a/rapl/cap.go b/rapl/cap.go index dd09606..29c6844 100644 --- a/rapl/cap.go +++ b/rapl/cap.go @@ -1,7 +1,7 @@ package rapl import ( - elekEnv "bitbucket.org/sunybingcloud/elektron/environment" + elekEnv "gitlab.com/spdf/elektron/environment" "github.com/pkg/errors" "golang.org/x/crypto/ssh" "os" diff --git a/scheduler.go b/scheduler.go index 9892ee6..feec741 100644 --- a/scheduler.go +++ b/scheduler.go @@ -1,10 +1,10 @@ package main import ( - "bitbucket.org/sunybingcloud/elektron/def" - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" - "bitbucket.org/sunybingcloud/elektron/pcp" - "bitbucket.org/sunybingcloud/elektron/schedulers" + "gitlab.com/spdf/elektron/def" + elecLogDef "gitlab.com/spdf/elektron/logging/def" + "gitlab.com/spdf/elektron/pcp" + "gitlab.com/spdf/elektron/schedulers" "flag" "fmt" "github.com/golang/protobuf/proto" diff --git a/schedulers/MaxGreedyMins.go b/schedulers/MaxGreedyMins.go index 310cb42..057bc97 100644 --- a/schedulers/MaxGreedyMins.go +++ b/schedulers/MaxGreedyMins.go @@ -1,9 +1,9 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/def" - "bitbucket.org/sunybingcloud/elektron/utilities/mesosUtils" - "bitbucket.org/sunybingcloud/elektron/utilities/offerUtils" + "gitlab.com/spdf/elektron/def" + "gitlab.com/spdf/elektron/utilities/mesosUtils" + "gitlab.com/spdf/elektron/utilities/offerUtils" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" "log" diff --git a/schedulers/MaxMin.go b/schedulers/MaxMin.go index 672124f..39a0a2a 100644 --- a/schedulers/MaxMin.go +++ b/schedulers/MaxMin.go @@ -1,9 +1,9 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/def" - "bitbucket.org/sunybingcloud/elektron/utilities/mesosUtils" - "bitbucket.org/sunybingcloud/elektron/utilities/offerUtils" + "gitlab.com/spdf/elektron/def" + "gitlab.com/spdf/elektron/utilities/mesosUtils" + "gitlab.com/spdf/elektron/utilities/offerUtils" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" "log" diff --git a/schedulers/base.go b/schedulers/base.go index eec1281..d646656 100644 --- a/schedulers/base.go +++ b/schedulers/base.go @@ -1,10 +1,10 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/def" - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" - "bitbucket.org/sunybingcloud/elektron/utilities" - "bitbucket.org/sunybingcloud/elektron/utilities/schedUtils" + "gitlab.com/spdf/elektron/def" + elecLogDef "gitlab.com/spdf/elektron/logging/def" + "gitlab.com/spdf/elektron/utilities" + "gitlab.com/spdf/elektron/utilities/schedUtils" "bytes" "fmt" "github.com/golang/protobuf/proto" diff --git a/schedulers/bin-packing.go b/schedulers/bin-packing.go index fb85e55..da53642 100644 --- a/schedulers/bin-packing.go +++ b/schedulers/bin-packing.go @@ -1,9 +1,9 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/def" - "bitbucket.org/sunybingcloud/elektron/utilities/mesosUtils" - "bitbucket.org/sunybingcloud/elektron/utilities/offerUtils" + "gitlab.com/spdf/elektron/def" + "gitlab.com/spdf/elektron/utilities/mesosUtils" + "gitlab.com/spdf/elektron/utilities/offerUtils" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" "log" diff --git a/schedulers/electronScheduler.go b/schedulers/electronScheduler.go index bd91d1b..85c3297 100644 --- a/schedulers/electronScheduler.go +++ b/schedulers/electronScheduler.go @@ -1,8 +1,8 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/def" - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" + "gitlab.com/spdf/elektron/def" + elecLogDef "gitlab.com/spdf/elektron/logging/def" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" "time" diff --git a/schedulers/first-fit.go b/schedulers/first-fit.go index d24d26f..eb67566 100644 --- a/schedulers/first-fit.go +++ b/schedulers/first-fit.go @@ -1,9 +1,9 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/def" - "bitbucket.org/sunybingcloud/elektron/utilities/mesosUtils" - "bitbucket.org/sunybingcloud/elektron/utilities/offerUtils" + "gitlab.com/spdf/elektron/def" + "gitlab.com/spdf/elektron/utilities/mesosUtils" + "gitlab.com/spdf/elektron/utilities/offerUtils" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" ) diff --git a/schedulers/helpers.go b/schedulers/helpers.go index 5db77b8..500a88c 100644 --- a/schedulers/helpers.go +++ b/schedulers/helpers.go @@ -1,11 +1,11 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/constants" - "bitbucket.org/sunybingcloud/elektron/def" - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" - "bitbucket.org/sunybingcloud/elektron/utilities" - "bitbucket.org/sunybingcloud/elektron/utilities/mesosUtils" + "gitlab.com/spdf/elektron/constants" + "gitlab.com/spdf/elektron/def" + elecLogDef "gitlab.com/spdf/elektron/logging/def" + "gitlab.com/spdf/elektron/utilities" + "gitlab.com/spdf/elektron/utilities/mesosUtils" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" "github.com/pkg/errors" diff --git a/schedulers/schedPolicy.go b/schedulers/schedPolicy.go index 5569256..31645bd 100644 --- a/schedulers/schedPolicy.go +++ b/schedulers/schedPolicy.go @@ -1,8 +1,8 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/def" - elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def" + "gitlab.com/spdf/elektron/def" + elecLogDef "gitlab.com/spdf/elektron/logging/def" "fmt" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" diff --git a/schedulers/store.go b/schedulers/store.go index f506fbe..574cb11 100644 --- a/schedulers/store.go +++ b/schedulers/store.go @@ -1,7 +1,7 @@ package schedulers import ( - "bitbucket.org/sunybingcloud/elektron/utilities" + "gitlab.com/spdf/elektron/utilities" "encoding/json" sched "github.com/mesos/mesos-go/api/v0/scheduler" "github.com/pkg/errors" diff --git a/utilities/offerUtils/offerUtils.go b/utilities/offerUtils/offerUtils.go index 167d213..450e6ec 100644 --- a/utilities/offerUtils/offerUtils.go +++ b/utilities/offerUtils/offerUtils.go @@ -1,7 +1,7 @@ package offerUtils import ( - "bitbucket.org/sunybingcloud/elektron/constants" + "gitlab.com/spdf/elektron/constants" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" "log" "strings" diff --git a/utilities/schedUtils/schedUtils.go b/utilities/schedUtils/schedUtils.go index 4e59e9f..7950f53 100644 --- a/utilities/schedUtils/schedUtils.go +++ b/utilities/schedUtils/schedUtils.go @@ -1,8 +1,8 @@ package schedUtils import ( - "bitbucket.org/sunybingcloud/elektron/def" - "bitbucket.org/sunybingcloud/elektron/utilities" + "gitlab.com/spdf/elektron/def" + "gitlab.com/spdf/elektron/utilities" "log" ) diff --git a/utilities/trackResourceUsage.go b/utilities/trackResourceUsage.go index 40fb53e..7951a4f 100644 --- a/utilities/trackResourceUsage.go +++ b/utilities/trackResourceUsage.go @@ -1,8 +1,8 @@ package utilities import ( - "bitbucket.org/sunybingcloud/elektron/def" - "bitbucket.org/sunybingcloud/elektron/utilities/offerUtils" + "gitlab.com/spdf/elektron/def" + "gitlab.com/spdf/elektron/utilities/offerUtils" "errors" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" "sync"