externalcontrollerupdater

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Facade = "ExternalControllerUpdater"

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Client

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

Client provides access to the ExternalControllerUpdater API facade.

func New

func New(caller base.APICaller, options ...Option) *Client

New creates a new client-side ExternalControllerUpdater facade.

func (*Client) ExternalControllerInfo

func (c *Client) ExternalControllerInfo(ctx context.Context, controllerUUID string) (*crossmodel.ControllerInfo, error)

ExternalControllerInfo returns the info for the external controller with the specified UUID.

func (*Client) SetExternalControllerInfo

func (c *Client) SetExternalControllerInfo(ctx context.Context, info crossmodel.ControllerInfo) error

SetExternalControllerInfo saves the given controller info.

func (*Client) WatchExternalControllers

func (c *Client) WatchExternalControllers(ctx context.Context) (watcher.StringsWatcher, error)

WatchExternalControllers watches for the addition and removal of external controllers.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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