Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) ExternalControllerInfo(ctx context.Context, controllerUUID string) (*crossmodel.ControllerInfo, error)
- func (c *Client) SetExternalControllerInfo(ctx context.Context, info crossmodel.ControllerInfo) error
- func (c *Client) WatchExternalControllers(ctx context.Context) (watcher.StringsWatcher, error)
- type Option
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 (*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 ¶
WatchExternalControllers watches for the addition and removal of external controllers.
Click to show internal directories.
Click to hide internal directories.