machineenvironmentworker

package
v0.0.0-...-732aecd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2014 License: AGPL-3.0 Imports: 14 Imported by: 0

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() {}
)

Functions

func NewMachineEnvironmentWorker

func NewMachineEnvironmentWorker(api *environment.Facade, agentConfig agent.Config) worker.Worker

NewMachineEnvironmentWorker returns a worker.Worker that uses the notify watcher returned from the setup.

Types

type MachineEnvironmentWorker

type MachineEnvironmentWorker struct {
	// contains filtered or unexported fields
}

MachineEnvironmentWorker is responsible for monitoring the juju environment configuration and making changes on the physical (or virtual) machine as necessary to match the environment changes. Examples of these types of changes are apt proxy configuration and the juju proxies stored in the juju proxy file.

func (*MachineEnvironmentWorker) Handle

func (w *MachineEnvironmentWorker) Handle() error

Handle is defined on the worker.NotifyWatchHandler interface.

func (*MachineEnvironmentWorker) SetUp

SetUp is defined on the worker.NotifyWatchHandler interface.

func (*MachineEnvironmentWorker) TearDown

func (w *MachineEnvironmentWorker) TearDown() error

TearDown is defined on the worker.NotifyWatchHandler interface.

Jump to

Keyboard shortcuts

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