Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProxyDirectory is the directory containing the proxy file that contains // the environment settings for the proxies based on the environment // config values. ProxyDirectory = "/home/ubuntu" // ProxyFile is the name of the file to be stored in the ProxyDirectory. ProxyFile = ".juju-proxy" // Started is a function that is called when the worker has started. Started = func() {} )
View Source
var New = func(api *environment.Facade, writeSystemFiles bool) worker.Worker { logger.Debugf("write system files: %v", writeSystemFiles) envWorker := &proxyWorker{ api: api, writeSystemFiles: writeSystemFiles, first: true, } return worker.NewNotifyWorker(envWorker) }
New returns a worker.Worker that updates proxy environment variables for the process; and, if writeSystemFiles is true, for the whole machine.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a dependency manifold that runs a proxy updater worker, using the api connection resource named in the supplied config.
Types ¶
type ManifoldConfig ¶
type ManifoldConfig util.ApiManifoldConfig
ManifoldConfig defines the names of the manifolds on which a Manifold will depend.
Click to show internal directories.
Click to hide internal directories.