Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides the ProxyUpdater version 2 facade.
func NewAPIV2 ¶
func NewAPIV2(controller ControllerBackend, backend Backend, resources facade.Resources, authorizer facade.Authorizer) (*API, error)
NewAPIV2 creates a new server-side API facade with the given Backing.
func (*API) ProxyConfig ¶
func (api *API) ProxyConfig(args params.Entities) params.ProxyConfigResults
ProxyConfig returns the proxy settings for the current model.
func (*API) WatchForProxyConfigAndAPIHostPortChanges ¶
func (api *API) WatchForProxyConfigAndAPIHostPortChanges(args params.Entities) params.NotifyWatchResults
WatchForProxyConfigAndAPIHostPortChanges watches for changes to the proxy and api host port settings.
type Backend ¶
type Backend interface { ModelConfig() (*config.Config, error) WatchForModelConfigChanges() state.NotifyWatcher }
Backend defines the model state methods this facade needs, so they can be mocked for testing.
type ControllerBackend ¶
type ControllerBackend interface { APIHostPortsForAgents() ([]network.SpaceHostPorts, error) WatchAPIHostPortsForAgents() state.NotifyWatcher }
ControllerBackend defines the controller state methods this facade needs, so they can be mocked for testing.
type ProxyUpdaterV2 ¶
type ProxyUpdaterV2 interface { ProxyConfig(args params.Entities) params.ProxyConfigResults WatchForProxyConfigAndAPIHostPortChanges(args params.Entities) params.NotifyWatchResults }
ProxyUpdaterV2 defines the pubic methods for the v2 facade.
Click to show internal directories.
Click to hide internal directories.