Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API implements the functionality for assigning units to machines.
func (*API) AssignUnits ¶
AssignUnits assigns the units with the given ids to the correct machine. The error results are returned in the same order as the given entities.
func (*API) SetAgentStatus ¶
SetAgentStatus will set status for agents of Units passed in args, if one of the args is not an Unit it will fail.
func (*API) WatchUnitAssignments ¶
func (a *API) WatchUnitAssignments() (params.StringsWatchResult, error)
WatchUnitAssignments returns a strings watcher that is notified when new unit assignments are added to the db.
Click to show internal directories.
Click to hide internal directories.