From 80c9d5b29c6a9127662d83c6308878a4eabb67cb Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Wed, 30 Oct 2019 17:05:10 -0400 Subject: [PATCH] updated module to spdfg. Refactored imports --- constants/constants.go | 2 +- def/metric.go | 2 +- def/sortingCriteria.go | 2 +- def/sortingCriteria_test.go | 2 +- def/task.go | 6 +++--- def/taskUtils.go | 2 +- def/taskUtils_test.go | 2 +- def/task_test.go | 4 ++-- environment/env.go | 2 +- go.mod | 21 ++++++++++----------- go.sum | 7 ++++--- logging/def/clsfnTaskDistOverhead.go | 2 +- logging/def/consoleLogger.go | 2 +- logging/def/logType.go | 2 +- logging/def/logger.go | 2 +- logging/def/loggerFactory.go | 4 ++-- logging/def/loggerObservers.go | 2 +- logging/def/loggerSubject.go | 2 +- logging/def/pcpLogger.go | 2 +- logging/def/schedPolicySwitchLogger.go | 2 +- logging/def/schedTraceLogger.go | 2 +- logging/def/schedWindowLogger.go | 2 +- logging/utils/createLogDir.go | 2 +- pcp/pcp.go | 4 ++-- pcp/utils.go | 2 +- pcp/utils_test.go | 2 +- pcp/victim.go | 2 +- pcp/victim_test.go | 2 +- powerCap/extrema.go | 8 ++++---- powerCap/progressiveExtrema.go | 12 ++++++------ rapl/cap.go | 4 ++-- scheduler.go | 14 +++++++------- schedulers/MaxGreedyMins.go | 8 ++++---- schedulers/MaxMin.go | 8 ++++---- schedulers/base.go | 10 +++++----- schedulers/bin-packing.go | 8 ++++---- schedulers/electronScheduler.go | 6 +++--- schedulers/first-fit.go | 8 ++++---- schedulers/helpers.go | 12 ++++++------ schedulers/schedPolicy.go | 6 +++--- schedulers/states.go | 2 +- schedulers/store.go | 4 ++-- scripts/RAPL_PKG_Throttle.py | 2 +- utilities/mesosUtils/mesosUtils.go | 2 +- utilities/offerUtils/offerUtils.go | 4 ++-- utilities/runAvg/runAvg.go | 2 +- utilities/schedUtils/schedUtils.go | 6 +++--- utilities/trackResourceUsage.go | 6 +++--- utilities/utils.go | 2 +- 49 files changed, 112 insertions(+), 112 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index 1131176..6eb7f11 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/def/metric.go b/def/metric.go index 9233630..e0c61c1 100644 --- a/def/metric.go +++ b/def/metric.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/def/sortingCriteria.go b/def/sortingCriteria.go index 176cd95..60e9ac6 100644 --- a/def/sortingCriteria.go +++ b/def/sortingCriteria.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/def/sortingCriteria_test.go b/def/sortingCriteria_test.go index fccc4f4..9737d75 100644 --- a/def/sortingCriteria_test.go +++ b/def/sortingCriteria_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/def/task.go b/def/task.go index d36602a..015171e 100644 --- a/def/task.go +++ b/def/task.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -24,8 +24,8 @@ import ( mesos "github.com/mesos/mesos-go/api/v0/mesosproto" "github.com/pkg/errors" - "github.com/spdf/elektron/constants" - "github.com/spdf/elektron/utilities/offerUtils" + "github.com/spdfg/elektron/constants" + "github.com/spdfg/elektron/utilities/offerUtils" ) type Task struct { diff --git a/def/taskUtils.go b/def/taskUtils.go index 3414bf1..33f19f2 100644 --- a/def/taskUtils.go +++ b/def/taskUtils.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/def/taskUtils_test.go b/def/taskUtils_test.go index 1d9e1b2..0c14799 100644 --- a/def/taskUtils_test.go +++ b/def/taskUtils_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/def/task_test.go b/def/task_test.go index b6a3c4c..80ff2d2 100644 --- a/def/task_test.go +++ b/def/task_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -21,7 +21,7 @@ package def import ( "fmt" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" - "github.com/spdf/elektron/constants" + "github.com/spdfg/elektron/constants" "github.com/stretchr/testify/assert" "reflect" "testing" diff --git a/environment/env.go b/environment/env.go index 0d4a2a6..7283e55 100644 --- a/environment/env.go +++ b/environment/env.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/go.mod b/go.mod index 8534063..5c32bee 100644 --- a/go.mod +++ b/go.mod @@ -1,24 +1,23 @@ -module github.com/spdf/elektron +module github.com/spdfg/elektron go 1.12 require ( github.com/fatih/color v1.7.0 - github.com/gogo/protobuf v1.1.1 // indirect - github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect + github.com/gogo/protobuf v1.1.1 + github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b github.com/golang/protobuf v1.2.0 - github.com/google/uuid v1.0.0 // indirect + github.com/google/uuid v1.0.0 github.com/mash/gokmeans v0.0.0-20140614041449-8bbf08905a7e - github.com/mattn/go-colorable v0.0.9 // indirect - github.com/mattn/go-isatty v0.0.4 // indirect + github.com/mattn/go-colorable v0.0.9 + github.com/mattn/go-isatty v0.0.4 github.com/mesos/mesos-go v0.0.8 github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe - github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709 // indirect + github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709 github.com/pkg/errors v0.8.0 - github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec // indirect + github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec github.com/stretchr/testify v1.4.0 golang.org/x/crypto v0.0.0-20180927165925-5295e8364332 - golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3 // indirect - golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect - golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611 // indirect + golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3 + golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611 ) diff --git a/go.sum b/go.sum index 34cf853..fd72742 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,4 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= @@ -23,18 +24,18 @@ github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709 h1:zNBQb37RGLmJybyMcs github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec h1:6ncX5ko6B9LntYM0YBRXkiSaZMmLYeZ/NWcmeB43mMY= github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= golang.org/x/crypto v0.0.0-20180927165925-5295e8364332 h1:hvQVdF6P9DX4OiKA5tpehlG6JsgzmyQiThG7q5Bn3UQ= golang.org/x/crypto v0.0.0-20180927165925-5295e8364332/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3 h1:dgd4x4kJt7G4k4m93AYLzM8Ni6h2qLTfh9n9vXJT3/0= golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611 h1:O33LKL7WyJgjN9CvxfTIomjIClbd/Kq86/iipowHQU0= golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/logging/def/clsfnTaskDistOverhead.go b/logging/def/clsfnTaskDistOverhead.go index a10e36b..1189001 100644 --- a/logging/def/clsfnTaskDistOverhead.go +++ b/logging/def/clsfnTaskDistOverhead.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/consoleLogger.go b/logging/def/consoleLogger.go index 1890674..a6bf901 100644 --- a/logging/def/consoleLogger.go +++ b/logging/def/consoleLogger.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/logType.go b/logging/def/logType.go index 688ac50..f495173 100644 --- a/logging/def/logType.go +++ b/logging/def/logType.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/logger.go b/logging/def/logger.go index 0b6cb86..e713691 100644 --- a/logging/def/logger.go +++ b/logging/def/logger.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/loggerFactory.go b/logging/def/loggerFactory.go index 573ecc8..a2f8a73 100644 --- a/logging/def/loggerFactory.go +++ b/logging/def/loggerFactory.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -22,7 +22,7 @@ import ( "strings" "time" - logUtils "github.com/spdf/elektron/logging/utils" + logUtils "github.com/spdfg/elektron/logging/utils" ) // Names of different loggers diff --git a/logging/def/loggerObservers.go b/logging/def/loggerObservers.go index 5ec07ad..f4aa5ca 100644 --- a/logging/def/loggerObservers.go +++ b/logging/def/loggerObservers.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/loggerSubject.go b/logging/def/loggerSubject.go index ab44896..db1f72b 100644 --- a/logging/def/loggerSubject.go +++ b/logging/def/loggerSubject.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/pcpLogger.go b/logging/def/pcpLogger.go index be97984..e75b788 100644 --- a/logging/def/pcpLogger.go +++ b/logging/def/pcpLogger.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/schedPolicySwitchLogger.go b/logging/def/schedPolicySwitchLogger.go index 17049d3..70ecc9d 100644 --- a/logging/def/schedPolicySwitchLogger.go +++ b/logging/def/schedPolicySwitchLogger.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/schedTraceLogger.go b/logging/def/schedTraceLogger.go index 0b71da1..5b55e4f 100644 --- a/logging/def/schedTraceLogger.go +++ b/logging/def/schedTraceLogger.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/def/schedWindowLogger.go b/logging/def/schedWindowLogger.go index 62411f8..d0f4d06 100644 --- a/logging/def/schedWindowLogger.go +++ b/logging/def/schedWindowLogger.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/logging/utils/createLogDir.go b/logging/utils/createLogDir.go index b9f5451..d701252 100644 --- a/logging/utils/createLogDir.go +++ b/logging/utils/createLogDir.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/pcp/pcp.go b/pcp/pcp.go index 99ee8c5..78a5c18 100644 --- a/pcp/pcp.go +++ b/pcp/pcp.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -25,7 +25,7 @@ import ( "syscall" "time" - elekLogDef "github.com/spdf/elektron/logging/def" + elekLogDef "github.com/spdfg/elektron/logging/def" ) func Start(quit chan struct{}, logging *bool, logMType chan elekLogDef.LogMessageType, diff --git a/pcp/utils.go b/pcp/utils.go index 7da7813..3db92b6 100644 --- a/pcp/utils.go +++ b/pcp/utils.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/pcp/utils_test.go b/pcp/utils_test.go index 6b9e645..e578fab 100644 --- a/pcp/utils_test.go +++ b/pcp/utils_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/pcp/victim.go b/pcp/victim.go index 57bab05..e18ec48 100644 --- a/pcp/victim.go +++ b/pcp/victim.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/pcp/victim_test.go b/pcp/victim_test.go index 93deed7..e987463 100644 --- a/pcp/victim_test.go +++ b/pcp/victim_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/powerCap/extrema.go b/powerCap/extrema.go index b5295bf..e18c587 100644 --- a/powerCap/extrema.go +++ b/powerCap/extrema.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -30,9 +30,9 @@ import ( "syscall" "time" - elekLogDef "github.com/spdf/elektron/logging/def" - "github.com/spdf/elektron/pcp" - "github.com/spdf/elektron/rapl" + elekLogDef "github.com/spdfg/elektron/logging/def" + "github.com/spdfg/elektron/pcp" + "github.com/spdfg/elektron/rapl" ) func StartPCPLogAndExtremaDynamicCap(quit chan struct{}, logging *bool, hiThreshold, loThreshold float64, diff --git a/powerCap/progressiveExtrema.go b/powerCap/progressiveExtrema.go index 1a667a6..8e9cd06 100644 --- a/powerCap/progressiveExtrema.go +++ b/powerCap/progressiveExtrema.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -31,11 +31,11 @@ import ( "syscall" "time" - "github.com/spdf/elektron/constants" - elekLogDef "github.com/spdf/elektron/logging/def" - "github.com/spdf/elektron/pcp" - "github.com/spdf/elektron/rapl" - "github.com/spdf/elektron/utilities" + "github.com/spdfg/elektron/constants" + elekLogDef "github.com/spdfg/elektron/logging/def" + "github.com/spdfg/elektron/pcp" + "github.com/spdfg/elektron/rapl" + "github.com/spdfg/elektron/utilities" ) func round(num float64) int { diff --git a/rapl/cap.go b/rapl/cap.go index 6af3fa4..2445045 100644 --- a/rapl/cap.go +++ b/rapl/cap.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -23,7 +23,7 @@ import ( "strconv" "github.com/pkg/errors" - elekEnv "github.com/spdf/elektron/environment" + elekEnv "github.com/spdfg/elektron/environment" "golang.org/x/crypto/ssh" "strings" ) diff --git a/scheduler.go b/scheduler.go index a98bc6b..98b62e7 100644 --- a/scheduler.go +++ b/scheduler.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -16,7 +16,7 @@ // along with Elektron. If not, see . // -package main // import github.com/spdf/elektron +package main // import github.com/spdfg/elektron import ( "flag" @@ -30,11 +30,11 @@ import ( "github.com/golang/protobuf/proto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" sched "github.com/mesos/mesos-go/api/v0/scheduler" - "github.com/spdf/elektron/def" - elekLogDef "github.com/spdf/elektron/logging/def" - "github.com/spdf/elektron/pcp" - "github.com/spdf/elektron/powerCap" - "github.com/spdf/elektron/schedulers" + "github.com/spdfg/elektron/def" + elekLogDef "github.com/spdfg/elektron/logging/def" + "github.com/spdfg/elektron/pcp" + "github.com/spdfg/elektron/powerCap" + "github.com/spdfg/elektron/schedulers" ) var master = flag.String("master", "", "Location of leading Mesos master -- :") diff --git a/schedulers/MaxGreedyMins.go b/schedulers/MaxGreedyMins.go index cf24ff0..8314d27 100644 --- a/schedulers/MaxGreedyMins.go +++ b/schedulers/MaxGreedyMins.go @@ -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" - "github.com/spdf/elektron/def" - "github.com/spdf/elektron/utilities/mesosUtils" - "github.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 diff --git a/schedulers/MaxMin.go b/schedulers/MaxMin.go index bc80beb..928134e 100644 --- a/schedulers/MaxMin.go +++ b/schedulers/MaxMin.go @@ -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" - "github.com/spdf/elektron/def" - "github.com/spdf/elektron/utilities/mesosUtils" - "github.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 diff --git a/schedulers/base.go b/schedulers/base.go index d30bb53..90e0694 100644 --- a/schedulers/base.go +++ b/schedulers/base.go @@ -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" - "github.com/spdf/elektron/def" - elekLogDef "github.com/spdf/elektron/logging/def" - "github.com/spdf/elektron/utilities" - "github.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 { diff --git a/schedulers/bin-packing.go b/schedulers/bin-packing.go index 2e0b6c8..894bcba 100644 --- a/schedulers/bin-packing.go +++ b/schedulers/bin-packing.go @@ -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" - "github.com/spdf/elektron/def" - "github.com/spdf/elektron/utilities/mesosUtils" - "github.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 diff --git a/schedulers/electronScheduler.go b/schedulers/electronScheduler.go index 1701c84..82601e7 100644 --- a/schedulers/electronScheduler.go +++ b/schedulers/electronScheduler.go @@ -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" - "github.com/spdf/elektron/def" - elekLogDef "github.com/spdf/elektron/logging/def" + "github.com/spdfg/elektron/def" + elekLogDef "github.com/spdfg/elektron/logging/def" ) // Implements mesos scheduler. diff --git a/schedulers/first-fit.go b/schedulers/first-fit.go index 4e92f2f..121fc0f 100644 --- a/schedulers/first-fit.go +++ b/schedulers/first-fit.go @@ -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" - "github.com/spdf/elektron/def" - "github.com/spdf/elektron/utilities/mesosUtils" - "github.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 diff --git a/schedulers/helpers.go b/schedulers/helpers.go index 362b05e..904ec51 100644 --- a/schedulers/helpers.go +++ b/schedulers/helpers.go @@ -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" - "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" + "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" ) diff --git a/schedulers/schedPolicy.go b/schedulers/schedPolicy.go index 61e5fc8..ee90741 100644 --- a/schedulers/schedPolicy.go +++ b/schedulers/schedPolicy.go @@ -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" - "github.com/spdf/elektron/def" - elekLogDef "github.com/spdf/elektron/logging/def" + "github.com/spdfg/elektron/def" + elekLogDef "github.com/spdfg/elektron/logging/def" ) type SchedPolicyContext interface { diff --git a/schedulers/states.go b/schedulers/states.go index c89b2c3..30b41b2 100644 --- a/schedulers/states.go +++ b/schedulers/states.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/schedulers/store.go b/schedulers/store.go index 27c4c26..f2ef41f 100644 --- a/schedulers/store.go +++ b/schedulers/store.go @@ -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" - "github.com/spdf/elektron/utilities" + "github.com/spdfg/elektron/utilities" ) // Names of different scheduling policies. diff --git a/scripts/RAPL_PKG_Throttle.py b/scripts/RAPL_PKG_Throttle.py index e13b21d..0da5085 100644 --- a/scripts/RAPL_PKG_Throttle.py +++ b/scripts/RAPL_PKG_Throttle.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -# Copyright (C) 2018 spdf +# Copyright (C) 2018 spdfg # # This file is part of Elektron. # diff --git a/utilities/mesosUtils/mesosUtils.go b/utilities/mesosUtils/mesosUtils.go index e512b84..2778592 100644 --- a/utilities/mesosUtils/mesosUtils.go +++ b/utilities/mesosUtils/mesosUtils.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/utilities/offerUtils/offerUtils.go b/utilities/offerUtils/offerUtils.go index 9eb6adb..2d67af1 100644 --- a/utilities/offerUtils/offerUtils.go +++ b/utilities/offerUtils/offerUtils.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -23,7 +23,7 @@ import ( "strings" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" - "github.com/spdf/elektron/constants" + "github.com/spdfg/elektron/constants" ) func OfferAgg(offer *mesos.Offer) (float64, float64, float64) { diff --git a/utilities/runAvg/runAvg.go b/utilities/runAvg/runAvg.go index 27543bc..5fb2389 100644 --- a/utilities/runAvg/runAvg.go +++ b/utilities/runAvg/runAvg.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // diff --git a/utilities/schedUtils/schedUtils.go b/utilities/schedUtils/schedUtils.go index 23d7707..e25437e 100644 --- a/utilities/schedUtils/schedUtils.go +++ b/utilities/schedUtils/schedUtils.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -21,8 +21,8 @@ package schedUtils import ( "log" - "github.com/spdf/elektron/def" - "github.com/spdf/elektron/utilities" + "github.com/spdfg/elektron/def" + "github.com/spdfg/elektron/utilities" ) // Criteria for resizing the scheduling window. diff --git a/utilities/trackResourceUsage.go b/utilities/trackResourceUsage.go index 83981ec..2279adf 100644 --- a/utilities/trackResourceUsage.go +++ b/utilities/trackResourceUsage.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. // @@ -23,8 +23,8 @@ import ( "sync" mesos "github.com/mesos/mesos-go/api/v0/mesosproto" - "github.com/spdf/elektron/def" - "github.com/spdf/elektron/utilities/offerUtils" + "github.com/spdfg/elektron/def" + "github.com/spdfg/elektron/utilities/offerUtils" ) type TrackResourceUsage struct { diff --git a/utilities/utils.go b/utilities/utils.go index 1f31214..2e1af2e 100644 --- a/utilities/utils.go +++ b/utilities/utils.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 spdf +// Copyright (C) 2018 spdfg // // This file is part of Elektron. //