Skip to content

Commit

Permalink
all: sort imports canonically
Browse files Browse the repository at this point in the history
This PR is entirely automatically generated - it
contains just the changes made by doing:

    sortimports ./...

in the root of the juju repo. (see github.com/rogpeppe/sortimports
for the implementation of the sortimports tool)
  • Loading branch information
rogpeppe committed Mar 6, 2017
1 parent db5a507 commit 6257053
Show file tree
Hide file tree
Showing 226 changed files with 346 additions and 293 deletions.
1 change: 0 additions & 1 deletion api/authentication/visitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"net/url"

"github.com/juju/errors"

"gopkg.in/macaroon-bakery.v1/httpbakery"
)

Expand Down
3 changes: 2 additions & 1 deletion api/authentication/visitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import (
"net/http/httptest"
"net/url"

"github.com/juju/juju/api/authentication"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"gopkg.in/macaroon-bakery.v1/httpbakery"

"github.com/juju/juju/api/authentication"
)

type VisitorSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion api/certpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"strings"
"time"

"github.com/juju/juju/cert"
"github.com/juju/loggo"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"github.com/juju/juju/api"
"github.com/juju/juju/cert"
"github.com/juju/juju/testing"
)

Expand Down
2 changes: 1 addition & 1 deletion api/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
package cloud

import (
"github.com/juju/errors"
"gopkg.in/juju/names.v2"

"github.com/juju/errors"
"github.com/juju/juju/api/base"
"github.com/juju/juju/apiserver/params"
jujucloud "github.com/juju/juju/cloud"
Expand Down
4 changes: 2 additions & 2 deletions api/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import (
"encoding/json"
"errors"

jujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
gc "gopkg.in/check.v1"
"gopkg.in/juju/names.v2"
"gopkg.in/macaroon.v1"
Expand All @@ -17,8 +19,6 @@ import (
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/environs"
jujutesting "github.com/juju/testing"
"github.com/juju/utils"
)

type Suite struct {
Expand Down
5 changes: 3 additions & 2 deletions api/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ package api
import (
"github.com/gorilla/websocket"
"github.com/juju/errors"
"github.com/juju/juju/api/base"
"github.com/juju/juju/network"
"github.com/juju/utils/clock"
"gopkg.in/juju/names.v2"
"gopkg.in/macaroon-bakery.v1/httpbakery"
"gopkg.in/macaroon.v1"

"github.com/juju/juju/api/base"
"github.com/juju/juju/network"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion api/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/gorilla/websocket"
"github.com/juju/errors"
"github.com/juju/utils/set"
"github.com/juju/version"
"gopkg.in/juju/names.v2"
"gopkg.in/macaroon-bakery.v1/httpbakery"
Expand All @@ -27,7 +28,6 @@ import (
"github.com/juju/juju/api/uniter"
"github.com/juju/juju/api/upgrader"
"github.com/juju/juju/network"
"github.com/juju/utils/set"
)

// Info encapsulates information about a server holding juju state and
Expand Down
3 changes: 2 additions & 1 deletion api/logfwd/lastsent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
package logfwd_test

import (
"time"

"github.com/juju/errors"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
Expand All @@ -14,7 +16,6 @@ import (
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
"time"
)

type LastSentSuite struct {
Expand Down
3 changes: 2 additions & 1 deletion api/machineactions/machineactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ package machineactions

import (
"github.com/juju/errors"
"gopkg.in/juju/names.v2"

"github.com/juju/juju/api/base"
apiwatcher "github.com/juju/juju/api/watcher"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/watcher"
"gopkg.in/juju/names.v2"
)

type Client struct {
Expand Down
5 changes: 3 additions & 2 deletions api/proxyupdater/proxyupdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import (
"fmt"

"github.com/juju/errors"
"github.com/juju/utils/proxy"
"gopkg.in/juju/names.v2"

"github.com/juju/juju/api/base"
apiwatcher "github.com/juju/juju/api/watcher"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/watcher"
"github.com/juju/utils/proxy"
"gopkg.in/juju/names.v2"
)

const proxyUpdaterFacade = "ProxyUpdater"
Expand Down
2 changes: 1 addition & 1 deletion api/proxyupdater/proxyupdater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import (
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/proxy"
gc "gopkg.in/check.v1"
"gopkg.in/juju/names.v2"

"github.com/juju/juju/api/base"
apitesting "github.com/juju/juju/api/base/testing"
"github.com/juju/juju/api/proxyupdater"
"github.com/juju/juju/apiserver/params"
coretesting "github.com/juju/juju/testing"
"github.com/juju/juju/watcher"
"gopkg.in/juju/names.v2"
)

type ProxyUpdaterSuite struct {
Expand Down
3 changes: 2 additions & 1 deletion apiserver/applicationscaler/facade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ package applicationscaler

import (
"github.com/juju/errors"
"gopkg.in/juju/names.v2"

"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/facade"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
"github.com/juju/juju/state/watcher"
"gopkg.in/juju/names.v2"
)

// Backend exposes functionality required by Facade.
Expand Down
1 change: 1 addition & 0 deletions apiserver/backups/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package backups

import (
"github.com/juju/errors"

"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/facade"
"github.com/juju/juju/state"
Expand Down
3 changes: 2 additions & 1 deletion apiserver/block/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
package block

import (
"github.com/juju/juju/state"
names "gopkg.in/juju/names.v2"

"github.com/juju/juju/state"
)

type blockAccess interface {
Expand Down
2 changes: 1 addition & 1 deletion apiserver/cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"runtime"
"time"

"github.com/juju/juju/cert"
"github.com/juju/loggo"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"github.com/juju/juju/api"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/cert"
coretesting "github.com/juju/juju/testing"
)

Expand Down
2 changes: 1 addition & 1 deletion apiserver/cloud/cloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
package cloud_test

import (
"github.com/juju/errors"
gitjujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"gopkg.in/juju/names.v2"

"github.com/juju/errors"
cloudfacade "github.com/juju/juju/apiserver/cloud"
"github.com/juju/juju/apiserver/params"
apiservertesting "github.com/juju/juju/apiserver/testing"
Expand Down
1 change: 1 addition & 0 deletions apiserver/common/instancetypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package common

import (
"github.com/juju/errors"

"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/constraints"
"github.com/juju/juju/environs"
Expand Down
3 changes: 1 addition & 2 deletions apiserver/common/modelstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package common

import (
"gopkg.in/juju/names.v2"

"github.com/juju/errors"
"gopkg.in/juju/names.v2"

"github.com/juju/juju/apiserver/facade"
"github.com/juju/juju/apiserver/params"
Expand Down
3 changes: 1 addition & 2 deletions apiserver/common/modeluser.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ package common
import (
"time"

"gopkg.in/juju/names.v2"

"github.com/juju/errors"
"gopkg.in/juju/names.v2"

"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/permission"
Expand Down
1 change: 1 addition & 0 deletions apiserver/discoverspaces/discoverspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package discoverspaces

import (
"github.com/juju/errors"

"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/common/networkingcommon"
"github.com/juju/juju/apiserver/facade"
Expand Down
1 change: 1 addition & 0 deletions apiserver/hostkeyreporter/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package hostkeyreporter

import (
"github.com/juju/errors"

"github.com/juju/juju/apiserver/facade"
"github.com/juju/juju/state"
)
Expand Down
1 change: 1 addition & 0 deletions apiserver/httpattachment/attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"strings"

"github.com/juju/errors"

"github.com/juju/juju/apiserver/params"
)

Expand Down
3 changes: 2 additions & 1 deletion apiserver/imagemanager/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
package imagemanager

import (
names "gopkg.in/juju/names.v2"

"github.com/juju/juju/state"
"github.com/juju/juju/state/imagestorage"
names "gopkg.in/juju/names.v2"
)

type stateInterface interface {
Expand Down
3 changes: 2 additions & 1 deletion apiserver/imagemetadata/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
package imagemetadata

import (
names "gopkg.in/juju/names.v2"

"github.com/juju/juju/environs/config"
"github.com/juju/juju/state"
"github.com/juju/juju/state/cloudimagemetadata"
names "gopkg.in/juju/names.v2"
)

type metadataAcess interface {
Expand Down
1 change: 1 addition & 0 deletions apiserver/introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/http"

"github.com/juju/errors"

"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/permission"
Expand Down
3 changes: 2 additions & 1 deletion apiserver/machineactions/machineactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
package machineactions

import (
"gopkg.in/juju/names.v2"

"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/facade"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
"gopkg.in/juju/names.v2"
)

type Backend interface {
Expand Down
3 changes: 2 additions & 1 deletion apiserver/machineactions/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
package machineactions

import (
"gopkg.in/juju/names.v2"

"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/facade"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
"gopkg.in/juju/names.v2"
)

func init() {
Expand Down
3 changes: 2 additions & 1 deletion apiserver/machinemanager/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
package machinemanager

import (
names "gopkg.in/juju/names.v2"

"github.com/juju/juju/cloud"
"github.com/juju/juju/environs/config"
"github.com/juju/juju/instance"
"github.com/juju/juju/state"
names "gopkg.in/juju/names.v2"
)

type stateInterface interface {
Expand Down
2 changes: 1 addition & 1 deletion apiserver/metricsender/metricsender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"

wireformat "github.com/juju/romulus/wireformat/metrics"
jujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/clock"
gc "gopkg.in/check.v1"
Expand All @@ -17,7 +18,6 @@ import (
jujujutesting "github.com/juju/juju/juju/testing"
"github.com/juju/juju/state"
"github.com/juju/juju/testing/factory"
jujutesting "github.com/juju/testing"
)

type MetricSenderSuite struct {
Expand Down
4 changes: 2 additions & 2 deletions apiserver/metricsender/testing/mocksender.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package testing
import (
"fmt"

"github.com/juju/juju/state"

wireformat "github.com/juju/romulus/wireformat/metrics"
"github.com/juju/utils"

"github.com/juju/juju/state"
)

// MockSender implements the metric sender interface.
Expand Down
2 changes: 1 addition & 1 deletion apiserver/metricsmanager/metricsmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"

"github.com/juju/errors"
jujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"gopkg.in/juju/names.v2"
Expand All @@ -20,7 +21,6 @@ import (
jujujutesting "github.com/juju/juju/juju/testing"
"github.com/juju/juju/state"
"github.com/juju/juju/testing/factory"
jujutesting "github.com/juju/testing"
)

type metricsManagerSuite struct {
Expand Down
Loading

0 comments on commit 6257053

Please sign in to comment.