Documentation ¶
Index ¶
- func Register(registry facade.FacadeRegistry)
- type ECService
- type ExternalControllerUpdaterAPI
- func (s *ExternalControllerUpdaterAPI) ExternalControllerInfo(ctx context.Context, args params.Entities) (params.ExternalControllerInfoResults, error)
- func (s *ExternalControllerUpdaterAPI) SetExternalControllerInfo(ctx context.Context, args params.SetExternalControllersInfoParams) (params.ErrorResults, error)
- func (api *ExternalControllerUpdaterAPI) WatchExternalControllers(ctx context.Context) (params.StringsWatchResults, error)
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 ECService ¶
type ECService interface { Controller(ctx context.Context, controllerUUID string) (*crossmodel.ControllerInfo, error) UpdateExternalController(ctx context.Context, ec crossmodel.ControllerInfo) error Watch() (watcher.StringsWatcher, error) }
ECService provides a subset of the external controller domain service methods.
type ExternalControllerUpdaterAPI ¶
type ExternalControllerUpdaterAPI struct {
// contains filtered or unexported fields
}
ExternalControllerUpdaterAPI provides access to the CrossModelRelations API facade.
func NewAPI ¶
func NewAPI( resources facade.Resources, ecService ECService, ) (*ExternalControllerUpdaterAPI, error)
NewAPI creates a new server-side CrossModelRelationsAPI API facade backed by the given interfaces.
func (*ExternalControllerUpdaterAPI) ExternalControllerInfo ¶
func (s *ExternalControllerUpdaterAPI) ExternalControllerInfo(ctx context.Context, args params.Entities) (params.ExternalControllerInfoResults, error)
ExternalControllerInfo returns the info for the specified external controllers.
func (*ExternalControllerUpdaterAPI) SetExternalControllerInfo ¶
func (s *ExternalControllerUpdaterAPI) SetExternalControllerInfo(ctx context.Context, args params.SetExternalControllersInfoParams) (params.ErrorResults, error)
SetExternalControllerInfo saves the info for the specified external controllers.
func (*ExternalControllerUpdaterAPI) WatchExternalControllers ¶
func (api *ExternalControllerUpdaterAPI) WatchExternalControllers(ctx context.Context) (params.StringsWatchResults, error)
WatchExternalControllers watches for the addition and removal of external controller records to the local controller's database.
Click to show internal directories.
Click to hide internal directories.