updated module to spdfg. Refactored imports

This commit is contained in:
Pradyumna Kaushik 2019-10-30 17:05:10 -04:00
parent 32738f3afc
commit 80c9d5b29c
49 changed files with 112 additions and 112 deletions

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // 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. // 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. // 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. // 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. // This file is part of Elektron.
// //
@ -24,8 +24,8 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spdf/elektron/constants" "github.com/spdfg/elektron/constants"
"github.com/spdf/elektron/utilities/offerUtils" "github.com/spdfg/elektron/utilities/offerUtils"
) )
type Task struct { type Task struct {

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // 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. // 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. // This file is part of Elektron.
// //
@ -21,7 +21,7 @@ package def
import ( import (
"fmt" "fmt"
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
"github.com/spdf/elektron/constants" "github.com/spdfg/elektron/constants"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"reflect" "reflect"
"testing" "testing"

View file

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

21
go.mod
View file

@ -1,24 +1,23 @@
module github.com/spdf/elektron module github.com/spdfg/elektron
go 1.12 go 1.12
require ( require (
github.com/fatih/color v1.7.0 github.com/fatih/color v1.7.0
github.com/gogo/protobuf v1.1.1 // indirect github.com/gogo/protobuf v1.1.1
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golang/protobuf v1.2.0 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/mash/gokmeans v0.0.0-20140614041449-8bbf08905a7e
github.com/mattn/go-colorable v0.0.9 // indirect github.com/mattn/go-colorable v0.0.9
github.com/mattn/go-isatty v0.0.4 // indirect github.com/mattn/go-isatty v0.0.4
github.com/mesos/mesos-go v0.0.8 github.com/mesos/mesos-go v0.0.8
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe 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/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 github.com/stretchr/testify v1.4.0
golang.org/x/crypto v0.0.0-20180927165925-5295e8364332 golang.org/x/crypto v0.0.0-20180927165925-5295e8364332
golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3 // indirect golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611
golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611 // indirect
) )

7
go.sum
View file

@ -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/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 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 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/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 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 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/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 h1:6ncX5ko6B9LntYM0YBRXkiSaZMmLYeZ/NWcmeB43mMY=
github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= 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/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= 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 h1:hvQVdF6P9DX4OiKA5tpehlG6JsgzmyQiThG7q5Bn3UQ=
golang.org/x/crypto v0.0.0-20180927165925-5295e8364332/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 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 h1:dgd4x4kJt7G4k4m93AYLzM8Ni6h2qLTfh9n9vXJT3/0=
golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 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= 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/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= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // 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. // 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. // 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. // 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. // This file is part of Elektron.
// //
@ -22,7 +22,7 @@ import (
"strings" "strings"
"time" "time"
logUtils "github.com/spdf/elektron/logging/utils" logUtils "github.com/spdfg/elektron/logging/utils"
) )
// Names of different loggers // Names of different loggers

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // 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. // 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. // 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. // 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. // 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. // 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. // 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. // This file is part of Elektron.
// //
@ -25,7 +25,7 @@ import (
"syscall" "syscall"
"time" "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, func Start(quit chan struct{}, logging *bool, logMType chan elekLogDef.LogMessageType,

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // 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. // 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. // 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. // 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. // This file is part of Elektron.
// //
@ -30,9 +30,9 @@ import (
"syscall" "syscall"
"time" "time"
elekLogDef "github.com/spdf/elektron/logging/def" elekLogDef "github.com/spdfg/elektron/logging/def"
"github.com/spdf/elektron/pcp" "github.com/spdfg/elektron/pcp"
"github.com/spdf/elektron/rapl" "github.com/spdfg/elektron/rapl"
) )
func StartPCPLogAndExtremaDynamicCap(quit chan struct{}, logging *bool, hiThreshold, loThreshold float64, func StartPCPLogAndExtremaDynamicCap(quit chan struct{}, logging *bool, hiThreshold, loThreshold float64,

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // This file is part of Elektron.
// //
@ -31,11 +31,11 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/spdf/elektron/constants" "github.com/spdfg/elektron/constants"
elekLogDef "github.com/spdf/elektron/logging/def" elekLogDef "github.com/spdfg/elektron/logging/def"
"github.com/spdf/elektron/pcp" "github.com/spdfg/elektron/pcp"
"github.com/spdf/elektron/rapl" "github.com/spdfg/elektron/rapl"
"github.com/spdf/elektron/utilities" "github.com/spdfg/elektron/utilities"
) )
func round(num float64) int { func round(num float64) int {

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // This file is part of Elektron.
// //
@ -23,7 +23,7 @@ import (
"strconv" "strconv"
"github.com/pkg/errors" "github.com/pkg/errors"
elekEnv "github.com/spdf/elektron/environment" elekEnv "github.com/spdfg/elektron/environment"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
"strings" "strings"
) )

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // This file is part of Elektron.
// //
@ -16,7 +16,7 @@
// along with Elektron. If not, see <http://www.gnu.org/licenses/>. // along with Elektron. If not, see <http://www.gnu.org/licenses/>.
// //
package main // import github.com/spdf/elektron package main // import github.com/spdfg/elektron
import ( import (
"flag" "flag"
@ -30,11 +30,11 @@ import (
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
elekLogDef "github.com/spdf/elektron/logging/def" elekLogDef "github.com/spdfg/elektron/logging/def"
"github.com/spdf/elektron/pcp" "github.com/spdfg/elektron/pcp"
"github.com/spdf/elektron/powerCap" "github.com/spdfg/elektron/powerCap"
"github.com/spdf/elektron/schedulers" "github.com/spdfg/elektron/schedulers"
) )
var master = flag.String("master", "", "Location of leading Mesos master -- <mesos-master>:<port>") var master = flag.String("master", "", "Location of leading Mesos master -- <mesos-master>:<port>")

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // This file is part of Elektron.
// //
@ -23,9 +23,9 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
"github.com/spdf/elektron/utilities/mesosUtils" "github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdf/elektron/utilities/offerUtils" "github.com/spdfg/elektron/utilities/offerUtils"
) )
// Decides if to take an offer or not // 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. // This file is part of Elektron.
// //
@ -23,9 +23,9 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
"github.com/spdf/elektron/utilities/mesosUtils" "github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdf/elektron/utilities/offerUtils" "github.com/spdfg/elektron/utilities/offerUtils"
) )
// Decides if to take an offer or not // 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. // This file is part of Elektron.
// //
@ -29,10 +29,10 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
"github.com/mesos/mesos-go/api/v0/mesosutil" "github.com/mesos/mesos-go/api/v0/mesosutil"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
elekLogDef "github.com/spdf/elektron/logging/def" elekLogDef "github.com/spdfg/elektron/logging/def"
"github.com/spdf/elektron/utilities" "github.com/spdfg/elektron/utilities"
"github.com/spdf/elektron/utilities/schedUtils" "github.com/spdfg/elektron/utilities/schedUtils"
) )
type BaseScheduler struct { type BaseScheduler struct {

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // This file is part of Elektron.
// //
@ -23,9 +23,9 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
"github.com/spdf/elektron/utilities/mesosUtils" "github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdf/elektron/utilities/offerUtils" "github.com/spdfg/elektron/utilities/offerUtils"
) )
// Decides if to take an offer or not // 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. // This file is part of Elektron.
// //
@ -23,8 +23,8 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
elekLogDef "github.com/spdf/elektron/logging/def" elekLogDef "github.com/spdfg/elektron/logging/def"
) )
// Implements mesos scheduler. // Implements mesos scheduler.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // This file is part of Elektron.
// //
@ -21,9 +21,9 @@ package schedulers
import ( import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
"github.com/spdf/elektron/utilities/mesosUtils" "github.com/spdfg/elektron/utilities/mesosUtils"
"github.com/spdf/elektron/utilities/offerUtils" "github.com/spdfg/elektron/utilities/offerUtils"
) )
// Decides if to take an offer or not // 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. // This file is part of Elektron.
// //
@ -23,11 +23,11 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spdf/elektron/constants" "github.com/spdfg/elektron/constants"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
elekLogDef "github.com/spdf/elektron/logging/def" elekLogDef "github.com/spdfg/elektron/logging/def"
"github.com/spdf/elektron/utilities" "github.com/spdfg/elektron/utilities"
"github.com/spdf/elektron/utilities/mesosUtils" "github.com/spdfg/elektron/utilities/mesosUtils"
"log" "log"
) )

View file

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

View file

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

View file

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
# Copyright (C) 2018 spdf # Copyright (C) 2018 spdfg
# #
# This file is part of Elektron. # 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. // 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. // This file is part of Elektron.
// //
@ -23,7 +23,7 @@ import (
"strings" "strings"
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" 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) { func OfferAgg(offer *mesos.Offer) (float64, float64, float64) {

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // 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. // This file is part of Elektron.
// //
@ -21,8 +21,8 @@ package schedUtils
import ( import (
"log" "log"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
"github.com/spdf/elektron/utilities" "github.com/spdfg/elektron/utilities"
) )
// Criteria for resizing the scheduling window. // Criteria for resizing the scheduling window.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2018 spdf // Copyright (C) 2018 spdfg
// //
// This file is part of Elektron. // This file is part of Elektron.
// //
@ -23,8 +23,8 @@ import (
"sync" "sync"
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
"github.com/spdf/elektron/def" "github.com/spdfg/elektron/def"
"github.com/spdf/elektron/utilities/offerUtils" "github.com/spdfg/elektron/utilities/offerUtils"
) )
type TrackResourceUsage struct { type TrackResourceUsage struct {

View file

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