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

package unitassigner

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

Index

Package Files

manifold.go unitassigner.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a Manifold that runs a unitassigner worker.

func New Uses

func New(ua UnitAssigner, logger Logger) (worker.Worker, error)

type Logger Uses

type Logger interface {
    Tracef(string, ...interface{})
}

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

type ManifoldConfig Uses

type ManifoldConfig struct {
    APICallerName string
    Logger        Logger
}

ManifoldConfig describes the resources used by a unitassigner worker.

type UnitAssigner Uses

type UnitAssigner interface {
    AssignUnits(tags []names.UnitTag) ([]error, error)
    WatchUnitAssignments() (watcher.StringsWatcher, error)
    SetAgentStatus(args params.SetStatus) error
}

Package unitassigner imports 10 packages (graph) and is imported by 23 packages. Updated 2019-10-21. Refresh now. Tools for package owners.