Permalink
Please sign in to comment.
Showing
with
44 additions
and 120 deletions.
- +5 −4 api/{model → agent}/model_test.go
- +6 −1 api/agent/state.go
- +0 −1 api/facadeversions.go
- +0 −2 api/interface.go
- +0 −24 api/model/model.go
- +0 −14 api/model/package_test.go
- +2 −1 api/proxyupdater/proxyupdater.go
- +3 −3 api/proxyupdater/proxyupdater_test.go
- +0 −6 api/state.go
- +2 −0 apiserver/agent/agent.go
- +4 −4 apiserver/{model → agent}/model_test.go
- +2 −1 apiserver/allfacades.go
- +0 −25 apiserver/model/model.go
- +0 −14 apiserver/model/package_test.go
- +3 −3 apiserver/proxyupdater/model_test.go
- +2 −2 cmd/jujud/agent/agent_test.go
- +2 −2 cmd/jujud/agent/machine.go
- +2 −2 cmd/jujud/agent/machine_test.go
- +11 −11 worker/proxyupdater/proxyupdater_test.go
| @@ -1,24 +0,0 @@ | ||
| -// Copyright 2014 Canonical Ltd. | ||
| -// Licensed under the AGPLv3, see LICENCE file for details. | ||
| - | ||
| -package model | ||
| - | ||
| -import ( | ||
| - "github.com/juju/juju/api/base" | ||
| - "github.com/juju/juju/api/common" | ||
| -) | ||
| - | ||
| -const apiName = "Model" | ||
| - | ||
| -// Facade provides access to a model worker's view of the world. | ||
| -type Facade struct { | ||
| - *common.ModelWatcher | ||
| -} | ||
| - | ||
| -// NewFacade returns a new api client facade instance. | ||
| -func NewFacade(caller base.APICaller) *Facade { | ||
| - facadeCaller := base.NewFacadeCaller(caller, apiName) | ||
| - return &Facade{ | ||
| - ModelWatcher: common.NewModelWatcher(facadeCaller), | ||
| - } | ||
| -} |
| @@ -1,14 +0,0 @@ | ||
| -// Copyright 2014 Canonical Ltd. | ||
| -// Licensed under the AGPLv3, see LICENCE file for details. | ||
| - | ||
| -package model_test | ||
| - | ||
| -import ( | ||
| - stdtesting "testing" | ||
| - | ||
| - "github.com/juju/juju/testing" | ||
| -) | ||
| - | ||
| -func TestAll(t *stdtesting.T) { | ||
| - testing.MgoTestPackage(t) | ||
| -} |
| @@ -1,25 +0,0 @@ | ||
| -// Copyright 2014 Canonical Ltd. | ||
| -// Licensed under the AGPLv3, see LICENCE file for details. | ||
| - | ||
| -package model | ||
| - | ||
| -import ( | ||
| - "github.com/juju/juju/apiserver/common" | ||
| - "github.com/juju/juju/state" | ||
| -) | ||
| - | ||
| -func init() { | ||
| - common.RegisterStandardFacade("Model", 1, NewModelAPI) | ||
| -} | ||
| - | ||
| -// ModelAPI implements the API used by the machine model worker. | ||
| -type ModelAPI struct { | ||
| - *common.ModelWatcher | ||
| -} | ||
| - | ||
| -// NewModelAPI creates a new instance of the Model API. | ||
| -func NewModelAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*ModelAPI, error) { | ||
| - return &ModelAPI{ | ||
| - ModelWatcher: common.NewModelWatcher(st, resources, authorizer), | ||
| - }, nil | ||
| -} |
| @@ -1,14 +0,0 @@ | ||
| -// Copyright 2014 Canonical Ltd. | ||
| -// Licensed under the AGPLv3, see LICENCE file for details. | ||
| - | ||
| -package model_test | ||
| - | ||
| -import ( | ||
| - stdtesting "testing" | ||
| - | ||
| - "github.com/juju/juju/testing" | ||
| -) | ||
| - | ||
| -func TestAll(t *stdtesting.T) { | ||
| - testing.MgoTestPackage(t) | ||
| -} |
Oops, something went wrong.
0 comments on commit
95a766f