externalcontrollerupdater

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 10 Imported by: 1

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 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

ExternalControllerInfo returns the info for the specified external controllers.

func (*ExternalControllerUpdaterAPI) SetExternalControllerInfo

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.

Jump to

Keyboard shortcuts

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