Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { ModelConfig() (*config.Config, error) APIHostPorts() ([][]network.HostPort, error) WatchAPIHostPorts() state.NotifyWatcher WatchForModelConfigChanges() state.NotifyWatcher }
Backend defines the state methods this facade needs, so they can be mocked for testing.
type ProxyUpdaterAPI ¶
type ProxyUpdaterAPI struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(st *state.State, res facade.Resources, auth facade.Authorizer) (*ProxyUpdaterAPI, error)
NewAPI creates a new API server-side facade with a state.State backing.
func NewAPIWithBacking ¶
func NewAPIWithBacking(st Backend, resources facade.Resources, authorizer facade.Authorizer) (*ProxyUpdaterAPI, error)
NewAPIWithBacking creates a new server-side API facade with the given Backing.
func (*ProxyUpdaterAPI) ProxyConfig ¶
func (api *ProxyUpdaterAPI) ProxyConfig(args params.Entities) params.ProxyConfigResults
ProxyConfig returns the proxy settings for the current environment
func (*ProxyUpdaterAPI) WatchForProxyConfigAndAPIHostPortChanges ¶
func (api *ProxyUpdaterAPI) WatchForProxyConfigAndAPIHostPortChanges(args params.Entities) params.NotifyWatchResults
WatchForProxyConfigAndAPIHostPortChanges watches for cleanups to be perfomed in state
Click to show internal directories.
Click to hide internal directories.