Documentation

Index

Constants

View Source
const Facade = "ExternalControllerUpdater"

Variables

This section is empty.

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) *Client

New creates a new client-side ExternalControllerUpdater facade.

func (*Client) ExternalControllerInfo

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

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

func (*Client) SetExternalControllerInfo

func (c *Client) SetExternalControllerInfo(info crossmodel.ControllerInfo) error

SetExternalControllerInfo saves the given controller info.

func (*Client) WatchExternalControllers

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

WatchExternalControllers watches for the addition and removal of external controllers.