Skip to content

Commit

Permalink
Rename spaces to space
Browse files Browse the repository at this point in the history
After further comments it should really be environs/space and then
reload the spaces with in that space.
  • Loading branch information
SimonRichardson committed Mar 31, 2020
1 parent 8d180b4 commit ab207d8
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion agent/agentbootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/juju/juju/environs"
"github.com/juju/juju/environs/config"
"github.com/juju/juju/environs/context"
"github.com/juju/juju/environs/spaces"
"github.com/juju/juju/environs/space"
"github.com/juju/juju/mongo"
"github.com/juju/juju/network"
"github.com/juju/juju/state"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/facades/client/modelmanager/modelmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/juju/juju/environs"
"github.com/juju/juju/environs/config"
"github.com/juju/juju/environs/context"
"github.com/juju/juju/environs/spaces"
"github.com/juju/juju/environs/space"
"github.com/juju/juju/state"
"github.com/juju/juju/state/stateenvirons"
"github.com/juju/juju/tools"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/facades/client/spaces/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/juju/juju/core/permission"
"github.com/juju/juju/environs"
"github.com/juju/juju/environs/context"
"github.com/juju/juju/environs/spaces"
"github.com/juju/juju/environs/space"
"github.com/juju/juju/state"
"gopkg.in/mgo.v2/txn"
)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions environs/space/package_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2020 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package space

import (
"testing"

gc "gopkg.in/check.v1"
)

//go:generate mockgen -package space -destination context_mock_test.go github.com/juju/juju/environs/context ProviderCallContext
//go:generate mockgen -package space -destination environs_mock_test.go github.com/juju/juju/environs BootstrapEnviron,NetworkingEnviron
//go:generate mockgen -package space -destination spaces_mock_test.go github.com/juju/juju/environs/space ReloadSpacesState

func TestPackage(t *testing.T) {
gc.TestingT(t)
}
2 changes: 1 addition & 1 deletion environs/spaces/spaces.go → environs/space/spaces.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package spaces
package space

import (
"github.com/juju/errors"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package spaces
package space

import (
"github.com/golang/mock/gomock"
Expand Down
18 changes: 0 additions & 18 deletions environs/spaces/package_test.go

This file was deleted.

0 comments on commit ab207d8

Please sign in to comment.