Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a convenience wrapper on top of RPC to make access a bit more straightforward inside the network manager.
func (*Client) ConfigureDevice ¶
func (c *Client) ConfigureDevice(dc InterfaceConfig) (string, error)
ConfigureDevice unsurprisingly configures a device. The configuration supplied should be complete for the desired state, and computations will be done on the server to achieve this state.
func (*Client) InterfaceInfo ¶
func (c *Client) InterfaceInfo(device string) (InterfaceInfo, error)
InterfaceInfo returns information for a given interface.
type InterfaceConfig ¶
InterfaceConfig contains the information needed by keyhole to configure a single interface.
type InterfaceInfo ¶
InterfaceInfo fully describes an interface in the information that can be publicly shared.
type Keyhole ¶
type Keyhole struct {
// contains filtered or unexported fields
}
Keyhole is a convenience type to bind server components to.
func (*Keyhole) ConfigureDevice ¶
func (k *Keyhole) ConfigureDevice(dc InterfaceConfig, reply *string) error
ConfigureDevice configues the device with the provided peerlist by computing the difference between the peers that are known and those that must be added or removed.
func (*Keyhole) DeviceInfo ¶
func (k *Keyhole) DeviceInfo(name string, reply *InterfaceInfo) error
DeviceInfo is an RCP method that provides information about the requested device.
func (*Keyhole) DeviceNames ¶
DeviceNames returns the device names served by this keyhole server.