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 ¶
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 ¶
func (w *MachineEnvironmentWorker) SetUp() (watcher.NotifyWatcher, error)
SetUp is defined on the worker.NotifyWatchHandler interface.
func (*MachineEnvironmentWorker) TearDown ¶
func (w *MachineEnvironmentWorker) TearDown() error
TearDown is defined on the worker.NotifyWatchHandler interface.
Click to show internal directories.
Click to hide internal directories.