proxyupdater

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 10 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 *common.Resources, auth common.Authorizer) (*ProxyUpdaterAPI, error)

NewAPI creates a new API server-side facade with a state.State backing.

func NewAPIWithBacking

func NewAPIWithBacking(st Backend, resources *common.Resources, authorizer common.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

WatchChanges 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