Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
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 ¶
func (a *API) SetAgentStatus(ctx context.Context, args params.SetStatus) (params.ErrorResults, error)
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 ¶
WatchUnitAssignments returns a strings watcher that is notified when new unit assignments are added to the db.
type NetworkService ¶
type NetworkService interface { // GetAllSpaces returns all spaces for the model. GetAllSpaces(ctx context.Context) (network.SpaceInfos, error) }
NetworkService is the interface that is used to interact with the network spaces/subnets.
type StubService ¶
type StubService interface { // AssignUnitsToMachines assigns the given units to the given machines but setting // unit net node to the machine net node. // // Deprecated: AssignUnitsToMachines will become redundant once the machine and // application domains have become fully implemented. AssignUnitsToMachines(context.Context, map[string][]unit.Name) error }
StubService is the interface used to interact with the stub service. A special service which collects temporary methods required to wire together together domains which are not completely implemented or wired up.
TODO: Remove this dependency once units are properly assigned to machines via net nodes.