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

package unitassigner

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


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