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

package apiconfigwatcher

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

Index

Package Files

manifold.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency.Manifold which wraps an agent's voyeur.Value which is set whenever the agent config is changed. When the API server addresses in the config change the manifold will bounce itself.

The manifold is intended to be a dependency for the api-caller manifold and is required to support model migrations.

type Logger Uses

type Logger interface {
    Debugf(string, ...interface{})
    Errorf(string, ...interface{})
}

Logger represents the methods used by the worker to log information.

type ManifoldConfig Uses

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

Package apiconfigwatcher imports 7 packages (graph) and is imported by 66 packages. Updated 2019-10-16. Refresh now. Tools for package owners.