juju: github.com/juju/juju/worker/stateconfigwatcher Index | Files

package stateconfigwatcher

import "github.com/juju/juju/worker/stateconfigwatcher"

Index

Package Files

manifold.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency.Manifold which wraps the machine agent's voyeur.Value which gets set whenever it the machine agent's config is changed. Whenever the config is updated the presence of state serving info is checked and if state serving info was added or removed the manifold worker will bounce itself.

The manifold offes a single boolean output which will be true if state serving info is available (i.e. the machine agent should be a state server) and false otherwise.

This manifold is intended to be used as a dependency for the state manifold.

type ManifoldConfig Uses

type ManifoldConfig struct {
    AgentName          string
    AgentConfigChanged *voyeur.Value
}

Package stateconfigwatcher imports 8 packages (graph) and is imported by 21 packages. Updated 2019-09-06. Refresh now. Tools for package owners.