Descriptionstate/apiserver: ensure Facades match their type
FacadeFactory has to be a type defined to return interface{} because of
go type limitations. However, when we Register a Facade we define what
Type is meant to be exposed in that API. This change makes sure that we
enforce that Type at runtime.
This change also cleans up srvRoot slightly to reduce its coupling with
the rest of the system and make it possible to create one for testing.
https://code.launchpad.net/~jameinel/juju-core/api-srvRoot-ensures-type/+merge/220615
Requires: https://code.launchpad.net/~jameinel/juju-core/api-registry-tracks-type/+merge/220588
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 2
|