unitassigner

package
v0.0.0-...-2ee77c6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API provides access to the UnitAssigner API facade.

func New

func New(caller base.APICaller, options ...Option) API

New creates a new client-side UnitAssigner facade.

func (API) AssignUnits

func (a API) AssignUnits(tags []names.UnitTag) ([]error, error)

AssignUnits tells the controller to run whatever unit assignments it has. Unit assignments for units that no longer exist will return an error that satisfies errors.IsNotFound.

func (API) SetAgentStatus

func (a API) SetAgentStatus(args params.SetStatus) error

SetAgentStatus sets the status of the unit agents.

func (API) WatchUnitAssignments

func (a API) WatchUnitAssignments() (watcher.StringsWatcher, error)

WatchUnitAssignments watches the server for new unit assignments to be created.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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