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

package stateconfigwatcher

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


Package Files


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). Updated 2020-06-26. Refresh now. Tools for package owners.