proxyupdater

package
v0.0.0-...-4bd6544 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL