formatted code.
This commit is contained in:
parent
c31bf8db01
commit
9599588fb5
4 changed files with 22 additions and 22 deletions
|
@ -1,11 +1,11 @@
|
||||||
package def
|
package def
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mash/gokmeans"
|
|
||||||
"log"
|
|
||||||
"sort"
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/mdesenfants/gokmeans"
|
||||||
|
"log"
|
||||||
|
"sort"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Information about a cluster of tasks.
|
// Information about a cluster of tasks.
|
||||||
|
|
|
@ -3,6 +3,7 @@ package schedulers
|
||||||
import (
|
import (
|
||||||
"bitbucket.org/sunybingcloud/elektron/def"
|
"bitbucket.org/sunybingcloud/elektron/def"
|
||||||
elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def"
|
elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def"
|
||||||
|
"bitbucket.org/sunybingcloud/elektron/utilities"
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
|
@ -12,7 +13,6 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
"bitbucket.org/sunybingcloud/elektron/utilities"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type baseScheduler struct {
|
type baseScheduler struct {
|
||||||
|
|
|
@ -3,12 +3,12 @@ package schedulers
|
||||||
import (
|
import (
|
||||||
"bitbucket.org/sunybingcloud/elektron/constants"
|
"bitbucket.org/sunybingcloud/elektron/constants"
|
||||||
"bitbucket.org/sunybingcloud/elektron/def"
|
"bitbucket.org/sunybingcloud/elektron/def"
|
||||||
"errors"
|
|
||||||
elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def"
|
elecLogDef "bitbucket.org/sunybingcloud/elektron/logging/def"
|
||||||
"bitbucket.org/sunybingcloud/elektron/utilities"
|
"bitbucket.org/sunybingcloud/elektron/utilities"
|
||||||
"bitbucket.org/sunybingcloud/elektron/utilities/mesosUtils"
|
"bitbucket.org/sunybingcloud/elektron/utilities/mesosUtils"
|
||||||
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"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Reference in a new issue