unitassigner

package
v0.0.0-...-f7dd865 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a Manifold that runs a unitassigner worker.

func New

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

Types

type Logger

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

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

type ManifoldConfig

type ManifoldConfig struct {
	APICallerName string
	Logger        Logger
}

ManifoldConfig describes the resources used by a unitassigner worker.

type UnitAssigner

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL