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

package unitassigner

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

Index

Package Files

unitassigner.go

type API Uses

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

API provides access to the UnitAssigner API facade.

func New Uses

func New(caller base.APICaller) API

New creates a new client-side UnitAssigner facade.

func (API) AssignUnits Uses

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 Uses

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

SetAgentStatus sets the status of the unit agents.

func (API) WatchUnitAssignments Uses

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

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

Package unitassigner imports 6 packages (graph) and is imported by 43 packages. Updated 2019-08-25. Refresh now. Tools for package owners.