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

package agentconfigupdater

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

Index

Package Files

manifold.go worker.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold defines a simple start function which runs after the API connection has come up. If the machine agent is a controller, it grabs the state serving info over the API and records it to agent configuration, and then stops.

func NewWorker Uses

func NewWorker(config WorkerConfig) (worker.Worker, error)

NewWorker creates a new agent config updater worker.

type Logger Uses

type Logger interface {
    Criticalf(string, ...interface{})
    Warningf(string, ...interface{})
    Infof(string, ...interface{})
    Debugf(string, ...interface{})
    Tracef(string, ...interface{})
}

Logger defines the logging methods used by the worker.

type ManifoldConfig Uses

type ManifoldConfig struct {
    AgentName      string
    APICallerName  string
    CentralHubName string
    Logger         Logger
}

ManifoldConfig provides the dependencies for the agent config updater manifold.

type WorkerConfig Uses

type WorkerConfig struct {
    Agent        coreagent.Agent
    Hub          *pubsub.StructuredHub
    MongoProfile mongo.MemoryProfile
    Logger       Logger
}

WorkerConfig contains the information necessary to run the agent config updater worker.

func (*WorkerConfig) Validate Uses

func (c *WorkerConfig) Validate() error

Validate ensures that the required values are set in the structure.

Package agentconfigupdater imports 12 packages (graph) and is imported by 2 packages. Updated 2019-11-16. Refresh now. Tools for package owners.